TMX
TMX is a library for loading Tiled (XML and JSON) maps in Rust.
Usage
Examples
Loading a Map
use Map;
Loading a Tileset
use Tileset;
See the docs for more information.
TMX Map Format Support
Element | Support |
---|---|
<map> |
Full |
<editorsettings> |
None |
- <chunksize> |
None |
- <export> |
None |
<tileset> |
Partial |
- <tileoffset> |
None |
- <grid> |
None |
- <image> |
Full |
- <terraintypes> |
None |
- - <terrain> |
None |
- <tile> |
Full |
- - <animation> |
Full |
- <wangsets> |
None |
- - <wangset> |
None |
<layer> |
Full |
- <data> |
Full |
- <chunk> |
Full |
- <tile> |
Full |
<objectgroup> |
None |
- <object> |
None |
- <ellipse> |
None |
- <point> |
None |
- <polygon> |
None |
- <polyline> |
None |
- <text> |
None |
<imagelayer> |
None |
<group> |
None |
<properties> |
None |
- <property> |
None |
Features
The following features are available and enabled by default.
Feature | Description |
---|---|
xml |
Allows loading XML maps. |
base64-data |
Allows loading maps where the Tile Layer Format is Base64 (uncompressed) . |
gzip-data |
Allows loading maps where the Tile Layer Format is Base64 (gzip compressed) . |
zlib-data |
Allows loading maps where the Tile Layer Format is Base64 (zlib compressed) . |
zstd-data |
Allows loading maps where the Tile Layer Format is Base64 (Zstandard compressed) . |