A Boids Simulation written in Python with Pygame

PyNBoids

A Python Boids Simulation
This is a Boids simulation, written in Python3 with Pygame2.
PyNBoids

To use save the pynboids.py file somewhere (and nboids.png if you want
it’s icon, not required), and run via python. (Example: python3 pynboids.py)

Esc key to quit.

I’ve included several tweakable settings near the top of the code. You can
adjust window size, fullscreen, fps, and how many boids to spawn, as well as
whether boids avoid screen edges or wrap to the other side.. Change the
background color, or turn the Boids into fish! 😉 More in the future..

GitHub

https://github.com/Nikorasu/PyNBoids

 

 

 

To finish reading, please visit source site