Tileset#rows

[readonly] rows The number of tile rows in the the tileset. Properties: Type Description integer Source code: tilemap/Tileset.js (Line 93)

Tileset#properties

properties : Object Tileset-specific properties that are typically defined in the Tiled editor. Source code: tilemap/Tileset.js (Line 77)

Tileset#name

name : string The name of the Tileset. Source code: tilemap/Tileset.js (Line 33)

Tileset#image

[readonly] image : Object The cached image that contains the individual tiles. Use setImage to set. Source code: tilemap/Tileset.js (Line 85)

Tileset#firstgid

firstgid : integer The Tiled firstgid value.This is the starting index of the first tile index this Tileset contains. Source code: tilemap/Tileset.js (Line 40)

Tileset#draw()

draw(context, x, y, index) Draws a tile from this Tileset at the given coordinates on the context. Parameters Name Type Description context CanvasRenderingContext2D The context to draw the tile onto. x number The x coordinate to draw to. y number The y coordinate to draw to. index integer The index of the tile within the set to draw. Source code: tilemap/Tileset.js (Line 123)

Tileset#containsTileIndex()

containsTileIndex() → {boolean} Returns true if and only if this tileset contains the given tile index. Returns boolean - True if this tileset contains the given index. Source code: tilemap/Tileset.js (Line 155)

Tileset#columns

[readonly] columns : integer The number of tile columns in the tileset. Source code: tilemap/Tileset.js (Line 101)

TilemapParser.parseJSON()

<static> parseJSON(json) → {object} Parses a Tiled JSON file into valid map data. Parameters Name Type Description json object The JSON map data. Returns object - Generated and parsed map data. Source code: tilemap/TilemapParser.js (Line 180)

TilemapParser.parseCSV()

<static> parseCSV(key, data, tileWidth, tileHeight) → {object} Parses a CSV file into valid map data. Parameters Name Type Argument Default Description key string The name you want to give the map data. data string The CSV file data. tileWidth number <optional> 32 The pixel width of a single map tile. If using CSV data you must specify this. Not required if using Tiled map data. tileHeight number <optional> 32 The pixel height of a single map tile. If