diff --git a/CMakeLists.txt b/CMakeLists.txt index a708826..9bf2beb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -94,7 +94,7 @@ set(SOURCES src/game/collectables/collection/collectables_collection.cpp src/game/collectables/collection/collectables_collection.hpp src/game/collectables/collection/collectables_depth_collection.cpp - src/game/collectables/collection/collectables_depth_collection.hpp src/game/collectables/collectable_in_level.hpp src/game/collectables/collectable_factory.cpp src/game/collectables/collectable_factory.hpp src/game/player/player_collection.cpp src/game/player/player_collection.hpp) + src/game/collectables/collection/collectables_depth_collection.hpp src/game/collectables/collectable_in_level.hpp src/game/collectables/collectable_factory.cpp src/game/collectables/collectable_factory.hpp src/game/player/player_collection.cpp src/game/player/player_collection.hpp src/sprites/tilemap/tilemap.cpp src/sprites/tilemap/tilemap.hpp src/sprites/tilemap/tilemap_config.hpp) set(PHYSICS_00_SOURCES src/prototypes/physics_00.cpp) diff --git a/assets/isometric-tiles.png b/assets/isometric-tiles.png new file mode 100644 index 0000000..9b43142 Binary files /dev/null and b/assets/isometric-tiles.png differ diff --git a/src/config.h b/src/config.h index adb33a4..a0d6572 100644 --- a/src/config.h +++ b/src/config.h @@ -23,7 +23,7 @@ #define KEY_REPEAT_ENABLED false // Graphic settings -#define ISOMETRIC_SKEW 0.3f +#define ISOMETRIC_SKEW (15.f/32.f) #define MOVEMENT_SKEW sf::Vector2f(1.f, 1/ISOMETRIC_SKEW/2.f) #define WORLD_TO_ISO_SCALE 50.0f // 50.f, don't change. Rather adjust the zoom of the camera diff --git a/src/sprites/tilemap/tilemap.cpp b/src/sprites/tilemap/tilemap.cpp new file mode 100644 index 0000000..bafdf69 --- /dev/null +++ b/src/sprites/tilemap/tilemap.cpp @@ -0,0 +1 @@ +#include "tilemap.hpp" diff --git a/src/sprites/tilemap/tilemap.hpp b/src/sprites/tilemap/tilemap.hpp new file mode 100644 index 0000000..05306e7 --- /dev/null +++ b/src/sprites/tilemap/tilemap.hpp @@ -0,0 +1,13 @@ +#ifndef HOLESOME_TILEMAP_HPP +#define HOLESOME_TILEMAP_HPP + + +#include "../../game/game_object.h" + +class Tilemap : public GameObject +{ + +}; + + +#endif //HOLESOME_TILEMAP_HPP diff --git a/src/sprites/tilemap/tilemap_config.hpp b/src/sprites/tilemap/tilemap_config.hpp new file mode 100644 index 0000000..483c376 --- /dev/null +++ b/src/sprites/tilemap/tilemap_config.hpp @@ -0,0 +1,12 @@ +#ifndef HOLESOME_TILEMAP_CONFIG_HPP +#define HOLESOME_TILEMAP_CONFIG_HPP + +#include +#include + +struct TilemapConfig { + std::string tileSheetName; + std::vector> tiles; +}; + +#endif //HOLESOME_TILEMAP_CONFIG_HPP