tida.tiled

Module for loading maps in TMX format.

> TMX and TSX are Tiled’s own formats for storing tile maps and tilesets, based on XML. > TMX provides a flexible way to describe a tile based map. It can describe maps with any tile size, > any amount of layers, any number of tile sets and it allows custom properties to be set on most elements. > Beside tile layers, it can also contain groups of objects that can be placed freely.

To load and render tile maps, use the following:

TimeMap tilemap = new TileMap();
tilemap.load("map.tmx");
...
render.draw(tilemap, Vecf(32, 32)); // Draws the layers at the specified location 
                                    // (including offset, of course).

TMX format documentation.

Authors implemetation: TodNaz

Members

Classes

ImageLayer
class ImageLayer

A layer from a picture.

ObjectGroup
class ObjectGroup

A group of objects.

TileLayer
class TileLayer

A layer from a group of tiles.

TileMap
class TileMap

Tile Map.

Tileset
class Tileset

Enums

MapType
enum MapType

Map format

Functions

tilesetStorage
Tileset[] tilesetStorage()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

_tilesetStorage
Tileset[] _tilesetStorage;
Undocumented in source.

Structs

LayerData
struct LayerData

The data of the tiles in the layer.

MapMeta
struct MapMeta

Map information structure

Object
struct Object

Object in ObjectGroup.

Property
struct Property

Property included in layers.

TilesetMeta
struct TilesetMeta

Tileset information.

Meta

License

MIT