format : number The format of the map data, either Phaser.Tilemap.CSV or Phaser.Tilemap.TILED_JSON.
tileHeight : number The base height of the tiles in the map (in pixels). Source
orientation : string The orientation of the map data (as specified in Tiled), usually 'orthogonal'.
setLayer(layer) Sets the current layer to the given index. Parameters
layer : number | string | Phaser.TilemapLayer
random(x, y, width, height, layer) Randomises a set of tiles in a given area. Parameters
getTileBelow(layer, x, y) Gets the tile below the tile coordinates given.Mostly used as an internal function by calculateFaces
enableDebug : boolean If set then console.log is used to dump out useful layer creation debug data.
removeAllLayers() Removes all layers from this tile map. Source code:
setPreventRecalculate(value) Turn off/on the recalculation of faces for tile or collision updates.setPreventRecalculate(true)
Page 2 of 8