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.

The 20 Line Challenge / [DBC] Territory

Author
Message
TheComet
15
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 14th Mar 2009 13:12
I came up with this game where you have to pull at a line and drag it to your side, and the one that drags the fastest wins. Try it out, I don't know if it runs in DBP. 9 lines of code...

Controls:

Player 1 : Arrow keys to move, Controlkey to grab
Player 2 : W,A,S,D to move, Spacekey to grav

code:



TheComet

Peachy, and the Chaos of the Gems

TheComet
15
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 19th Mar 2009 18:17
Hmmm, 40 views and no feedback?

Peachy, and the Chaos of the Gems

Sixty Squares
16
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 20th Mar 2009 21:48 Edited at: 21st Mar 2009 21:33
Well, I tried it in DBP but it wouldn't compile . I found some "!" in the variable names and took them out, but then when I played it neither box would grab the line. Then, when it said "Time's Up" the screen wouldn't change. It probably works in DBC though lol. Here's the DBP code I used anyway:

[EDIT: Removed, see my next post for the version I got to work]

Just in case someone can't compile the other one.

<---Spell casting battle game!
TheComet
15
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 21st Mar 2009 17:41
The "!" means NOT.

This code
checks if a isn't 3. if it isn't 3, then it does something.

If you replace them with <> it should work.

Thanks for the feedback though!

TheComet

Peachy, and the Chaos of the Gems

Sixty Squares
16
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 21st Mar 2009 21:32
OH! I didn't catch that. For some reason it didn't compile in DBP... Anyway it works now! Pretty cool game

DBP Version:


<---Spell casting battle game!
DarkJesse413
13
Years of Service
User Offline
Joined: 3rd Apr 2009
Location: in your backyard
Posted: 3rd Apr 2009 20:05
hmm how do i play the game?
im a noob at this

Login to post a reply

Server time is: 2022-12-08 06:22:26
Your offset time is: 2022-12-08 06:22:26