Skip to content

1681-engine / index / autotile

Function: autotile() ​

ts
function autotile(
   grid, 
   set, 
   out?
): Uint32Array;

Defined in: src/tilemap/autotile.ts:185

Every cell's tile, row-major: the whole grid autotiled.

Parameters ​

ParameterType
gridTerrainGrid
setAutotileRuleSet
outUint32Array<ArrayBuffer>

Returns ​

Uint32Array

Released under the MIT License.