Talos docs

TilemapLayer

Since 0.6
Plain text

Fields

FieldTypeRequiredDefaultAllowed valuesDescription
namestringyesWhat ctx.tilemap calls it. Unique within the tilemap.
rowsstring[]yesThe cells, one string per row, top row first, one character per cell, every row the same length (tilemap-invalid). A character is a key of the tilemap's legend; "." and " " are empty. At most 1024 rows of 1024 cells (tilemap-too-large).
sortLayernumbernoThe draw layer, -32..32, default 0, on the same scale as a flat sprite's: a sprite on a higher layer is drawn over these tiles, one on a lower layer under them.
ordernumbernoThe order within sortLayer, -500..500, default 0, as a flat sprite's order.
collisionbooleannofalseDefault false. True: every non-empty cell is solid. The engine merges the solid cells into rectangles and gives the entity one static body of 1 m deep boxes, centred on its XY plane, so a planar character stands on them. The entity then has no collider or rigidbody of its own (tilemap-invalid).
visiblebooleannotrueDefault true. False: not drawn (a collision-only layer still collides).