Tilemap#objects

objects :array An array of Tiled Object Layers. Source code: tilemap/Tilemap.js (Line 120)

Tilemap#orientation

orientation : string The orientation of the map data (as specified in Tiled), usually 'orthogonal'. Source code: tilemap/Tilemap.js (Line 70)

Tilemap#paste()

paste(x, y, tileblock, layer) Pastes a previously copied block of tile data into the given x/y coordinates. Data should have been prepared with Tilemap.copy. Parameters Name Type Argument Description x number X position of the top left of the area to paste to (given in tiles, not pixels) y number Y position of the top left of the area to paste to (given in tiles, not pixels) tileblock array The block of tiles to paste. layer number | string | Phaser.TilemapLayer <optional&g

Tilemap#properties

properties : Object Map specific properties as specified in Tiled. Source code: tilemap/Tilemap.js (Line 85)

Tilemap#putTile()

putTile(tile, x, y, layer) → {Phaser.Tile} Puts a tile of the given index value at the coordinate specified.If you pass null as the tile it will pass your call over to Tilemap.removeTile instead. Parameters Name Type Argument Description tile Phaser.Tile | number | null The index of this tile to set or a Phaser.Tile object. If null the tile is removed from the map. x number X position to place the tile (given in tile units, not pixels) y number Y position to place the tile (given

Tilemap#putTileWorldXY()

putTileWorldXY(tile, x, y, tileWidth, tileHeight, layer) → {Phaser.Tile} Puts a tile into the Tilemap layer. The coordinates are given in pixel values. Parameters Name Type Argument Description tile Phaser.Tile | number The index of this tile to set or a Phaser.Tile object. x number X position to insert the tile (given in pixels) y number Y position to insert the tile (given in pixels) tileWidth number The width of the tile in pixels. tileHeight number The height of the t

Tilemap#random()

random(x, y, width, height, layer) Randomises a set of tiles in a given area. Parameters Name Type Argument Description x number X position of the top left of the area to operate one, given in tiles, not pixels. y number Y position of the top left of the area to operate one, given in tiles, not pixels. width number The width in tiles of the area to operate on. height number The height in tiles of the area to operate on. layer number | string | Phaser.TilemapLayer <optio

Tilemap#removeAllLayers()

removeAllLayers() Removes all layers from this tile map. Source code: tilemap/Tilemap.js (Line 1876)

Tilemap#removeTile()

removeTile(x, y, layer) → {Phaser.Tile} Removes the tile located at the given coordinates and updates the collision data. Parameters Name Type Argument Description x number X position to place the tile (given in tile units, not pixels) y number Y position to place the tile (given in tile units, not pixels) layer number | string | Phaser.TilemapLayer <optional> The layer to modify. Returns Phaser.Tile - The Tile object that was removed from this map. Source code: tile

Tilemap#removeTileWorldXY()

removeTileWorldXY(x, y, tileWidth, tileHeight, layer) → {Phaser.Tile} Removes the tile located at the given coordinates and updates the collision data. The coordinates are given in pixel values. Parameters Name Type Argument Description x number X position to insert the tile (given in pixels) y number Y position to insert the tile (given in pixels) tileWidth number The width of the tile in pixels. tileHeight number The height of the tile in pixels. layer number | string | Ph