The final project of Creative Code combined various coding skills to create a simple game. The player raises mice on their mouse farm, but a rival doesn't like the competition ans sends endless waves of snakes to take you out of business, and so the player must defend their mice with the trusty mallet.
The snakes are created and animated as a line of circles moving on a sine wave with randomly generated size, speed, and color. The game itself is a modified rain game where the snakes are generated at random y-coordinates and move in a straight line to the other end. The player uses the circle mouse cursor for aiming and click to hit the snakes with the mallet.
Download the app and see how many snakes you can thwack. The compressed file contains the source code, feel free to tinker with it yourself.