[readonly] tileHeight : integer The height of each tile (in pixels).
[readonly] image : Object The cached image that contains the individual tiles. Use setImage
[readonly] columns : integer The number of tile columns in the tileset.
setImage(image) Set the image associated with this Tileset and update the tile data. Parameters
draw(context, x, y, index) Draws a tile from this Tileset at the given coordinates on the context. Parameters
firstgid : integer The Tiled firstgid value.This is the starting index of the first tile index this Tileset contains.
[readonly] total : integer The total number of tiles in the tileset.
containsTileIndex() → {boolean} Returns true if and only if this tileset contains the given tile
[readonly] tileWidth : integer The width of each tile (in pixels).
[readonly] rows The number of tile rows in the the tileset. Properties:
Page 1 of 2