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#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#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#height

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

Tilemap#heightInPixels

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

Tilemap#imagecollections

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

Tilemap#images

images :array An array of Tiled Image Layers. Source code: tilemap/Tilemap.js (Line 135)

Tilemap#key

key : string The key of this map data in the Phaser.Cache. Source code: tilemap/Tilemap.js (Line 38)

Tilemap#layer

layer : number | string | Phaser.TilemapLayer The current layer object. Type number | string | Phaser.TilemapLayer Source code: tilemap/Tilemap.js (Line 1947)

Tilemap#layers

layers :array An array of Tilemap layer data. Source code: tilemap/Tilemap.js (Line 100)