A Clone of Space invaders using SDL.
The game is simple: Aliens are invading earth. You are the only one capable of stopping them. Shoot all aliens before they reach the bottom of the screen.
License: free
Requirements:
- SDL
- SDL_Image
- SDL_mixer (for sound)
| Sound: | Play in X: | Play in Console: | Multiplayer: | Network Play: | 3D Acceleration: | Source Available: |
|---|---|---|---|---|---|---|
| yes | yes | no | no | no | no | yes |
Submitted by nath on 2002-05-30.

Oh well, at least the guy is trying... I give it * * * * * (5) stars anyway.
#define TICKS 30
Uint32 next_time;
And add this to your code:
Uint32 time_left()
{
Uint32 now;
now = SDL_GetTicks();
if (next_time <= now)
return 0;
else
return next_time -now;
}
void
update_timer()
{
next_time = SDL_GetTicks() + TICKS;
SDL_Delay(time_left());
next_time += TICKS;
}
And call the function update_timer(); from your main game loop. I think this will help with the game being to fast on some systems.
Well, this clone doesn't add really anything to the original, it is actually even worse than the original. The speed doesn't seem very balanced, enemies moves faster than your shoots fly and things like that. The bunkers doesn't get incrementaly destroyed, but instead simply disapear after a few hits without any damage indication, the original was *much* better at this point. The enemies also don't seem to use also the available screen space to manoever, but only a small part of the screen, original was again better if I remember correctly. Gfx aren't spectacular either. And the mouse controll makes the game far to easy, since you can move at unlimited speed around the screen with an absolute-positioning device. It also seems to be possible to 'hide' at the right screen border, seems to be a bug. I tested the version 0.7.4.
If you want to play Space Invaders I strongly recomment one of the originals, instead of this one.
And regarding the mouse - the game is just a bit of fun. The extra speed probably makes it more fun for people new to the game.
Bunkers (blockades) change gradually before they disapear.
The fighter (your ship) can move with shift+arrows faster.
The fighter explodes when its hit.
I think these will be included in the next release.
Regards
Daniel