TilemapTileset
Since 0.6
Fields
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
image | string | yes | A key of scene.assets whose kind is "texture": the tile sheet (a PNG with alpha). | ||
tileSize | unknown[] | yes | [width, height] of one tile in pixels, whole numbers above zero. | ||
grid | unknown[] | yes | [columns, rows] of tiles on the sheet, whole numbers above zero. Tile n is column n % columns of row floor(n / columns), counting from 0 at the top-left, as a sprite's grid cell counts; the legend's indices are below columns × rows (tilemap-tile-unknown). | ||
margin | number | no | Pixels of border round the sheet before the first tile, a whole number, default 0. | ||
spacing | number | no | Pixels between neighbouring tiles on the sheet, a whole number, default 0. |