← Pixel Art from Scratch
Lesson 43 of 61 · 5 XP
A tile: a square that repeats
Theory
Machine translation, not yet reviewed by a native speaker.
The levels of 2D games are built from tiles — 8×8, 16×16 or 32×32 squares placed next to each other in a grid. One grass tile covers a whole field — it saves memory and work.
The main thing is to be seamless: the right edge of a tile must continue into the left one, the bottom into the top. Otherwise the grid is visible on the field.
The editor has a "Tile" mode for this: a drawing that goes past an edge appears on the other side (the coordinates are taken modulo the size), and the preview shows the tile repeated 3×3 — you see the joins at once.
Tips:
- avoid big noticeable details — when they repeat, they add up to a "wallpaper" pattern;
- spread the details evenly, don't press them against the edges;
- make 2–3 variants of a tile and alternate them on the map.