LDtk-rs

A crate for reading reading the [LDtk] 2D tile map format.

The LDtk map format is simply a JSON format, which allows us to read the map file using [serde]. This crate contains the serializable Rust structures corresponding to the map file JSON structure.

Example

```rust use ldtk::Project;

fn main() -> Result<(), Box> { // Load the map let map: Project = serdejson::fromslice(include_bytes!("../examples/full-features.ldtk"))?;

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

Ok(())

} ```