SHEET 12 · Simulation
Ant Farm Simulator
bitECS-powered colony simulation — 50K ants at 60fps with haplodiploidy genetics, multi-colony warfare, and a visual behavior tree editor

2024liveSimulation
About
A deeply modeled ant colony simulation running 50,000+ entities at 60fps using bitECS on a Web Worker with SharedArrayBuffer for zero-copy transfer to a PixiJS 8 GPU renderer. Colonies exhibit emergent behavior across 22 states through pheromone networks and 16-locus haplodiploidy genetics (dominant/recessive/codominant expression, crossover, mutation). A drag-and-drop behavior tree editor built on React Flow lets users rewire ant AI live, while up to 5 colonies compete for territory with spatial-hash combat and colony absorption.
Key features
- 01Emergent AI with 22 behavioral states and 32-step tick execution order
- 02Haplodiploidy genetics engine: 16 gene loci with dominant/recessive/codominant expression
- 03Multi-colony warfare (1-5 colonies) with spatial-hash combat and colony absorption
- 04Visual behavior tree editor via React Flow with live preview pushing to simulation worker
- 05Genealogy viewer: interactive lineage tree with mutation tracking across generations
- 06Level editor: terrain painting, colony personality presets, resource deposit placement
- 07Colony gallery and tournament system via Supabase
- 08Pheromone visualization overlays (food, home, alarm, explore, resource) with screen-blend compositing
- 09Day/night cycle with procedural sun/moon, stars, clouds, and sky gradient transitions
- 103D ant farm mode: Three.js wooden-frame scene with glass mesh and orbit controls
- 11Procedural audio via Tone.js with scene-based A/B crossfade music
- 12Real-time stats sparklines and filterable event log with click-to-pan navigation
- 13Binary save format (JSON header + gzipped typed arrays) with cloud sync
Nearby
SHEET 13 · Simulation
no plate captured · live build
Particle Animation Demos
Hand-written WAT + WebGPU compute shaders push 100K particles at 60fps across galaxy, murmuration, and airflow simulations
2024live
SHEET 14 · Simulation
no plate captured · live build
Neural Maze Navigator
Feedforward neural networks evolve via genetic algorithms to solve procedural mazes — 11 presets, death heatmaps, live neuroevolution
2024live