← All notes

Wadi: falling sand, but it floods

A pixel desert valley with sand, water, palms, fire, oil, and lava. Then press F.

Play it One HTML file. Runs in your browser, nothing to install.

A falling-sand toy set in a wadi. You paint with sand, water, stone, palm seeds, fire, oil, lava, TNT, springs, and wood, and every grain follows simple rules that add up to something that looks alive.

Palms grow where there’s water. Oil floats and burns. Lava turns water into steam and sand into glass.

Then you press F, and a flash flood comes down the wadi and takes everything you built with it, which is exactly what happens in real life every year to somebody who parked in one.

N skips the day and night cycle ahead, and there’s a shamal button for wind. You can save the result as a PNG.