Game dev
Saved & recent

Autotiling

Related terms: terrain tiles, neighbor rules, bitmask, tilemap

Choosing a tile variant from the tiles around it. Paint a patch of terrain and rules select the matching edges, corners and center pieces, so grass can meet dirt without placing every border by hand.

Rules can inspect four neighbors or include diagonals. A tileset must supply the combinations the rules need. Autotiling chooses the appearance of a tilemap; it does not by itself design a playable level.

Further reading
Godot Engine: Creating terrain sets (autotiling)
painted cells resolved edges outside corner inside corner
The occupied cells are the same in both views. The border rule checks adjacent and diagonal cells to choose the straight edges and inside and outside corners.

View in the full Game dev collection