2 stable releases

1.0.1 Apr 13, 2025
1.0.0 Apr 12, 2025

#419 in Game dev

Download history 143/week @ 2025-04-07 91/week @ 2025-04-14 8/week @ 2025-04-21

242 downloads per month

MIT/Apache

77KB
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 Rect generation 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

~13MB
~305K SLoC