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.

DarkBASIC Discussion / The DB Classic Programming Challenge Thread

Author
Message
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 9th Aug 2009 21:13
TheComet:

Methinks you didn't write that in just 14 hours...

Submitting something you have already written isn't really in the spirit of the challenges!

TDK

TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 9th Aug 2009 21:26
Quote: "Submitting something you have already written isn't really in the spirit of the challenges!"


Sorry... Doesn't re-writing count? I re-wrote the whole thing so it would be media-less and changed some things. Was actually quite hard, and I have been working on it 5 hours straight... The thing is that I won't have any time at all next week, and I had to get something in. This is the only entry I can possibly make in the limited time I have. Will you let it count?


TheComet


Make the path of your enemies easier with Waypoint Pro!
Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 9th Aug 2009 21:40
Lol, ONLY if you re wrote it, Conker!

Yeah, i dont quite get the "survival" part, what exactly do you mean?

(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )
jason p sage
16
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 9th Aug 2009 22:18
Might I suggest a procedurally created sky/terrain challenge?

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size
t10dimensional
15
Years of Service
User Offline
Joined: 22nd Mar 2009
Location: Code Cave, USA
Posted: 9th Aug 2009 23:13 Edited at: 10th Aug 2009 22:32
I was thinking of like a rising lava and you have to climb up never end obstcles kind of game and it does'nt have to be a full game it can be a minigame.
But if you would like me to narow it down I will.

How about this idea:

Still being a Survival game it must be never ending.
Please let me know what you think.

@Comet
I've seen that game on the 20 line board.I know you worked hard but
thats not really a survival I was looking for.Im looking for somthing that starts easy and gets harder and harder until you fail.

it could be:
-somthing that ask you quetions that get harder as you go
-rising lava like I said
-falling objects
-zombie raids

or even a endurance game


So it's a
type:
~~~GO TILL YOU FAIL CHALLENGE~~~

deadline: August 16, Sunday 24:00

Rules:Must be a rising in difficulty game.

Edit:

If you guys want a diffrent challenge I'll hand it over to Latch.


That1Smart Guy
15
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 10th Aug 2009 00:33
I aree with TDK, full game challenges are to big of projects for a 2 week challenge

that and survival/defence game is a bit general

also could we reset the deadline to one week? that worked quite well last time

Libervurto
17
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 10th Aug 2009 03:22
That is one week Smartguy
I agree that the challenge is still a bit vague, "anything that increases in difficulty" pretty much covers every game ever made!
I'll make a start and hope I'm within the parameters.
I have a new strategy of making a crappy entry first just to get one in on time haha

TGC Forum - converting error messages into sarcasm since 2002.
t10dimensional
15
Years of Service
User Offline
Joined: 22nd Mar 2009
Location: Code Cave, USA
Posted: 10th Aug 2009 04:49 Edited at: 10th Aug 2009 05:22
I seem to be getting alot of complants so Latch I think you should take over from here if I can't do anything to fix this mess.You can make any changes to the challenge and you can judge the winner.School is starting back up and I might not be on as much as I used to.

Edit

How about this:

You don't want a game,you want it narowed down how about seeing who can make the best landscape generater?

Just a program(2d or 3d would work)that randomly make a landscape.
it could make mountains,trees,sky or whatever.

What do ya think?


Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 10th Aug 2009 05:22
Nah, ive already begun work on my entry! Besides. whats wrong with this one anyway?

(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )
t10dimensional
15
Years of Service
User Offline
Joined: 22nd Mar 2009
Location: Code Cave, USA
Posted: 10th Aug 2009 05:24
Wow somone who did'nt complain!!! ok we will stick with the already metioned challenge.thanks


Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 10th Aug 2009 05:32
yup. are we allowed to use media?(comet did...?)

(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )
t10dimensional
15
Years of Service
User Offline
Joined: 22nd Mar 2009
Location: Code Cave, USA
Posted: 10th Aug 2009 05:42 Edited at: 10th Aug 2009 05:44
No outside media as allways.But anything inside the code,yes.


That1Smart Guy
15
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 10th Aug 2009 05:56
no outside media is allowed in your entry, but you can include media just to show off, not as an entry

so in comets case we would judge based on the media-less version

Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 10th Aug 2009 16:52 Edited at: 10th Aug 2009 16:55
oh, gotcha.

