Dodge the balls!
This is a game. It's simple, but it's a great exercise and a starting point for creating an arcade type game. The difficulty with this project was the collision detection.
Collision between a circle and a rectangle requires checking 8 quadrants. Although, there are other methods, this was chosen and straightforward. The code checks for a direct hit on each of the 4 sides of the square. The other 4 are the corners.
This was created for College of the Sequoias' (Tulare, CA) COMP 008 - Programming Concepts.