1681-engine / index / LdtkEntity
Interface: LdtkEntity ​
Defined in: src/tilemap/ldtk.ts:30
Properties ​
cx ​
cx: number;Defined in: src/tilemap/ldtk.ts:42
The grid cell it stands in.
cy ​
cy: number;Defined in: src/tilemap/ldtk.ts:43
fields ​
fields: Record<string, LdtkFieldValue>;Defined in: src/tilemap/ldtk.ts:46
Every field instance by identifier, as exported (Points, arrays and entity refs included).
height ​
height: number;Defined in: src/tilemap/ldtk.ts:38
identifier ​
identifier: string;Defined in: src/tilemap/ldtk.ts:33
The entity definition's identifier (Player, Chest…).
iid ​
iid: string;Defined in: src/tilemap/ldtk.ts:31
layer ​
layer: string;Defined in: src/tilemap/ldtk.ts:48
The layer it was placed on.
pivotX ​
pivotX: number;Defined in: src/tilemap/ldtk.ts:39
pivotY ​
pivotY: number;Defined in: src/tilemap/ldtk.ts:40
tags ​
tags: string[];Defined in: src/tilemap/ldtk.ts:44
width ​
width: number;Defined in: src/tilemap/ldtk.ts:37
x ​
x: number;Defined in: src/tilemap/ldtk.ts:35
The pivot point in level px (the layer's offset included): where LDtk shows the entity standing.
y ​
y: number;Defined in: src/tilemap/ldtk.ts:36