"Flip bits", a 2-bits integer to represent the mirror transformations of the tile.
Examples:
Pixel coordinates of the tile in the layer.
World position of a tile:
const layer = ...;
for (tile in layer.tiles) {
const tileWorldX = tile.px[0] + layer.pxTotalOffset.x
const tileWorldY = tile.px[1] + layer.pxTotalOffset.y
}
Pixel coordinates of the tile in the tileset
The Tile ID in the corresponding tileset.
Generated using TypeDoc
Represents a single
Tile
instance.