tileset data in JSON format (http://docs.mapeditor.org/en/stable/reference/tmx-map-format/#tileset)
OptionalmapTilewidth: number
the map's tile grid width in pixels
OptionalmapTileheight: number
the map's tile grid height in pixels
the tileset class (since Tiled 1.9, renamed back to type on tile/object in 1.10)
fill mode when tiles are not rendered at native size (since Tiled 1.9)
the first global tile ID of this tileset
Tileset contains animated tiles
true if the tileset is a "Collection of Image" Tileset
the last global tile ID of this tileset
the margin around tiles in pixels
the tileset name
the point of a tile object from this tileset that sits at its position: "topleft", "top", "topright", "left", "center", "right", "bottomleft", "bottom" or "bottomright". "unspecified" means the bottom left, or the bottom center on an isometric map
the spacing between tiles in pixels
the height of each tile in pixels
tile drawing offset
how tiles render relative to the grid (since Tiled 1.9)
the width of each tile in pixels
return true if the gid belongs to the tileset
return the class of the specified tile, as set on the tile in Tiled's tileset editor. A tile object with no class of its own is matched by it.
global tile ID
the tile's class, or undefined if it has none
return the tile image from a "Collection of Image" tileset
corresponding image or undefined
return the properties of the specified tile
global tile ID
tile properties or undefined
Get the view (local) tile ID from a GID, with animations applied
Global tile ID
View tile ID
animate a tile: wherever it is drawn, it shows each frame's tile in turn, for the frame's duration, and starts over
the tile's id within the tileset (its gid less firstgid)
the tiles to show, by their id within the tileset, each with its duration in milliseconds
give a tile a class name, which Tileset#getTileClass returns
global tile ID
the class name
set the properties of a tile, which Tileset#getTileProperties returns
global tile ID
property object
The id, within the tileset, of the tile whose top left corner is at a point of the tileset's image: for a map format that names a tile by where it is in the image, or numbers the tiles another way than row by row over the whole tiles the image holds.
the tile's left edge in the image, in pixels
the tile's top edge in the image, in pixels
the tile's id (add firstgid for its global id), or -1 where no whole tile of the tileset starts
a TMX Tile Set Object: a Tileset read from a Tiled map, or from the tileset file the map names