Optionalconfig: MapDataConfig
The Map configuration object.
An object containing collision data for the map. Only populated when the map is created with a physics system enabled.
The format of the map data.
The height of the entire tilemap, in tiles.
The height in pixels of the entire tilemap.
The length of the horizontal sides of the hexagon.
Only used for hexagonal orientation Tilemaps.
The collection of images the map uses (specified in Tiled).
An array of Tiled Image Layers.
If the map is infinite or not.
An array of all the layers belonging to this MapData.
The key in the Phaser cache that corresponds to the loaded tilemap data.
An array of Tiled Object Layers.
The orientation of the map data (i.e. orthogonal, isometric, hexagonal), default 'orthogonal'.
Map specific properties (can be specified in Tiled).
Determines the draw order of the tilemap. Default is right-down.
0, or 'right-down' 1, or 'left-down' 2, or 'right-up' 3, or 'left-up'
The Stagger Axis as defined in Tiled.
Only used for hexagonal orientation Tilemaps.
The Stagger Index as defined in Tiled.
Either 'odd' or 'even'.
Only used for hexagonal orientation Tilemaps.
The height of the tiles, in pixels.
An array of tile instances.
An array of Tilesets.
The width of the tiles, in pixels.
The version of the map data (as specified in Tiled).
The width of the entire tilemap, in tiles.
The width in pixels of the entire tilemap.
A class for representing data about a map. Maps are parsed from CSV, Tiled, etc. into this format. A Tilemap object gets a copy of this data and then unpacks the needed properties into itself.