JonKramme / python-pygame-boids

Implementation of the boids (flocking) algorithm by Craig Reynolds, in Python using Pygame.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python-pygame-boids

Python3 LGTMGradePython

This is an implementation of the boids (flocking) algorithm by Craig Reynolds, in Python using Pygame.

Features

Toggle all 3 rules on the fly.
Toggle different debug features:
  • Show Ranges (view and protected range).
  • Show the Velocity Vector.
  • Show the Boids ID as a Label on it (Will slow down the process).

Planned

Add more rules and features:
  • other Objects, Predators, etc.
Add widgets like buttons and sliders to adjust the simulation on the go.

Screenshots

https://github.com/JonKramme/python-pygame-boids/blob/master/docs/images/base-22-04-29.png

https://github.com/JonKramme/python-pygame-boids/blob/master/docs/images/base2-22-04-29.png

Resources

About

Implementation of the boids (flocking) algorithm by Craig Reynolds, in Python using Pygame.


Languages

Language:Python 100.0%