API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
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?: stringTileset class/type string (Tiled class). Defaults to ''.
columns?: numberNumber of tile columns in the atlas grid. Computed from texture width / tileWidth if omitted.
margin?: numberPixel margin around the atlas. Defaults to 0.
name: stringStable runtime name (unique within a TileMap).
offsetX?: numberVisual drawing offset in pixels applied to every tile of this set drawn by a tile layer. Defaults to 0.
offsetY?: numberVisual drawing offset in pixels applied to every tile of this set drawn by a tile layer. Defaults to 0.
spacing?: numberPixel spacing between tiles in the atlas. Defaults to 0.
Texture atlas for this tileset. Textures are Loader-owned.
tileCount: numberTotal number of tiles in this tileset.
tileHeight: numberHeight of each tile in pixels.
tileWidth: numberWidth of each tile in pixels.
Source