Tuesday, December 8, 2009

SVG Animation in Action: Marek Raida's "SVG Cavern Fighter" Game

Marek Raida has come up with another beautiful demo that shows off the power of SVG. This one's called SVG Cavern Fighter, and it's a classic side-scrolling shoot-em-up type game, with enemies and items that pulse and wiggle. The game logic is written in Javascript, and the enemy/item animations are all done with SMIL.

It looks really great (and it's quite fun to play) in mozilla-central nightly builds! (In earlier Firefox versions, with no SMIL support, the game logic still mostly works, but the enemies and items won't animate.)

Marek's been iterating on this game pretty rapidly, adding new features and fixing bugs every few days. His latest version will always be linked from his blog. Give it a try, and send him any feedback that you might have!

4 comments:

Neil Rashbrook said...

I seem to run out of fuel very quickly, making scoring much more than 1000 points rather tricky.

Unknown said...

Gather fuel bonuses with highest priority, no problem reaching more than 3000 points for me...

Anonymous said...

Works like a charm in Opera 10.10. But it seems a good idea to use preventDefault method in key events, because a key press could be associated to a behavior in the browser (for me Space gets me to the next page).

Anonymous said...

Wow, cool game
Havent seen anything like this cool in a browser since..DeeHTML:
http://www.codeproject.com/KB/scripting/deehtml.aspx