Here's a cute game I cooked up based on kevin Linsey's SVG-based asteroids game *roids.

The script lives here

The source for the script is here

There's no sound, it's 100% XML, and it's written in perl. Hopefully soon, I'm going to figure out how to have head-to-head games via a perl daemon on the backend.

Note that I did not write _any_ of the game dynamics. I can only take credit for the dynamic generation of the SVG

I realize that the current implementation is fairly weak perl-wise, but it is the best use of SVG.pm that I've come up with so far. Next step, cgi-generated javascripts for constantly changing parameters.

Have fun with it. Feel free to criticize.

Now in 2-player mode

Cooperative-mode 2-player game.
P1: left,right,down,up arrows for motion and space bar for shooting and key "m" for "stop".
p2:
keys a,s,w,d for motion. f for fire, q for stop.

Rules are simple: 3 lives each, both players lose if either players loses all 3 lives.

Update

I've put a gallery here with more perl-driven SVG content

Ronan
SVG.pm author
SVG and perl evangelist

  • Comment on perlyroids: an interactive SVG asteroids game driven by a perl engine.

Replies are listed 'Best First'.
Re: perlyroids: an interactive SVG asteroids game driven by a perl engine.
by belg4mit (Prior) on Nov 17, 2001 at 09:09 UTC