The 2D layer · interface
Tilemap
Explained in Sprites and tilemaps.
interface Tilemapimport type { Tilemap } from '@driftengine/ui2d';Properties
| Name | Type | Description |
|---|---|---|
columnsreadonly | number | |
rowsreadonly | number | |
tilesreadonly | Int32Array | One frame index per cell, row-major. TILE_EMPTY for a cell with nothing in it. |
tileWidthreadonly | number | How big a cell is, in whatever units the batch's affine maps from. |
tileHeightreadonly | number | |
x | number | Where cell (0, 0)'s corner sits.MoreMutable, because scrolling a map is moving it and the alternative is rebuilding one. |
y | number |