ldtk 0.4.1

A crate for reading the LDtk 2D tile map format.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use ldtk::Project;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Load the map
    let map: Project = serde_json::from_slice(include_bytes!("./full-features.ldtk"))?;

    // Debug print the map
    dbg!(map);

    Ok(())
}