Tile#width

width : number The width of the tile in pixels. Source code: tilemap/Tile.js (Line 64)

Tile#worldX

worldX Properties: Name Type Description x number The x map coordinate of this tile. Source code: tilemap/Tile.js (Line 54)

Tile#worldY

worldY Properties: Name Type Description y number The y map coordinate of this tile. Source code: tilemap/Tile.js (Line 59)

Tile#x

x : number The x map coordinate of this tile. Source code: tilemap/Tile.js (Line 34)

Tile#y

y : number The y map coordinate of this tile. Source code: tilemap/Tile.js (Line 39)

Tilemap#addTilesetImage()

addTilesetImage(tileset, key, tileWidth, tileHeight, tileMargin, tileSpacing, gid) → {Phaser.Tileset} Adds an image to the map to be used as a tileset. A single map may use multiple tilesets.Note that the tileset name can be found in the JSON file exported from Tiled, or in the Tiled editor. Parameters Name Type Argument Default Description tileset string The name of the tileset as specified in the map data. key string | Phaser.BitmapData <optional> The key of the Phaser.Cac

Tilemap#collideIndexes

collideIndexes :array An array of tile indexes that collide. Source code: tilemap/Tilemap.js (Line 125)

Tilemap#collision

collision :array An array of collision data (polylines, etc). Source code: tilemap/Tilemap.js (Line 130)

Tilemap#copy()

copy(x, y, width, height, layer) → {array} Copies all of the tiles in the given rectangular block into the tilemap data buffer. Parameters Name Type Argument Description x integer X position of the top left of the area to copy (given in tiles, not pixels) y integer Y position of the top left of the area to copy (given in tiles, not pixels) width integer The width of the area to copy (given in tiles, not pixels) height integer The height of the area to copy (given in tiles, no

Tilemap#create()

create(name, width, height, tileWidth, tileHeight, group) → {Phaser.TilemapLayer} Creates an empty map of the given dimensions and one blank layer. If layers already exist they are erased. Parameters Name Type Argument Description name string The name of the default layer of the map. width number The width of the map in tiles. height number The height of the map in tiles. tileWidth number The width of the tiles the map uses for calculations. tileHeight number The height o