simulating the movement and collision of circles in a confined space using basic physics and circle-circle collision algorithm
interact with the program by holding down the mouse button to draw a circle
when the mouse button is released, the circle will be added to the simulation
A
- render lines to show attractions to circlesR
- reset the screenESC
- exit the program
showcase.mp4
you will need to install these modules:
pip install pygame
- use a 2d vector class
- add some debugging information (fps, circle count)
- add a menu to toggle features and change colours