This project implements a Wa-Tor simulation using C and OpenGL for visualization. Wa-Tor is a simulation of a predator (sharks) and prey (fish) ecosystem in a 2D grid.
Before running the simulation, ensure you have the following prerequisites installed:
- C compiler (e.g., gcc/clang etc)
- OpenGL library
- GLUT (OpenGL Utility Toolkit)
- CMake
Follow these steps to build and run the simulation:
Clone the Repository:
git clone https://github.com/Unic-X/Wator-OpenGL.git
cd wator-simulationMake binary
makeRun Simulation
./mainKeys used for customizing state variables:
-
Arrow Up: Increase FPS -
Arrow Down: Reduce FPS -
A/D: Decrease/Increase Spawn Rate of Sharks -
S/W: Decrease/Increase Spawn Rate of Sharks
This project is licensed under the MIT License. Feel free to contribute.
