TileDefinition
Defined in: packages/three-flatland/src/tilemap/types.ts:6
A single tile definition in a tileset.
Properties
Section titled “Properties”animation?
Section titled “animation?”
optionalanimation?:TileAnimationFrame[]
Defined in: packages/three-flatland/src/tilemap/types.ts:16
Animation frames (if animated)
collision?
Section titled “collision?”
optionalcollision?:CollisionShape[]
Defined in: packages/three-flatland/src/tilemap/types.ts:12
Collision shapes (if any)
id:
number
Defined in: packages/three-flatland/src/tilemap/types.ts:8
Global tile ID (GID)
properties?
Section titled “properties?”
optionalproperties?:Record<string,unknown>
Defined in: packages/three-flatland/src/tilemap/types.ts:14
Custom properties
uv:
object
Defined in: packages/three-flatland/src/tilemap/types.ts:10
UV coordinates in atlas (normalized 0-1)
height
Section titled “height”height:
number
width:
number
x:
number
y:
number