Background Image Foreground Image

The Predator-Prey Simulator is an interactive model that demonstrates natural selection and the balance of ecosystems through engaging gameplay.

Thumbnail Image

Watch a demo here!

Concept and Objectives

Inspired by the Lotka-Volterra equations, the simulator explores how variations in animal attributes affect behaviour and survival in a dynamic environment. The aim is to create a realistic ecosystem where players can observe the interactions between predators and prey.

Design Elements

Prey Behaviours Predator Behaviours
  • Environment: Manages entity spawning and ensures population balance for plants and animals.
  • Animals: Utilises finite state machines for simplified predator and prey behaviours based on survival needs.
  • Camera Controller: Provides a strategy-style camera that follows selected animals, enhancing immersion.
  • User Interface: Currently in development, intended to display population statistics and facilitate player interactions.

Programming and Implementation

The simulator employs Unity’s AI for movement and pathfinding, allowing animals to navigate efficiently while avoiding obstacles. A basic genetic algorithm governs reproduction and mutation, although enhancements are needed to improve long-term viability in the ecosystem.

Future Enhancements

Plans for future development include refining the genetic algorithm, adding attributes like health and age for animals, and improving the user interface for a more interactive experience. Additionally, I aim to create more complex terrains and diverse species to enrich gameplay and simulation depth.