Skip to content

TERRAIN_NEIGHBORS

const TERRAIN_NEIGHBORS: ReadonlyArray<{ bit: number; dx: number; dy: number; }>

Defined in: tilemap/autotile.ts:33

The 8 neighbour offsets (tile grid, y down) paired with their peering bit. Index order is the contract for resolveAutotile’s neighbors argument.