An example project, creating Boids in Python using The Python Arcade Library entities.
Boids are a way to represent a complex system using a set of simple rules. This project uses the following basic rules.
Alignment: steer towards the average heading of local flockmates
Seperation: steer to avoid crowding local flockmates
Cohesion: steer to move towards the average position (center of mass) of local flockmates
Boids chase the mouse when active, status is reported in the top right. Mouse:
- False: Mouse not active
- True: Boids will chase the mouse Follow:
- True: Boids will follow the mouse
- False: Boids will run away from the mouse
- Install the required packages
pip3 install -r requirements.txt
- Run main
python3 main.py