ldtk_rust 0.6.0

Use the LDtk 2D level editor to build games in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
use ldtk_rust::Project;
// Loads an LDtk Project file along with any external level files
// that it references.
fn main() {
    let file_path = "assets/game_1-1-3.ldtk".to_string();
    let project: Project = Project::new(file_path);

    //println!("First level pixel height is {}!", project.levels[0].px_hei);
    println!("First level pixel height is {}!", project.levels[0].px_hei);
}