Project Factory

← All projects

Screenshot of Sandfall

Sandfall

A falling-sand world on the GPU, with a shareable gallery.

Open Sandfall

Creative pieceLarge4 of 4 milestonesShipped

How it's built

Pour sand, water, oil, lava, acid, ice, gunpowder and fire into a 512 by 512 world and watch fifteen elements react. The rules are an integer cellular automaton on 2 by 2 Margolus blocks, written once and run as a WebGL2 fragment shader with a bit-identical TypeScript twin in a Web Worker. A test proves Node, the worker and the GPU produce the same world hash, so every creation is just its stroke log: undo, share links, replays and a public remix gallery all follow from that.