diff options
Diffstat (limited to 'src/main/cpp')
-rw-r--r-- | src/main/cpp/Widget.cpp | 8 | ||||
-rw-r--r-- | src/main/cpp/WorldScene.cpp | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/main/cpp/Widget.cpp b/src/main/cpp/Widget.cpp new file mode 100644 index 0000000..82773bc --- /dev/null +++ b/src/main/cpp/Widget.cpp @@ -0,0 +1,8 @@ +#include "Widget.hpp" + +#include <SFML/Graphics.hpp> + +void Widget::render() +{ + sf::RectangleShape rect; +} diff --git a/src/main/cpp/WorldScene.cpp b/src/main/cpp/WorldScene.cpp index 8887f6f..4b7d940 100644 --- a/src/main/cpp/WorldScene.cpp +++ b/src/main/cpp/WorldScene.cpp @@ -16,7 +16,7 @@ void WorldScene::render() rect.setOutlineThickness(-.5); rect.setOutlineColor(sf::Color::Black); - for (const Tile &tile : map.tiles()) { + for (const Tile &tile : _map.tiles()) { rect.setPosition(tile.x * _tileSize, tile.y * _tileSize); _window.draw(rect); } |