1 stable release
| 1.0.2 | Aug 7, 2025 |
|---|---|
| 1.0.1 |
|
| 1.0.0 |
|
#638 in Game dev
151 downloads per month
78KB
1K
SLoC
macroquad_ldtk is a simple library to load LDtk projects for your macroquad projects.
macroquad_ldtk handles loading the project, trimming editor data, and rendering levels.
Other tasks like collision and entity spawning are left up to the user.
macroquad_ldtk
A Rust library to load LDtk level files into macroquad.
Features
- Tile rendering
- Collision
Rectgeneration from IntGrids - Levels stored through their world coordinates
- Access to the unprocessed JSON data straight from
serde
To Be Implemented
- External level files
How to Use
See the basic example for a simple example of use.
Run the example with:
cargo run --example basic
License
This library is dual-licensed under the Apache and MIT licenses.
assets/kenney_platformer.png is from the Pixel Platformer asset pack by Kenney, licensed under CC0.
Dependencies
~15MB
~358K SLoC