Very minor progress on tiling
This commit is contained in:
parent
414f3b79fc
commit
a9bcdaeb63
6 changed files with 28 additions and 2 deletions
|
@ -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)
|
||||
|
|
BIN
assets/isometric-tiles.png
Normal file
BIN
assets/isometric-tiles.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4 KiB |
|
@ -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
|
||||
|
||||
|
|
1
src/sprites/tilemap/tilemap.cpp
Normal file
1
src/sprites/tilemap/tilemap.cpp
Normal file
|
@ -0,0 +1 @@
|
|||
#include "tilemap.hpp"
|
13
src/sprites/tilemap/tilemap.hpp
Normal file
13
src/sprites/tilemap/tilemap.hpp
Normal file
|
@ -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
|
12
src/sprites/tilemap/tilemap_config.hpp
Normal file
12
src/sprites/tilemap/tilemap_config.hpp
Normal file
|
@ -0,0 +1,12 @@
|
|||
#ifndef HOLESOME_TILEMAP_CONFIG_HPP
|
||||
#define HOLESOME_TILEMAP_CONFIG_HPP
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
struct TilemapConfig {
|
||||
std::string tileSheetName;
|
||||
std::vector<std::vector<int>> tiles;
|
||||
};
|
||||
|
||||
#endif //HOLESOME_TILEMAP_CONFIG_HPP
|
Loading…
Reference in a new issue