Earlier this week I went on Seb Lee’s Creative JS course (which I would highly recommend). The course covered the bascis and early advanced aspects of the HTML5 Canvas element and the JS to accompany it.
During the course we started to build the classics Asteroids game in JS. Since then I have finalised my version (completed with a couple of easter eggs – see if you can discover them).
Check out the iframe below (although some OSs wont accept the key depressions via iframe) or click here to be taken directly to my full screen version the JavaScaript Canvas Asteroids.
I would put together a tutorial for this but instead feel that anyone actually interested in learning this kind of stuff would be stupid not to attend one of Seb Lees workshop days.