ok, i've only been coding,er............15 mins today or so but i just wanna show my start, ive got a pretty cool menu, and intro. My game is gonna involve u rolling a ball around dodgin' cubes, and while 3d, it will only allow u to move on the x axis(may add a jump for y-axis movement) and will contain u by three walls, so it looks like....


I may make it so you tilt the walls to make the ball roll, dunno.


so, heres my code so far(TDK-UR PROGRAM RULES!!!NO MORE MESSY CODE!!!!HAHAHAHA!!!)......




(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )
BN2 Productions
20
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 10th Aug 2009 20:44
Quote: "TDK-UR PROGRAM RULES!!!NO MORE MESSY CODE!!!!HAHAHAHA!!"


It is probably not a good idea to rely on his program but to learn to do it yourself...

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 10th Aug 2009 21:25
Yeah.

(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )
t10dimensional
15
Years of Service
User Offline
Joined: 22nd Mar 2009
Location: Code Cave, USA
Posted: 10th Aug 2009 22:30
Nice idea DD.

Allright so far we have 3 people entering:

-Dark Dragon

-OBese87

-TheComet

I'm going to be giving extra "judgeing points" to people that really hit the survival feel in their game.

@TDK
Why don't you put a Score board on the first post of how many wins each person has.I think it would be a good idea to get people to particapate in these challenges more.


Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 10th Aug 2009 22:33 Edited at: 10th Aug 2009 23:07
Thanks razerx!


k, so heres an update... got some player movement done and some physics!




EDIT:

New code! CHECK IT OUT!



(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )
Libervurto
17
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 11th Aug 2009 00:27 Edited at: 11th Aug 2009 00:28
Quote: "Why don't you put a Score board on the first post of how many wins each person has.I think it would be a good idea to get people to particapate in these challenges more."

Phaelax has a really good website for the challenges, can't remember the link though. Maybe TDK could put it in the first post

[edit]
Ah, he already has

TGC Forum - converting error messages into sarcasm since 2002.
That1Smart Guy
15
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 11th Aug 2009 01:33
did we ever decide o a max size for data encoded images?

I remember a discussion about it a little while back, but I dont recall a final verdict

Libervurto
17
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 11th Aug 2009 01:36
i think it was 64x64

TGC Forum - converting error messages into sarcasm since 2002.
That1Smart Guy
15
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 11th Aug 2009 01:52 Edited at: 11th Aug 2009 01:58
really?

it seems like 16*16, but like I said I vaguely remember


edit:

just now saw urs DD, cool menu

only prob is that u didnt include stops for the ends, so if you hit the arrows past the ends the variable keeps being inc'ed/dec'ed

another question:

is sparkys dll allowed in challenges?

Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 11th Aug 2009 02:23
No sparky's isn't allowed. The entry must not contain external media, external data files, or external exectuables/libraries. The code is supposed to be able to be copied from the forums and run directly as it's own program. If the external data is generated by the program, for example, an address book data base where you can add and remove entries that are stored in a file the program generates, or maybe a map maker, or a paint program that saves files, that should be fine. The idea is that the program is it's own thing. It builds whatever it needs by itself using the skills of the programmer and DBC.


Quote: "Must be a rising in difficulty game"

This is a bit generic. How would one judge a math text program against a 3d helicopter simulation keeping the enemy from advancing across the front line?

Enjoy your day.
That1Smart Guy
15
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 11th Aug 2009 02:42
based on their awesomeness, duhhhhhhhh!!

and I wasnt talking ecternally saved data, I meant usin data statements, we had a discussion on whether encoding a small image into data statements was legal and we agreed it was up to an image size

Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 11th Aug 2009 02:53 Edited at: 11th Aug 2009 02:54
64 by 64!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


dunno.

..........

Lol, Yeah, i'm just about done!!! 4 more things to add.

any way, check it out, check it out! its great, i think.

==First offical Entry For DD!==

Program Namearksurvivor (or "Tilt"?)

Entrant: DarkDragon





(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )
That1Smart Guy
15
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 11th Aug 2009 03:16
cool DD

a few pointers tho:

firstly, wen you level out the "ground" on urs, the ball instantly stops, it doesnt do that in real life, friction should gradually slow it util it hits 0 X motion

second, ur wasting a TON of space in that Cubes# array, you dont need 1000 dimmensions, what you should do is reuse the same dimmensions over, rather than saying the first cube occupies sapce 1, the second 2, etc; you should empty eac space when the corresponding cube falls below ground

