API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

interfaceTileSetOptions

@codexo/exojs-tilemap / tilemap / stable

Options for constructing a TileSet.

11
props
0
methods
0
events
Import
import { TileSetOptions } from '@codexo/exojs-tilemap'

Options for constructing a TileSet.

Properties11
class?: string
Tileset class/type string (Tiled class). Defaults to ''.
columns?: number
Number of tile columns in the atlas grid. Computed from texture width / tileWidth if omitted.
margin?: number
Pixel margin around the atlas. Defaults to 0.
name: string
Stable runtime name (unique within a TileMap).
offsetX?: number
Visual drawing offset in pixels applied to every tile of this set drawn by a tile layer. Defaults to 0.
offsetY?: number
Visual drawing offset in pixels applied to every tile of this set drawn by a tile layer. Defaults to 0.
spacing?: number
Pixel spacing between tiles in the atlas. Defaults to 0.
tileCount: number
Total number of tiles in this tileset.
tileHeight: number
Height of each tile in pixels.
tileWidth: number
Width of each tile in pixels.
Source