The sand is a grid of 52,000 cells (sand, stone, wet, empty); tunnels are carved cell by cell and the glass face is drawn from that grid as real relief.
Diggers extend planned tunnels and chambers one grain at a time and carry every load up to the mounds on top.
Foragers scout the garden; whoever finds food lays a pheromone trail home and recruits others, so a line forms along the shortest path.
Diggers, foragers, nurses and soldiers each run a small state machine. The queen lays eggs; nurses move and feed them: egg, larva, pupa, new ant.
Chambers get their purpose from what is stored in them: brood, food, rest, guards or rubbish.
Drag outside the glass to orbit, scroll to zoom, double-click an ant to follow it. Every sound is synthesized live.
The ant farm won't load
This world needs WebGPU or WebGL2. Try a recent Chrome, Edge, Safari or Firefox.