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

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

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

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

Tilemap#objects

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

Tilemap#layers

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

Tilemap#layer

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

Tilemap#key

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

Tilemap#images

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