| Crates.io | tmx_reader |
| lib.rs | tmx_reader |
| version | 0.1.0 |
| created_at | 2019-12-08 20:31:38.704331+00 |
| updated_at | 2019-12-08 20:31:38.704331+00 |
| description | A rough implementation of a reader for TMX (Tiled) files. |
| homepage | |
| repository | https://github.com/codepitbull/tmx_reader |
| max_upload_size | |
| id | 187376 |
| size | 42,946 |
This library provides a reader for TMX files.
These files can be created using the great Tiled editor.
So there is still a ton of thiungs to do.
use tmx_reader::Map;
use std::path::PathBuf;
use std::fs;
let mut d = PathBuf::from(env!("sandbox.tmx"));
let contents = fs::read_to_string(d.as_os_str())
.expect("Something went wrong reading the file");
let map = Map::new(contents.as_str());
#Demo and WASM A full demo, which also works inside the browser using WASM is located HERE.
I have no idea if this will ever be a useful crate :)
I just use this for my own little game experiments.