API reference

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

I

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?: number
Per-tile opacity in [0, 1]. Defaults to 1 when absent.
f: number
Flip 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: number
Local tile index in the owning tileset.
Source