The Game Dev Atlas, Act I, The Pixel Art Island: an engraved map of an island whose towns are the techniques of pixel art for games.
Unrolling the map...
by Sprite Fusion

Motion · Act I

Pixel art loop. A towel, a checked shirt and overalls hang on a washing line. A grid of points shows over the shirt, pinned at two pegs. Wind rises, the washing folds and darkens where it turns, and the shirt tears free and is carried off.
Act I, fig. 5 Washing on a line as a storm comes up. Each piece is one flat sprite, and the gust pulls the shirt off its pegs.

Flags and capes are three frames on repeat.

Lay a grid of points over the flat drawing, joined by links that keep their length. Pin a few, let gravity and wind push the rest.

Turn my flat pixel drawing into cloth: a pinned grid with Verlet physics, wind and shaded folds.
Read the whole brief
Turn [my banner sprite] into cloth that hangs, sways, folds and can tear.

- Lay a grid over the sprite, a point every [3] px. Keep the squares that have pixels in them.
- Link each point to its neighbors: across and down, both diagonals, and two apart to resist bending.
- Pin the points [along the top edge].
- Each step: move every free point by its last move plus gravity and wind (Verlet), then pull every link back to its length, [8] times over.
- Wind comes in gusts, and pushes toward the viewer too: that is what makes folds.
- Draw each square with the sprite's own pixels, the nearest one, never a blend.
- Shade a fold one palette step darker as it turns from the light, two when it turns far.
- A pin lets go when the pull on it passes [a limit]. Then the cloth flies off.

Change what stands in [brackets] to fit your game.

  1. Cloth that hangs and is always in view: capes, flags, banners, curtains. The vampire's cape in Destroy Any Website is made this way.
  2. Any velvet-like material (or anything that could count as one! Be creative).

Not forClothes worn on an animated body: keeping cloth out of the body is the hard part.

Thomas Jakobsen made the method for Hitman: Codename 47 and presented it in 2001.[1] Jared Counts showed in 2012 how such a cloth tears.[2] In 2026 the script Heos Cloth did it for flat pixel drawings.[3] The figure is this atlas's own.

  1. Thomas Jakobsen, Advanced Character Physics, Game Developer
  2. Jared Counts, Simulate tearable cloth and ragdolls with simple Verlet integration, Envato Tuts+, 2012
  3. Make Your Aseprite Drawings Behave Like Cloth, 80 Level, 2026