/LDtk-SFML-Game

A small demo showing how to use LDtk with SFML to render levels

Primary LanguageC++MIT LicenseMIT

LDtk-SFML-Game

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.

Dependencies

  • SFML, needs to be installed on your system
  • LDtkLoader, automatically fetched by cmake

Build

mkdir build && cd build
cmake ..
cmake --build .

Video

You can see the demo of this project in this video :

LDtkLoader-SFML.mp4