Use arrow keys to move
A simple breakout game. Featuring:
I've try not to obfuscate the code and make some comments.
It's still a little buggy on some collitions, but works fine.
- an awesome 4 colors pallete: white, gray, black, red
- 9x5 blocks to break
- aleatory initial ball position's
- game reset on ball lost
- block turns red, when the ball hits them
- Powermode! hold < p > to break blocks without bounce
Update 1.1: bigger blocks matrix and fix one collition bug
Entry and source at http://js1k.com/2010-first/demo/648