Asteroids: first flying rocks

March 24, 2010

As I mentioned in my previous post, I decided to get a rather simple game done instead of dreaming of bigger ones. So far I think I was quite successful. I tried to reuse most of the code I already had and it was very helpful to modify my existing code towards a very clear playable game.

The game itself is already playable and I have a basic menu and basic gamelogic (you have 3 lives and once you die you’ll see the game over screen) and I can load and save levels. At first I thought of using 3d models by using the cal3d library which I already use in my research project, however I reminded myself of keeping things simple and created some nice sprites. I added PNG support by using libpng to be able to load sprites with transparency and also added simple animation of sprites. In the background the stars are moving sideways to give a slight 3d effect (looks very nice!).

What is still missing is sound and I need a few more animations (ship exploding, asteroid exploding). Additionally I do not yet count any points and some non-asteroid (maybe some powerups) would be nice to add more fun to the game.

Enough prose – here are some screenshots:

the menu

asteroids in action

game over screen

2 Comments
March 28, 2010 @ 1:02 pm

Hi,

congratulations for finishing something, I know how hard it is! It looks really nice, I especially like the clear and clean look. Is there any chance I get to play a demo? 😉

Cheers,
Michi

March 28, 2010 @ 5:31 pm

I would love to upload a short “tech-preview” however I just recently lost a 4 hour battle to compile it under windows with VS2008. But I won’t give up so far and I’ll upload something once I get it running.