Home▸Nature & Climate▸Predator-Prey Ecosystem (2D)

Predator-Prey Ecosystem (2D)

2D top-down predator-prey ecosystem: prey flee, forage and reproduce while predators hunt, feed and starve, so population balance emerges from agent rules instead of a fixed script.

Nature & Climate2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-ecosystem-2 ↗ Open standalone

This 2D companion to the 3D ecosystem lab runs the same spatial agent model — flee, chase, forage, reproduce, starve — as a plain top-down field so the population dynamics read directly. Prey drift toward food and away from danger, predators hunt whichever prey is nearest, and both die out or thrive depending on the balance you set between food, speed, predator numbers and reproduction rate.

⚙ Under the hood

Top-down 2D predator-prey ecosystem where food availability, movement speed, predator count and reproduction rate sliders drive real population dynamics — no scripted outcome.

predator-preyagent-based modelpopulation dynamicsfood chainecosystem

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)