Thomas Fuchs
Hi, I'm Thomas Fuchs. I'm the author of the script.aculo.us user interface JavaScript library, a member of the Prototype core team and a Ruby on Rails core alumnus.
You're using my JavaScript work every day, even if you're not aware of it!
   Need corporate training or want me to speak at your conference? Contact me!

Canvas Invaders

August 24th, 2005

The up-and-coming star of Rich Internet Applications might just be the canvas element—I’ve written on this before.

But is it capable enough for those rich controls and data views? It certainly seems so, as demonstrated in this little demo:

http://mir.aculo.us/stuff/canvas-invaders/index.html

Use cursor left/right to control your ship and press space to fire!

The demo also draws upon the latest script.aculo.us SVN trunk version for element building, event handling and the fade-in effect.

The background is a rotating “star field” showing how to use a simple 3d projection with the canvas element (hopefully there will be support for a 3d canvas element in the future, but specs on this remain to be written).

Note: Safari only this time, Firefox Deer Park seems to have some bugs left preventing it from working properly. Also note that the demo resizes your browser window.