tego
tego is a library for parsing and loading Tiled maps.
Goals
The main goal of tego is to provide a foundation for loading tmx maps, independent of game engine or storage medium. It should not matter if the map is stored as a file on disk, or loaded on the fly from an asset bundle.
Furthermore common operations should be made easy with sane defaults, but not at the expense of flexibility.
Example
Load a map and pretty print the layers included in it:
use Path;
extern crate tego;
You can run this example with
cargo run -q --example layer_printer.
Feature support
The following TMX features are implemented β , partially supported π§ or missing β in tego. This is not an exhaustive list.
-
π§ Loading of maps with metadata:
- β Orthogonal & Isometric maps
- β Hexagonal & staggered maps
- β Editor related metadata
- β Color information
-
π§ Tile Sets
- β Metadata
- β Sprite Sheet lookup with spacing/margin
- β
External tile set files (
*.tsx) - β Image collection Tile Sets
- β Object Alignment information
-
π§ Tile layers
- β uncompressed/zlib/gzip base64 data
- β csv loading
- β
<tile>loading - β Tile flipping
-
β Infinite maps
-
π§ Object layers
- β Basic Rect/Ellipse/Point object
- β Polygons & Polylines
- π§ Text (Some metadata is still not supported, e.g. haling/valign)
- β Object Templates
-
β Image layers
-
β Properties