#macroquad #ldtk #level-editor #level #editor #gamedev

macroquad_ldtk

LDtk integration with macroquad

2 stable releases

new 1.0.1 Apr 13, 2025
1.0.0 Apr 12, 2025

#572 in Game dev

33 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