Level

A structure to load the Tiled map into

struct Level {
auto FLIPPED_HORIZONTALLY_FLAG;
auto FLIPPED_VERTICALLY_FLAG;
auto FLIPPED_DIAGONALLY_FLAG;
int tileWidth;
int tileHeight;
int widthInTiles;
int heightInTiles;
}

Constructors

this
this(in string path, in int scale = 1)

Load a Tiled map from a path in the filesystem

Members

Functions

destroy
void destroy()

Free all of the data in the map

Properties

fixedTileLayers
const(TileLayer[]) fixedTileLayers [@property getter]

Get the layers with tiles fixed to the grid

freeEntityLayers
const(EntityLayer[]) freeEntityLayers [@property getter]

Get the layers with entities that can be freely moved

images
const(Texture[]) images [@property getter]

Get the images used by the tiles and entities

Meta