BallJuggle.lua
From codeTank
BallJuggle.lua is a simple little game where you attempt to keep a ball in the air. I commented nearly every line in the script, so it should be easy to follow.
Download it here: http://codetank.com/pub/sean/BallJuggle.lua
(Latest Update to Source Code: 16 Jan 2008)
Controls
Use the mouse to kick the ball.
Goal
Your goal is to keep the ball in the air, without it hitting the sides, for as long as possible.
Homework
The game might be a little boring, because I attempt to do "correct" calculations... instead, exaggerate the ball's sensitivity to the cursor position, so the game doesn't get repetitive.
Multiple balls! Reset the score when ANY ball hits the ground or sides. Make the balls bump into each other, and have different sizes.
Add some obstacles that the player has to avoid, or the score will reset. For example, throw a box at the user, and force the user to avoid it.