third, you dont need to instantiate (big word for define a starting value for) a variable to be 0, all variables are automatically defaulted to 0, so lines 32,33, and 36 are just a waste of processor

also about number 2, you may be doing this, I havent actually read thru your code, I just saw the dimming of the array

Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 11th Aug 2009 03:55
Quote: "also about number 2, you may be doing this, I havent actually read thru your code, I just saw the dimming of the array"


I am, but ur right tho - i am using tons of uneeded space....

Quote: "firstly, wen you level out the "ground" on urs, the ball instantly stops, it doesnt do that in real life, friction should gradually slow it util it hits 0 X motion"


kk, will fix.

Quote: "third, you dont need to instantiate (big word for define a starting value for) a variable to be 0, all variables are automatically defaulted to 0, so lines 32,33, and 36 are just a waste of processor"


They are......another note taken .......

Thanks Smart Guy! Will make the appropriate adjustments!

(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )
That1Smart Guy
15
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 11th Aug 2009 04:13
glad to help!

Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 11th Aug 2009 04:35
Okay! Done(with the gameplay, tho i may add powerups!)
Thx Smart Guy for the suggestions! The ball rolling to a stop looks WAY better than just stoping...

Next up will be the options menu(might not - not many options to choose from lol! ) and the high score "keeper". Tell what score ya get!




(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )
That1Smart Guy
15
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 11th Aug 2009 04:46
MUCHO BETTER, MUCHO MUCHO BETTER!!!!

very nice DD, thats pretty cool (and chaotic)

except getting hit seems to have no effect

Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 11th Aug 2009 05:16
Quote: "except getting hit seems to have no effect"

what ever do you mean?

(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )
That1Smart Guy
15
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 11th Aug 2009 06:12
the cube contacting the sphere does nothing...

t10dimensional
15
Years of Service
User Offline
Joined: 22nd Mar 2009
Location: Code Cave, USA
Posted: 11th Aug 2009 06:32 Edited at: 11th Aug 2009 06:45
NICE!

Thats exactly the type of game I was looking for.It has the survival feel.

Their might be somthing wrong with your collision I started sinking through the floor.And if you can start the game again then you start where you left off + you can't get hit.

214(score)

Other then that a cool explosion(or somthing)when you get hit and some cool options should finish it up.

@smartguy
Theirs nothing wrong with declareing varibles=0.In some laguages it's requierd(C) and it's useful if you want to set all varibles back to 0.

@everyone
I need more entrys.I know I did'nt explain the challenge well
But any game that gives a survival kind of feel will do.


Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 11th Aug 2009 15:49 Edited at: 11th Aug 2009 15:50
Quote: "Their might be somthing wrong with your collision I started sinking through the floor."


Thats When you "Die"........

yeah, i'll look into the collision thing, cant be too much of a problem!
Thankx!

Quote: "214(score)"


Crap.....bested at my own game! I got 202......

(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )
That1Smart Guy
15
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 11th Aug 2009 17:58
i got to like 350 and stopped cuz I was bored with it

Quote: "In some laguages it's requierd(C)"

I know, I use C++, but this is DBC, instantiating a variable to 0 serves no purpose as far as I can see

TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 11th Aug 2009 20:30
Quote: "did we ever decide o a max size for data encoded images?"


Quote: "it seems like 16*16, but like I said I vaguely remember"


When was this decided???

Surely no external media is no external media! Period.

If you can take an image (however small) and turn it into data statements then you are still using external media. You might as well include the image!

With that view, any image could be chopped into a number of 16x16 pixel squares...

To be honest, if it is a 16x16 pixel image we are talking about, then it shouldn't take much effort to create it procedurally.

TDK

Sinani201
17
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 11th Aug 2009 20:46 Edited at: 11th Aug 2009 21:29
Woah. TDK is back? I must have missed a lot while I was gone.

Since I have a Mac now, I might not be able to do much programming in DB anymore. I do, however, have a boot camp running Windows 7, but I don't like to boot in there very often.

Also, the criteria of the current challenge fits a game that I wanted to try to make for a long time. Maybe I can try to make a part of it just for this challenge.

Quote: "Theirs nothing wrong with declareing varibles=0.In some laguages it's requierd(C) and it's useful if you want to set all varibles back to 0."

