A minimal project template for a 2D game in raylib with LDtk integration that builds with CMake.
The code example - Raylib loading tiles from LDtk!
raylib
- The dependency is automatically fetched from GitHub and built by CMake usingFetchContent
.cLDTK
- Support for LDtk is builtin to the project using this library.- Asset handling - Using an
ASSETS_PATH
macro in CMake, resources can be more easily imported into Raylib without path issues.
While visiting this repo on GitHub, select "Use this template" to create your own repository based on this template.
After cloning your repo, building follows the same workflow for any other CMake project:
mkdir build && cd build
cmake ..
make
Then, to run the example in the screenshot above:
./my_raylib_game