Very minor progress on tiling

This commit is contained in:
Maximilian Giller 2023-06-15 19:00:55 +02:00
parent 414f3b79fc
commit a9bcdaeb63
6 changed files with 28 additions and 2 deletions

View file

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 4 KiB

View file

@ -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

View file

@ -0,0 +1 @@
#include "tilemap.hpp"

View 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

View 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