Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / 2 Player ghost game

Author
Message
vid1987
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Oklahoma
Posted: 10th Mar 2005 02:39
Hello i got bored and whipped up a little game this morning straight from my imagination its a 2 player game and its very simple and yet quite fun (well at least i think it is) i just wanted to show everybody well here's the point to it... there are 2 cubes.. the control for player 1 is a=left d=right w=up s=down f=power up g=attack (in order to attack your object has to be touching player 2's object) player 2 controls leftkey=left rightkey=right upkey=up downkey=down l=power up p=attack (attack conditions same as player 1's) the point is you have to attack the other object until they have no HP remaining but watch out.. every time you attack you will lose some GP. if you lose all your GP your attack will decrease your own health so when you run out of GP you can leave your opponent and power up to get more GP. alright here is the code... tell me what you think

peace

David
vid1987
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Oklahoma
Posted: 10th Mar 2005 02:53
There is only 1 thing i need to fix.. i need to somehow hake it to where the objects cant wander off the screen can anybody help me there??
peace

David
TEH_CODERER
22
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 10th Mar 2005 04:17
A little boring but this should work.


vid1987
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Oklahoma
Posted: 10th Mar 2005 05:56
Thx for fixin it now its even funner! i dont know about you but me and my sister had a blast playing this game its a lot funner when you have someone to play with.. and i only built it within 2 hours!! i should add more to it
peace

David
vid1987
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Oklahoma
Posted: 10th Mar 2005 06:07
Hay does anybody know how to make a computer controlled box that fights back on this game i figured it might be pretty hard because i'm no good with AI and i'm still working on randomizing things so can someone help plz

David
vid1987
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Oklahoma
Posted: 10th Mar 2005 10:20
Any ideas for this game anybody?? any potential whatsoever? someone respond plz

David
vid1987
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Oklahoma
Posted: 10th Mar 2005 10:55
anybody?? plz

David
vid1987
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Oklahoma
Posted: 10th Mar 2005 11:22
I have upgraded the game... now the maximum GP is 500 and the minimum is 0 now it should be more fun
try it out
peace

David
vid1987
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Oklahoma
Posted: 10th Mar 2005 11:23
Whoops here's the code!

peace

David
TEH_CODERER
22
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 11th Mar 2005 02:51

AI wouldn't be too hard. I might have a go at it for you later.

vid1987
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Oklahoma
Posted: 14th Mar 2005 06:55
Are you gonna add AI? will you plz??

David
TEH_CODERER
22
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 16th Mar 2005 23:04
Sorry. I haven't checked here for a while.
If I remeber I'll have a go when I get home.

vid1987
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Oklahoma
Posted: 17th Mar 2005 01:26
I also want to make it where you cant just hold the keys down to attack i want to make it where you have to press the key each time you want to attack how would i do that?
thx

David
TEH_CODERER
22
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 18th Mar 2005 02:29


vid1987
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Oklahoma
Posted: 20th Mar 2005 01:34
I dont see any difference other than when a players wins the screen doesnt clear what did you add??
plz respond

David
vid1987
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Oklahoma
Posted: 23rd Mar 2005 07:59
Anybody wanna help add AI to make the com move around on its own anybody plz

David
vid1987
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Oklahoma
Posted: 28th Mar 2005 01:40
Can someone plz throw me a bone here?

David
Digital Dragon
21
Years of Service
User Offline
Joined: 17th Dec 2004
Location: ...
Posted: 29th Mar 2005 18:19
*throws a bone * lol, sorry i just thought of while reading the post, But ask me on msn for stuff an i might be able to help

vid1987
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Oklahoma
Posted: 2nd Apr 2005 11:07
Upgrade!!

Now its funner try it out
peace

David

Login to post a reply

Server time is: 2026-06-11 19:30:16
Your offset time is: 2026-06-11 19:30:16