Tilemap#imagecollections

imagecollections :array An array of Image Collections. Source code: tilemap/Tilemap.js (Line 110)

Tilemap#heightInPixels

heightInPixels : number The height of the map in pixels based on height * tileHeight. Source code: tilemap/Tilemap.js (Line 95)

Tilemap#height

height : number The height of the map (in tiles). Source code: tilemap/Tilemap.js (Line 55)

Tilemap#hasTile()

hasTile(x, y, layer) → {boolean} Checks if there is a tile at the given location. Parameters Name Type Description x number X position to check if a tile exists at (given in tile units, not pixels) y number Y position to check if a tile exists at (given in tile units, not pixels) layer number | string | Phaser.TilemapLayer The layer to set as current. Returns boolean - True if there is a tile at the given location, otherwise false. Source code: tilemap/Tilemap.js (Line 1240)

Tilemap#getTileWorldXY()

getTileWorldXY(x, y, tileWidth, tileHeight, layer, nonNull) → {Phaser.Tile} Gets a tile from the Tilemap layer. The coordinates are given in pixel values. Parameters Name Type Argument Default Description x number X position to get the tile from (given in pixels) y number Y position to get the tile from (given in pixels) tileWidth number <optional> The width of the tiles. If not given the map default is used. tileHeight number <optional> The height of the ti

Tilemap#getTilesetIndex()

getTilesetIndex(name) → {number} Gets the tileset index based on its name. Parameters Name Type Description name string The name of the tileset to get. Returns number - The index of the tileset in this tilemap, or null if not found. Source code: tilemap/Tilemap.js (Line 753)

Tilemap#getTileRight()

getTileRight(layer, x, y) Gets the tile to the right of the tile coordinates given.Mostly used as an internal function by calculateFaces. Parameters Name Type Description layer number The local layer index to get the tile from. Can be determined by Tilemap.getLayer(). x number The x coordinate to get the tile from. In tiles, not pixels. y number The y coordinate to get the tile from. In tiles, not pixels. Source code: tilemap/Tilemap.js (Line 1203)

Tilemap#getTileLeft()

getTileLeft(layer, x, y) Gets the tile to the left of the tile coordinates given.Mostly used as an internal function by calculateFaces. Parameters Name Type Description layer number The local layer index to get the tile from. Can be determined by Tilemap.getLayer(). x number The x coordinate to get the tile from. In tiles, not pixels. y number The y coordinate to get the tile from. In tiles, not pixels. Source code: tilemap/Tilemap.js (Line 1183)

Tilemap#getTileBelow()

getTileBelow(layer, x, y) Gets the tile below the tile coordinates given.Mostly used as an internal function by calculateFaces. Parameters Name Type Description layer number The local layer index to get the tile from. Can be determined by Tilemap.getLayer(). x number The x coordinate to get the tile from. In tiles, not pixels. y number The y coordinate to get the tile from. In tiles, not pixels. Source code: tilemap/Tilemap.js (Line 1163)

Tilemap#getTileAbove()

getTileAbove(layer, x, y) Gets the tile above the tile coordinates given.Mostly used as an internal function by calculateFaces. Parameters Name Type Description layer number The local layer index to get the tile from. Can be determined by Tilemap.getLayer(). x number The x coordinate to get the tile from. In tiles, not pixels. y number The y coordinate to get the tile from. In tiles, not pixels. Source code: tilemap/Tilemap.js (Line 1143)