Talos docs

TilemapTileset

Since 0.6
Plain text

Fields

FieldTypeRequiredDefaultAllowed valuesDescription
imagestringyesA key of scene.assets whose kind is "texture": the tile sheet (a PNG with alpha).
tileSizeunknown[]yes[width, height] of one tile in pixels, whole numbers above zero.
gridunknown[]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).
marginnumbernoPixels of border round the sheet before the first tile, a whole number, default 0.
spacingnumbernoPixels between neighbouring tiles on the sheet, a whole number, default 0.