TmxTileset
Defined in: src/modules/tmx/tmx.ts:45
A single image-based tileset cut into a uniform grid.
Properties
Section titled “Properties”columns
Section titled “columns”columns:
number
Defined in: src/modules/tmx/tmx.ts:49
Number of tile columns in the sheet (derived if not declared).
firstgid
Section titled “firstgid”firstgid:
number
Defined in: src/modules/tmx/tmx.ts:51
Global id of this tileset’s first tile (first tile id is 1).
imageHeight
Section titled “imageHeight”imageHeight:
number
Defined in: src/modules/tmx/tmx.ts:53
Source-image height in pixels.
imageSource
Section titled “imageSource”imageSource:
string
Defined in: src/modules/tmx/tmx.ts:55
Tileset image path, relative to the .tmx file.
imageWidth
Section titled “imageWidth”imageWidth:
number
Defined in: src/modules/tmx/tmx.ts:57
Source-image width in pixels.
margin
Section titled “margin”margin:
number
Defined in: src/modules/tmx/tmx.ts:59
Transparent margin around the tile grid, in pixels.
name:
string
Defined in: src/modules/tmx/tmx.ts:47
Tileset name.
spacing
Section titled “spacing”spacing:
number
Defined in: src/modules/tmx/tmx.ts:61
Gap between adjacent tiles, in pixels.
tileHeight
Section titled “tileHeight”tileHeight:
number
Defined in: src/modules/tmx/tmx.ts:63
Tile height in pixels.
tileWidth
Section titled “tileWidth”tileWidth:
number
Defined in: src/modules/tmx/tmx.ts:65
Tile width in pixels.