diff options
| author | ilotterytea <iltsu@alright.party> | 2025-02-01 23:19:16 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-02-01 23:19:16 +0500 |
| commit | 91ffa8637cddddae07c42115788e5104a5faca7f (patch) | |
| tree | 69b392ec7ecdc82402b79a5bac3e11db50ddf81d /src/floor.hpp | |
| parent | 79c7edc335fc162e9d2ef9acc5cdf41fbd1bac76 (diff) | |
feat: tile rotation
Diffstat (limited to 'src/floor.hpp')
| -rw-r--r-- | src/floor.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/floor.hpp b/src/floor.hpp index 1a6fe47..dcb9fa7 100644 --- a/src/floor.hpp +++ b/src/floor.hpp @@ -9,8 +9,9 @@ namespace silly::editor { struct Tile { - sf::Vector2i position; std::shared_ptr<TilesetTile> tile; + sf::Vector2i position; + float rotation; }; struct TileLayer { @@ -31,7 +32,7 @@ namespace silly::editor { void render(sf::RenderWindow &window) const; void place_tile(std::shared_ptr<TilesetTile> &tile, - const sf::Vector2i &position); + const sf::Vector2i &position, const float &rotation); void remove_tile(const sf::Vector2i &position); const int get_width() const; |