In DBC, all variables are automatically set to 0. So if you had a blank program, and put in "print a", it would print 0. Declaring a variable as zero is sort of pointless, unless you declared it something else in another part of the code.

~Sinani201


"I reveal my trap card, GEORGE DUBYA BUSH!
America loses 2000 Life Points! America loses." -Deucalion2
That1Smart Guy
15
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 11th Aug 2009 21:41
thats my point sinani


and yes TDK there was a discussion on data statement images a page or 2 back

I think the final ruling actually had something to do with you cant have complex images created outside of DBC, meaning anything simple, as defined by the challenge setter, and that could have been created in DBC is still legal

TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 11th Aug 2009 21:48
Thanks a lot razerx for including me! I have just finished the first 2 days of my full-time job, and god it steals all of your energy at the end of the day... I have to get up at 5:00 every morning and I end at 6:00 and get home at 8:30 every day. It is very tiring...

TheComet


Make the path of your enemies easier with Waypoint Pro!
Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 11th Aug 2009 22:49
Quote: "I have to get up at 5:00 every morning and I end at 6:00 and get home at 8:30 every day. It is very tiring..."

Whoa.

(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )
That1Smart Guy
15
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 11th Aug 2009 23:03
I pity you

That1Smart Guy
15
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 12th Aug 2009 00:47
sorry for dp

heres a preview of my entry:



click to fire

t10dimensional
15
Years of Service
User Offline
Joined: 22nd Mar 2009
Location: Code Cave, USA
Posted: 12th Aug 2009 04:07 Edited at: 12th Aug 2009 04:08
I'm just saying it's a good habit to declare all your varibles if your moveing into C.

@Smartguy
I'm glad your going to get a entry in.

@Everyone

So we have:

-TheComet

-Dark Dragon

-That1Smart Guy

-OBese87 ??

Anyone else?


jason p sage
16
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 12th Aug 2009 04:15
Quote: "I'm just saying it's a good habit to declare all your varibles if your moveing into C."


It is a good idea. I don't think there is a choice in the matter either. Everything needs to be explicity declared.

I will add that "Where you declare them" can make a "problem solving" session go easier if you are consistant. I try to declare them at the top of my functions so I know where to look. Just a thought... retreating to my coding cave....

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size
That1Smart Guy
15
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 12th Aug 2009 05:03
ok heres the next version, its actually a full game now, although it doesnt look too stellar



Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 12th Aug 2009 05:05
Quote: "retreating to my coding cave...."

lol.

Nice Smart guy! Gotta love a Top down shooter!

The thing i really think you should add is a fast(but smooth), gradual rotation of the "gun", that make it even better
Good work , tho!

(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )
t10dimensional
15
Years of Service
User Offline
Joined: 22nd Mar 2009
Location: Code Cave, USA
Posted: 12th Aug 2009 05:11
Queit simple But it's fun.Just needs somthing to mix it up a bit and better graphics then it will be finished.

A Knight walks up to you and says,"Tell me somthing,if it is truth I'll kill you with my sword but if it is a lie I'll do it with magic."
What do you say to live?-The Elder Scrolls III
That1Smart Guy
15
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 12th Aug 2009 05:30
right, when does this challenge end then?

BN2 Productions
20
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 12th Aug 2009 07:58
Quote: "A Knight walks up to you and says,"Tell me somthing,if it is truth I'll kill you with my sword but if it is a lie I'll do it with magic."
What do you say to live?-The Elder Scrolls III"


I would probably say something nonsensical like "Cat" or "Run". They are words, and therefore neither true nor false, then when he walks away defeated I would kill him with my sword AND magic and take his money.

[/offtopic]

I may enter this one, if I find time between the 2 games I am working on and Star Wars Galaxies (guess which one has been getting the most attention...)

Have a funny idea too! Just need to develop it a little more.

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Libervurto
17
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 12th Aug 2009 08:29
With regards to data encoded images, I'm already up to 25x25 for my game's main character (Dirk Basic) and that's just the top half of him!
Buuuut, seeing as I don't even have MSPaint to try out on it is taking ages to do. I'm going to have to ditch Dirk for a while.
Are we going to disallow data images completely?

I'm totally stumped for what to do with this challenge.

TGC Forum - converting error messages into sarcasm since 2002.

Login to post a reply

Server time is: 2024-05-03 19:12:29
Your offset time is: 2024-05-03 19:12:29