Asteroids - HTML5 Canvas and JavaScript game

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.
Follow me on Twitter - Last updated: 18/6/2011