All work

2025 / University project · source available / Live demo

Evolution.io

Herbivores eat plants, carnivores hunt herbivores, and the dead feed the soil. From a few rules, tens of thousands of agents produce hunting, fleeing, migrations and boom-and-bust cycles in real time.

Evolution.io running: thousands of green, blue and red agents spread over a dark grid, with population charts for carnivores, herbivores and plants.
animals on an average machine
55k+

Overview

Evolution.io simulates carnivores, herbivores and plants on a large procedurally generated map. It started as a university project on emergent behaviour and became a stress test for the engine underneath it.

Rendering and simulation run in parallel loops on separate threads, so the frame rate stays responsive while the population grows past fifty thousand animals.

What I built

  1. 01 Physics, AI and interaction logic on their own thread, separate from rendering, camera, input and UI.
  2. 02 Spatial structures that keep neighbour queries cheap at very large population sizes.
  3. 03 Configurable genetics, movement, combat and reproduction systems.
  4. 04 Live population charts and controls to change parameters without restarting.