Your goal is to survive Arrow keys or arrows: move Lightning: death Potion: wide paddle power up (5 seconds) Diamond: Invincibility from Lightning (5 seconds) tips: 1. Try to stay towards center 2. Lightning appears more often then powerups, so also be ready to move 3. Don't risk it if powerup far from ball about to make you lose, its not worth it Special thing if you survive for 40 seconds (pressing stop sign to get 40 seconds won't work haha)
Some of collision code by CS exploration, though slightly modified by me