Building a Serengeti in Six Days
For the last week I’ve been building a small piece of the Serengeti: a 400 by 400 metre patch of savanna in Godot, with a river, a waterhole, a rocky kopje, acacias, and fifteen species living on it. Lions, cheetahs, leopards, hyenas, crocodiles, vultures, zebras, wildebeest, gazelles, buffalo, elephants, giraffes, hippos, warthogs and dwarf mongooses. Nobody scripts what happens. Every animal decides for itself what to do next, and the stories come out of that.

One rule: every number needs a source
The rule I set at the start was that nothing gets made up. How far a zebra walks from water, how long a cheetah can sprint, how often an elephant pushes over a tree, how long a lioness rests in the afternoon: every number in the code says where it comes from, mostly field studies. When there was no study, the number is marked as a guess. That rule shaped the whole project. It’s slower than tuning by feel, but when something odd happens on the board, the question is never “is this realistic?” but “is the model wrong, or is the data?”
A day on the board
The sun follows the clock, and there are wet and dry seasons. In the dry season the migrants (wildebeest, zebras, gazelles) leave the board and walk back in with the rains. Time runs on two clocks: a game day for behaviour, and a life clock where one game day is a month, so animals are born, grow up, get injured, fall ill and die within a session you can actually watch. A zebra can go from foal to lunch before my coffee gets cold.
Every animal has a name (Swahili, unique among the living), a mother, a condition, and a history. Click one and you get its card.

Animals are made of parts
The code has one rule above the rest: no species in shared code. A behaviour like Rest, Hunt or Flee never asks “am I a lion?”. A species is a set of components (body, sight, hunting, escape, thermal…), each with its own parameters and their sources, plus the behaviours it uses. A cheetah and a lion run the same Hunt; what differs is data and a small pluggable strategy. Adding an animal means writing a file of numbers, not touching the hunt.
Hunting
Predators search, stalk, charge and grab. Stalking is where it got interesting: prey only see what’s in their line of sight and not hidden by grass, so a lioness creeping through tall grass freezes when a zebra lifts its head, and waits. It’s a game of statues where losing means you get eaten.
Takedowns in physics
The grab itself started as a separate prototype: the predator and the prey as physics bodies, an active ragdoll gripping, kicking and pulling, with throat holds, horn hooks and prey that sometimes break free and limp off.
Cheetahs don’t wrestle. They trip the prey at full speed with a swipe of the paw, then hold the throat until it’s over.
Physics is expensive, so it only runs for takedowns you’re actually watching. Call it Schrödinger’s buffalo. Every other takedown on the board is settled by odds tables, and those tables come from about 3,000 physics trials across nine predator and prey pairings. So an unwatched lion against a buffalo behaves the same, on average, as the one on screen.
Prey fight back, too. Buffalo mob lions, and a herd will come back for one of their own.
Vultures
Every kill feeds more than the hunter. Three vulture species patrol the sky: white-backed, lappet-faced and hooded. They can’t flap their way across a savanna all day, so they wait for the sun to warm the ground and ride the thermals up, from mid-morning to late afternoon. From up there they spot a carcass and spiral down to it.
The board has twenty white-backed vultures, the crowd, and only a few of the other two. At a carcass there’s a pecking order: the big lappet-faced vulture first, then the white-backs, then the small hooded vulture at the edge, and all of them below the cats. They wait nearby while the lions are still eating. A carcass on the board goes from meat to scraps, and the skin and tendons left when the cats are done are vulture food only.
They also give the game away. Hyenas find carcasses almost twice as fast by watching where vultures come down, and on the board, lions and hyenas look up too: a column of vultures dropping out of the sky is visible for kilometres. So a cheetah’s kill can bring a whole queue of diners, and the cheetah often isn’t the one who finishes it.
Shade
Lions spend most of a hot day lying in the shade, and that turned out to matter for everything else: where the pride lies decides where it hunts at dusk. Every tree and big rock casts a shadow that follows the sun, stretched long in the morning and evening, and animals claim room in it by rank.
Water and leaps
For a while animals got stuck: a lioness standing at the same spot for sixteen minutes, a zebra pinned against the river bank. The fix was to give each species its own way of moving: some wade, some swim, some leap low rocks. In a sixteen-run test the worst stuck animal went from 996 seconds to 75.
Elephants knock down trees
The latest piece. Elephants browsing a tree they can’t reach the top of sometimes push it over or snap it, more in the dry season, and never with anything up it. Half the felled trees snap at the stem and half go over by the roots. Around a third of snapped stumps resprout (Morrison 2016), browsing keeps the regrowth down, and the fallen logs take about eleven years to rot (Buxton 1981). I took the paper’s word for that one. The logs become obstacles that animals leap or walk round, and cover for anything stalking.
How it got built in six days
This was 453 commits and about 50,000 lines of GDScript between 20 and 25 November, and I didn’t type most of it. I built it with Claude Code, usually with several agents working at once on separate branches: one on lions, one on the physics prototype, one on vultures, one on shade, and so on, then merging back. My main job was reading what they wrote and saying things like “no, lions don’t do that”.
What made that work was the documentation, not the code. The project has a living guide to how animals are put together, with the rules (no species in shared code, every number sourced, one behaviour per file) and a record of who built what. Each agent read it before starting and updated it when done. The other half was measurement: report tools that run the board for days at high speed across many seeds and count kills, deaths, time stuck and hours in the shade, so a change is judged by numbers instead of by one lucky video.
What’s next
Plenty is still rough. Animals don’t drown or tire in the water yet, crocodiles kill a few too many at the crossings, and herds crowd the same spot on the shore. The next thing I’d like is a web version: a live board you can leave open in a tab and watch.



