Thomas Fuchs
Hi, I'm Thomas Fuchs. I'm the author of Zepto.js, of script.aculo.us, and I'm a Ruby on Rails core alumnus. With Amy Hoy I'm building cheerful software, like Freckle Time Tracking and Every Time Zone and write books like Retinafy.me.
   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.