Energy-Budget Predator-Prey Agent Model (2D)
A 2D top-down companion to the agent-based ecosystem: every plant, prey animal and predator carries its own energy budget — eat, reproduce above threshold, starve at zero — with a live population chart making the resulting booms, crashes and trophic cascades directly visible.
This 2D companion drives the same energy-budget agent rules as the 3D version — plant growth, local foraging, reproduction above threshold, starvation at zero — through a plain top-down canvas view built for reading the population dynamics directly: a live chart plots predator, prey and plant counts over time beneath the arena, so the spatial refuges and trophic cascades that a smooth Lotka-Volterra curve can't show are visible as they happen.
🔬 What It Demonstrates
Discrete energy budgets and short-range foraging produce spatial refuges, demographic noise, and real extinction events — dynamics the classic Lotka-Volterra differential equations can't represent — now paired with a running population chart.
🎮 How to Use
Tune plant growth rate, foraging radius, metabolism rate and simulation speed, then inject extra predators or prey to see how the three-level food chain and the chart below it respond.
💡 Did You Know?
Run this exact simulation twice from identical starting numbers and you can get a stable ecosystem in one run and a predator die-off in the other — pure demographic stochasticity from individual foraging luck, visible directly on the population chart.
A 2D top-down agent-based ecosystem where every plant, prey and predator carries its own energy budget — eat, reproduce above threshold, starve at zero — with a live population chart tracking the resulting cascades.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install