Crates.io Documentation License Workflow Status

ldtk2

A thin crate for people who just want to use ldtk files freely.

Usage

```rust use std::error::Error;

fn main() -> Result<(), Box> { use ldtk2::Ldtk;

let map = Ldtk::fromfile("tests/example.ldtk")?; // or let map = Ldtk::fromstr(include_str!("../tests/example.ldtk"))?;

Ok(()) } ```

Why did I create this nonsense?