tmx_reader 0.1.0

A rough implementation of a reader for TMX (Tiled) files.
Documentation
  • Coverage
  • 0%
    0 out of 130 items documented0 out of 18 items with examples
  • Size
  • Source code size: 49.34 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 5.13 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 22s Average build duration of successful builds.
  • all releases: 22s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • codepitbull/tmx_reader
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • codepitbull

TMX Reader

This library provides a reader for TMX files.

These files can be created using the great Tiled editor.

What is supported

  • Tilesets
  • Objectgroups
  • Properties

What is missing

  • Layers
  • imagelayer
  • Grid (and all other isometric stuff)
  • embedded data
  • terrain
  • animation
  • wangsets
  • ...

So there is still a ton of thiungs to do.

Usage

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.

Aim

I have no idea if this will ever be a useful crate :)

I just use this for my own little game experiments.