1 Attachment(s)
C++: Space Invaders [Source]
Here is a same game I made for Uni. I wouldn't say its totally finished but it is good enough to play.
Don't be afraid of getting shot, the player doesn't die but will get injured. I haven't yet done anything that will make you proper dead if you get to damagd though. The player does regenerate if you do get shot. There is also modelling that means depending where you get shot the effect will be diferent ;).
Ow well, Enjoy :D:D.
The Source is in VC++6 ;). The Graphics Engine isn't mine, I am working on my own that will be in VC++.NET and more optimised though ;).
BTW the exe is included incase you don't have a C++ compiler ;).
EDIT: Updated the file.
Re: C++: Space Invaders [Source]
Heh fun little game, cool addon too when you get hit you slow down and cant move for a sec. But yea, runs fast on my computer a little.
Re: C++: Space Invaders [Source]
Hey i have been toying around with your code as a learning tool and it has been great. Right now iam trying to rotate the sprites you have input. How would you go about doing that? Right now i have tried adding in
DDRAW_INIT_STRUCT(ddbltfx);
ddbltfx.dwRotationAngle = angle;
and DDBLT_ROTATIONANGLE to the Blt.
That all does not seem to be working, when i run the code nothing appears. All the sprites do not load but the game is still running,.