Asteroids - HTML 5 Canvas and JavaScript demo

Control Keys:

Left and Right Arrows: Rotate

Up Arrow: Thrust

Down Arrow or SHIFT: Shield (will recharge...)

SPACE: Fire main weapon

Z: Fire bomb weapon (area effect damage, uses shield energy)

NOTE: collect the glowing power-ups to enhance your ship!

Other Keys:

L: Skip level (later levels more difficult but score higher)

R: Switch between Modern and Retro graphics

A: Add asteroid - go crazy!

E: Add enemy ship - they will hurt you!

Escape: Pause the game

Use Chrome or FireFox or Safari or Opera browser to play!

Game demo by Kevin Roast - written to learn the new HTML 5 Canvas API while reading about the concepts in the the first few chapters of this book on game maths.
You can follow me on Twitter or just Tweet This! Last updated: 6/9/2010