FuzzBalls were my first main attempt at learning OOP in Python. In this sketch, you can create different “balls” that react to one another: Some will push, and some will pull. Directions are on the screen when you load the applet.
Example of using both ‘push’ and ‘pull’ balls, with energy usage:
Example of using both ‘push’ and ‘pull’ balls, with but with no energy usage: