Space Invaders remake
RetroVaders is a freeware "tribute" to Space Invaders, released for Linux, Windows and MacOS X.
In case anyone hasn't ever played space invaders before (anyone?) the game is played as follows: shoot the aliens before they reach the bottom of the screen. Shoot bonus UFOs for extra points, hide behind or shoot through the bunkers, avoid getting shot.
License: free
Requirements: Requires libsdtc++.so.6 or higher and a hardware accelerated X server.
| Sound: | Play in X: | Play in Console: | Multiplayer: | Network Play: | 3D Acceleration: | Source Available: |
|---|---|---|---|---|---|---|
| yes | yes | no | no | no | no | yes |
Submitted by dano on 2007-10-12.

I had to turn compiz off to play your game because otherwise the screen flickers. Are you using SDL to draw to the screen because there are supposed to be SDL workarounds to that problem.
I like the way you can change the graphics of the invaders, the backdrop and whether you use colour or mono.
As the author of the other Space Invaders clone on the front page at the moment I thought I would ask you some questions. How did you approach the problem of the shields being shot apart? How roughly do you make the alien hear beat noise?
Congrats on lowing the filesize! If you haven't already looked, consider UPX-packing the executable (providing UPX is on the compiling host - that's what ./configure is fore)
Dan
I'm using OpenGL for the graphics, Compiz can be a bit finicky with OpenGL games I'm afraid.
The shields are built up from an array of 4x6 pixel elements. This probably isn't how the arcade game did it, but gives a good balance between number of elements and how long it takes to shoot through the shield.
Now for the "heart beat". The sounds themselves are just sound samples, but I'm assuming you mean the increasing speed?
Well, there are four different heartbeat sounds (high to low) which play in order. The samples play at the same time as the invader animation changes so we use the same counter for that.
The game runs at 60fps, the invader animation counter starts at every 50 frames and reduces by 1 every time an invader is destroyed (so destroy 10 invaders and the animation changes every 40 frames). This means that by the time all the invaders have been destroyed the animation is running at the maximum speed and so is the heartbeat sound.
If you want some more detail on this then feel free to drop me a line.
Cheers
Dan