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 / DBP - 2 player football

Author
Message
Kohaku
20
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 15th Jul 2007 14:53
This is a small, uber-simple 2 player game of football. The aim is of course to get the ball into the oppositions goal.

WASD moves player 1, arrow keys move player 2.

Simple, yet fun!




You are not alone.
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 16th Jul 2007 02:45
Quote: "The aim is of course to get the ball into the oppositions goal."


Really? lol that was pretty fun

HeavyAmp
18
Years of Service
User Offline
Joined: 25th Oct 2006
Location: Castle in the Sky!
Posted: 17th Jul 2007 05:32
I enjoyed that. Well Done making this

In theory, there is no difference between theory and practice. But, in practice, there is.
Turoid
21
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 17th Jul 2007 18:04
Cool game. Maybe you can try to add a very basic cpu controlled player, would be awesome

I am awesome and always right.
Kohaku
20
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 22nd Jul 2007 19:00
Glad you all like it.

Quote: "Maybe you can try to add a very basic cpu controlled player"


I think it's way more fun to play this with someone else personally, but I'm working on other projects now anyway. This really was just made for some quick fun.


You are not alone.
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 22nd Jul 2007 19:28 Edited at: 22nd Jul 2007 19:48
I've edited the code for DBC users, just testing it now

[EDIT]
Can't get it to detect collisions , this is as far as I could get so if someone who knows 3D wants to take it up here's the code as far as I could translate it.



I am king of the noobs!
Mr Kohlenstoff
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Germany
Posted: 31st Jul 2007 19:19
I have just seen this thread and written a small but very hard-to-beat AI for it.



Visit the DBPro - Speed up your game-Thread. http://forum.thegamecreators.com/?m=forum_view&t=88661&b=1
Kohaku
20
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 2nd Aug 2007 18:36
Hullo.

Nice try getting it to work in DBC in Obese! I'd suggest using a distance routine instead of collision checks as that'd be more reliable.

Mr Kohlenstoff, that AI is awesome! Nicely done.


You are not alone.
Bat Caves
17
Years of Service
User Offline
Joined: 11th Aug 2007
Location: The_Caves
Posted: 29th Aug 2007 14:07
hi
oh very good very very good
code football game! this is good idea
thank U Kohaku and {EDITCODE} OBese87 ,Mr Kohlenstoff
the game is good

Login to post a reply

Server time is: 2024-11-22 18:39:04
Your offset time is: 2024-11-22 18:39:04