API reference

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

I

interfaceTileDefinition

@codexo/exojs-tilemap / tilemap / stable

Optional per-tile metadata in a TileSet. Sparse - only defined tiles carry a definition.

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

Optional per-tile metadata in a TileSet. Sparse - only defined tiles carry a definition.

Properties4
Animation frame sequence for this tile, if animated. The frames are driven at runtime by a import('./TileAnimator').TileAnimator; frame[0] is the tile's resting/base frame.
Per-tile collision shapes sourced from the Tiled objectgroup on the tile. Shapes are in tile-local pixel space (origin = top-left of the tile cell). Only present when the source map defines collision geometry for this tile.
localTileId: number
The local tile ID this definition belongs to.
Source