跳转到内容

resolveAutotile

此内容尚不支持你的语言。

resolveAutotile(index, neighbors): number

Defined in: tilemap/autotile.ts:108

Pick the tile for a cell given which of its 8 neighbours are the same terrain. neighbors is indexed by TERRAIN_NEIGHBORS order. Returns 0 if the set is empty.

TerrainIndex

readonly boolean[]

number