API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceLdtkTileData
@codexo/exojs-ldtk / ldtk / stable
A single tile placed in a Tiles or AutoLayer layer instance.
5
props
0
methods
0
events
Import
import { LdtkTileData } from '@codexo/exojs-ldtk'A single tile placed in a Tiles or AutoLayer layer instance.
Properties5
a?: numberPer-tile opacity in [0, 1]. Defaults to 1 when absent.
f: numberFlip bits: 0 = none, 1 = flipX, 2 = flipY, 3 = flipX + flipY. Use LDTK_FLIP_X / LDTK_FLIP_Y constants for clarity.
px: readonly [number, number]Pixel position [x, y] of this tile within the layer.
src: readonly [number, number]Source position [x, y] in the tileset image (top-left of the tile).
t: numberLocal tile index in the owning tileset.
Source