C99 loader for the LDtk map editor, using Parson for JSON parsing.
This is a fork of the original by PompPenguin. This forks builds the library with CMake (see Getting Started). For future plans, see Roadmap
There original author of cLDtk
wrote some examples (including for Raylib!) which should useful for gaining a basic understanding of how the library works.
I'd like to add API documentation using Doxygen at some point in the future.
The easiest way to add cLDtk
project is to add the files in the src/
directory (cLDtk.c
, cLDtk.h
, parson.c
, parson.h
) into your project. Keep in mind that the
files on the main
branch might not be stable, and you may be better off using a release tag.
The building workflow for cLDtk is the standard 'clone and make' approach. Make sure you have cmake
installed.
git clone https://github.com/ranguli/cLDtk
cd cLDtk
mkdir build && cd build
cmake .
make
- Building with CMake instead of
gcc
commands - API documentation with Doxygen
- Integrate GitHub actions for builds
- Start versioning the project (i.e releases)
- Code cleanup / refactoring