All examples · Sprites and 2D

Tilemap

What this example shows

A whole level from one .tilemap file: its layers, what its numbers mean, and which sheet they come from. Each layer is one draw call, whatever its number of cells.

The walker climbs what solidAt says is solid, and never mentions a draw order: the file says 'under' and 'over', so the ground is below it and the treetops above. Click a plank to break it, which is writing a number into a cell; the torches cycle a sequence declared in the .atlas, the same kind a sprite animation plays.

Starting