Skip to content

TileDefinition

Defined in: packages/three-flatland/src/tilemap/types.ts:6

A single tile definition in a tileset.

optional animation?: TileAnimationFrame[]

Defined in: packages/three-flatland/src/tilemap/types.ts:16

Animation frames (if animated)


optional collision?: 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)


optional properties?: 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: number

width: number

x: number

y: number