A little project to show how to use LDtkLoader with SFML to render LDtk levels and create a simple topdown game.
- Performant level layers rendering using sf::VertexArray
- Player movement
- Camera following the player
- Simple AABB collisions
- In game reload of the LDtk world (press F5)
You are free to use this code in your own game.
- SFML, needs to be installed on your system
- LDtkLoader, automatically fetched by cmake
mkdir build && cd build
cmake ..
cmake --build .
You can see the demo of this project in this video :