new TileLayerData(tile, direction, mirror, color)engineTileLayer.js:625Create a tile layer data object, one for each tile in a TileLayer
tilenumber optionalThe tile to use, from 0 like tile(); undefined is an empty cell that draws nothing
directionnumber optional, default 0Integer direction of tile, in 90 degree increments
mirrorboolean optional, default falseIf the tile is flipped left to right
colorColor optionalColor of the tile
// create tile layer data with tile index 0 and random orientation and color
const tileIndex = 0;
const direction = randInt(4)
const mirror = randBool();
const color = randColor();
const data = new TileLayerData(tileIndex, direction, mirror, color);