Sandboxels
Interactive Simulation

Ant Colony Simulation

Watch ants dig complex tunnel networks, build underground chambers, and forage for food — all powered by emergent pixel-physics behavior.

Fullscreen

How It Works

Ants in Sandboxels exhibit surprisingly realistic behavior. Each ant is an independent agent that crawls across surfaces, digs through soil, and builds ant walls to form tunnel structures. Drop food near the colony and watch them forage.

Tunnel Digging

Ants crawl through soft materials like dirt and sand, carving out tunnels and chambers as they go.

Wall Building

As ants dig, they reinforce tunnels with ant walls — a durable material that holds the colony structure together.

Food Foraging

Ants eat sugar, wheat, bread, honey, and crumbs. Place food near the colony surface and watch ants find it.

Colony Growth

Fed ants reproduce, so the colony grows over time. A well-fed colony can expand rapidly through the soil.

Tips for a Thriving Colony

1

Use dirt or mud as the primary substrate — ants dig through these most efficiently.

2

Place sugar or wheat on top of the soil as a food source. Ants will find it and feed.

3

Add a layer of rock at the bottom to prevent ants from falling off the canvas.

4

Try adding water near the colony — ants avoid it, creating interesting tunnel patterns.

5

Keep the temperature moderate. Extreme heat (100°C+) or cold (0°C) kills ants.

Try These Experiments

Flood vs. Colony — Pour water on one side and see if ants can escape.

Two Colonies — Place ants on both sides with dirt in the middle. Will they meet?

Ant vs. Termite — Add termites and watch them compete for the same soil.

Fire Escape — Light a fire above the colony. Can the ants dig deep enough to survive?