Chaos Project

Game Development => Projects => Topic started by: tSwitch on December 18, 2008, 10:03:04 pm

Title: For Great Justice!
Post by: tSwitch on December 18, 2008, 10:03:04 pm
A very simple game made in C++.
runs in the DOS window.For Great Justice!

Controls:
W - move up
A - move left
S - move down
D - move right
I - shoot up
J - shoot left
K - shoot down
L - shoot right
Q - Quit Game

when you are hit, you lose points.  when your score is 0 you lose the game.
you get 250 points per successful hit with your projectile.
kill all the enemies to win the game.

exe download: HERE! (http://www.sendspace.com/file/rm05wa)

And here is the code:
GameData.h (http://www.freewebs.com/focusprod/GameData.txt)
GameData.cpp (http://www.freewebs.com/focusprod/GameDataCPP.txt)
main.cpp (http://www.freewebs.com/focusprod/main.txt)

If you know or are learning C++ and want to use my code as a reference, by all means do.  However do NOT under ANY circumstances, steal my code for your own use.  Especially for school projects.

Also, if you can find any bugs, leaks, or inefficiencies, by all means let me know, I'm still learning too.
Title: Re: For Great Justice!
Post by: Valcos on December 18, 2008, 10:17:28 pm
Lol the ship thingy doesnt flow well enough xD... Its pretty cool tho
Title: Re: For Great Justice!
Post by: tSwitch on December 18, 2008, 10:20:58 pm
what?

edit: as I said in chat, your keyboard's repeat delay is what affects the character's movement.  I am using rather basic keyboard input, so it is affected by how quickly the key-holding is captured by your OS.
Title: Re: For Great Justice!
Post by: Fantasist on December 19, 2008, 07:08:26 am
HECK YEAH! Namk, you're building quite an admirer out of me. *powers up*

I'm learning too and it'll be a great chance to learn, not to mention, fun. I'll be back with comments :)
Title: Re: For Great Justice!
Post by: tSwitch on December 19, 2008, 08:38:27 am
thanks, I'm glad you like it :)

I'm hoping to figure out how to do graphics soon, so that I could make a real game in C++