tileset asset type
An image cut into equal tiles for tilemap: texture, tile_size in pixels and columns per row. [tiles.<id>] gives a tile collision; [[terrains]] auto-tiles…
Files live in tilesets/. Used by tilemap · tileset.
An image cut into equal tiles for tilemap: texture, tile_size in pixels and columns per row. [tiles.<id>] gives a tile collision; [[terrains]] auto-tiles by kind.
type = "tileset"
texture = "art/dungeon.png"
tile_size = 16 # or [w, h]
columns = 8
spacing = 0 # gutter between tiles
margin = 0 # border around the sheet
[tiles.3] # tile ids count row by row from the top left
collision = "full"
[tiles.7]
collision = [[[0, 16], [16, 16], [16, 8]]] # polygons in tile pixels, y down
one_way = true # a platform a body passes through from below
[[terrains]] # paints by value and picks the tiles
name = "grass"
value = 1
kind = "quarters" # rules, sides, corners, corners_and_sides or quarters
first_tile = 16
# quarters = [fill, horizontal edge, vertical edge, outer corner, inner corner] tile ids, when they do not follow first_tile