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
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 28th Feb 2008 18:23 Edited at: 29th Feb 2008 01:56
I'm extending the challenge to Monday 3rd because people seem to just be getting into this.

...

Dark Dragon
18
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 29th Feb 2008 01:53 Edited at: 29th Feb 2008 03:19
Ok. Thanks link. Didn't see the book!...

Here's my first entry:



AM I UGLY OR WHAT??!!YAHOOOO!!!!
What? It's My Sig!!...
Tone3e
19
Years of Service
User Offline
Joined: 17th Feb 2007
Location: here
Posted: 1st Mar 2008 03:26
Thats petty original DD. Nice job.

[center]
Come see the WIP!center]
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 1st Mar 2008 12:20
@DD
That's cool
I like how they all have different personalities

Dark Dragon
18
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 2nd Mar 2008 04:01 Edited at: 2nd Mar 2008 04:06
Say, Thanks

And Voila! An Update!......





AM I UGLY OR WHAT??!!YAHOOOO!!!!
What? It's My Sig!!...
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 2nd Mar 2008 04:39
@DD
Reminds me of Mr Bear and Nutt
kind of made it a bit buggy though

Dark Dragon
18
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 2nd Mar 2008 05:07
Quote: "Reminds me of Mr Bear and Nutt "

Really?
I didn't Know it was that good.

AM I UGLY OR WHAT??!!YAHOOOO!!!!
What? It's My Sig!!...
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 3rd Mar 2008 02:02
notice how he removed the last line of my comment

Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 4th Mar 2008 20:08
Isn't this challenge over?

At any rate, DD beat me to the character interaction part! However, I thought I'd use my own advice when TDK asked about the lowest point/path. Here's the story of the demo:

Blue just wants to take a walk and map out the lowest points in it's very bumpy world. However, blue's cousin red always wants to play and wants to be included in everything blue does so red follows blue around all the time. When blue gets fed up with red, blue decides to try and run away, but blue doesn't have as much stamina as red (that's what happens when you spend too much time programming and eating potatoe chips).



Enjoy your day.
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 4th Mar 2008 22:57
--- Challenge Closed ---

Any entries below this post will not qualify.
I'll come back with the results shortly

Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 4th Mar 2008 23:53 Edited at: 4th Mar 2008 23:54
Tone3e - Good use of gosubs and nice rolling spheres but you didn't seem to get round to programming the AI which is a shame.

Zombie20 - Looks like your flu got the better of you in the end

Link - Your 3D entry was looking promising but was never completed . The top-down shooter was quite fun but really hard! Needed some work to fix a few bugs.

Dark Dragon - I liked the quirky personalities of your green cubes, a good example of how simple it is to give a program character. Although you had almost no indentation, your code was well structured.

Latch - A very well rounded program. I enjoyed watching blue walk calmly while red raced around him. Nice animations too.

TDK - couldn't find your entry but I swear there was one???


And the winner is...


Sinani201
19
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 6th Mar 2008 05:23 Edited at: 12th Apr 2008 02:45
Congratulations! Looking forward to seeing the next challenge!

"If you go too fast, you'll slip and start over, but if you go too slow, someone else will get there before you"-Sinani201
Kirby is in my avatar because he rules. Live with it.
Link102
21
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 6th Mar 2008 18:50 Edited at: 6th Mar 2008 21:12
idea: make a seccond challange topic wich has it's own challanges. We can decide for owr own wich challenge to enter or just enter both.
This, becouse I think there should be more to do. I could just challenge myself to things, but there's no fun in that.

Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 6th Mar 2008 22:24
*** IMPORTANT MESSAGE ***
It's been a while since I closed the challenge and DD is yet to set a
new one, so I nominate Latch to set the next challenge.

TDK
Retired Moderator
23
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 6th Mar 2008 22:54
That's fair enough - the winner gets 24 hours from the announcement of the winner to set the new challenge.

DD hasn't done this so it officially passes to the runner up - who I assume is Latch.

TDK_Man

Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 6th Mar 2008 23:33 Edited at: 6th Mar 2008 23:34
Muzzle Flare Challenge
Ok, I'm gonna bend the rules a bit. For this challenge, you can use external textures and DirectX files if you want. No sound media please. However, since they will be posted here you may want to review the AUP in regards to any copyrighted material. This challenge will be in 3D. You have to come up with the best looking gun firing demo you can. You don't have to worry about collision or if there are bullets hitting something, but you do have to have something that is animated and shooting and the barrel or the muzzle is flashing or flaring sparks or flame.

It can be a gun of any kind - even crazy space guns that are shooting lazer blasts or whatever. It can be a cannon, or rocket launcher; anything that shoots something. Tanks, planes, battleships, they are all fair game. The whole goal is to make it look as good as you can, and the muzzle flare has to be there.

If you think you can pull it off in DBC without external media, you'll get extra points. If you choose to use external objects and textures, make sure they are public domain.

The dealine is Sunday 23rd March midnight GMT

Enjoy your day.
Tone3e
19
Years of Service
User Offline
Joined: 17th Feb 2007
Location: here
Posted: 7th Mar 2008 00:20
So we would post our media along with our entry? Seems simple enough, but those are always the most complicated.

[center]
Come see the WIP!center]
Link102
21
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 7th Mar 2008 00:33 Edited at: 7th Mar 2008 00:33
"No sound media please"

so sound is allowed? becouse I don't think a gun will be realistic without sound

Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 7th Mar 2008 02:03
SOUND MEDIA is NOT allowed. The files are just too big and not necessary for the challenge. Realistic isn't necessarily a factor - looking good is. Also, try and be practical. If you were to use the textures or model in a DBC game, you would't want the model to be 400,000 polygons and the texture 1024x1024 pixels. You want to keep your resources down and produce the best looking effect with that in mind.

Enjoy your day.
Link102
21
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 7th Mar 2008 14:57 Edited at: 7th Mar 2008 14:59
I'll try and model some guns. currently I'm working on a minigun

picture attached

Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 8th Mar 2008 01:57
Ah... working in Blender I see. Starting to look good

Enjoy your day.
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 8th Mar 2008 02:47 Edited at: 8th Mar 2008 02:48
Quote: "Ah... working in Blender I see. Starting to look good"



That looks more like AC3D to me...

[Edit]

Whoops, your right! Sorry

Oooooops!!! I accidentally formated drive c.
Tone3e
19
Years of Service
User Offline
Joined: 17th Feb 2007
Location: here
Posted: 8th Mar 2008 22:18
Well attached is the beginning of my entry. Not too realistic, but it has a muzzle flare and its a start. Hope fully I will be able to finish this one. I borrowed some of the code from the codebase for the muzzle flare and since I haven't any spare gun x models I used the gun code for the monster hunt tutorial. just press space key and watch the flare go.

[center]
Come see the WIP!center]
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 9th Mar 2008 00:40
@Tone3e

Hey, I like it. The flare model is a little odd though I know you said this is just a beginning. I tried simplifying the model a bit, down to just 1 plain instead of 3. Here's a few simple modifications to your source with that in mind. What do you think? The problem with what I added is it looks fine as long as you're directly behind the gun, but if it was sideways, the flare would disappear because it's only 1 plain!



Enjoy your day.
Tone3e
19
Years of Service
User Offline
Joined: 17th Feb 2007
Location: here
Posted: 9th Mar 2008 02:22 Edited at: 9th Mar 2008 03:52
Yeah I like the new look, the ghost ibject makes it look better as well as the zrotation. Its just that I planned on adding a side view if you pressed a key so Maybe I will change that. Thanks a lot for your help. I was trying to figure out a way to make it seem more realistic and that helped out a lot, but I think I can still improve on it some more.

edit: seeing on how much better it looks your way I am going to keep it like that. I am going to try to make it all without external media as well and am going to implement some more detail. For example making the gun shift back each time it shoots. Thanks for your help.

To make it more realistic I changed my mind once again and I used external media. Here is an updated version. I think I still need some more work on it.

[center]
Come see the WIP!center]
Link102
21
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 9th Mar 2008 14:02 Edited at: 9th Mar 2008 14:13
looks good.

I've finished the modeling part of the minigun (texturing and animation are next). I've made the model so that it's origins are the same as where the camera is in the fps. but whenever I turn, it's realy wobly. when the xrotations or the yrotations of the camera is 0 then it is poisioned correct.
is there a way to fix this?

demo attached

Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 9th Mar 2008 19:28
@Tone3e
It's starting to shape up nicely! I wonder if you could spit empty shells off to the side as the gun fires...

@link102
At first I couldn't even see the minigun, it was blanched out, but changing the display mode to 32 bit makes it show up and it looks pretty cool! If you have DBC 1.2, try reducing the object ambient light to say rgb(60,60,60) it brings out the details a bit more.

Quote: "whenever I turn, it's realy wobly..."

In this case it has to do with the rotation order of x y and z.
Right after you load the minigun, use
SET OBJECT ROTATION ZYX 1

Enjoy your day.
Link102
21
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 10th Mar 2008 01:00
Quote: "it was blanched out"


that's becouse I haven't textured it yet. whan that's done, I'll see about the lighting. thanks for the tip

Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 12th Mar 2008 00:18
Hi guys,
just to let you know
I wont be entering for a while as I am without a computer, should be getting a laptop soon though

I retire as champion

Sinani201
19
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 14th Mar 2008 03:26 Edited at: 12th Apr 2008 02:46
Quote: "I am without a computer"

If you don't have a computer, how were you able to type that message?

"If you go too fast, you'll slip and start over, but if you go too slow, someone else will get there before you"-Sinani201
Kirby is in my avatar because he rules. Live with it.
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 14th Mar 2008 23:46
Ok. I grabbed Tone3e's code, I grabbed my characters from the last challenge, and once again, I grabbed Link102's death match arena. I threw all the code in a pot and stirred it up. I actually broke my own rule and added a small sound file for the gun

Move around with WASD. Rotate camera with mouse. Shoot with left mouse button. In links arena there is an option to move the camera using the left and right mouse buttons. Obviously, there's a conflict if you go to that mode and shoot.

Maybe someone can add a routine so Red or Blue actually react to getting shot!

The file is attached.

Enjoy your day.
Tone3e
19
Years of Service
User Offline
Joined: 17th Feb 2007
Location: here
Posted: 15th Mar 2008 01:12
Quote: "If you don't have a computer, how were you able to type that message?"

he has supernatural powers...lol
Latch that looks pretty cool. I might still work on my entry because I really want to implement those shells flying out, but I still havent figured out the code.

[center]
Come see the WIP!center]
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 15th Mar 2008 09:46
Quote: "I really want to implement those shells flying out, but I still havent figured out the code."


I think this would be handled like a particle generator. Each shell could be an object, say 1 to 50 or whatever. Each shell would have a lifespan before it is hidden and reused. The lifespan could be a time limit or it could be when it's height is at the ground level or something. Store each shell in an array with the appropriate parameters:

dim shell(50,7)

The second index in the array (7) is for the parameters. Just as an example I'm saying:
0=x position
1=y pos
2=z pos
3=x speed
4=y speed
5=z speed
6=time limit
7=gravity

I threw gravity in there so you can actually have local gravity for each particle if you want. The basic idea would be to have a start position (probably the side of the gun), a random speed in the x y and z directions for the discharged shell, a time limit before the shell is reused, and gravity so the shell rises and falls in the y direction at a certain rate or speed.

You'd loop through the fifty shells as the machine gun fires and then reset and reuse the ones that have reached their time limit. You'd use the speed and gravity to move the shells sideways and up/down over time. This is just one idea.

Enjoy your day.
Link102
21
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 18th Mar 2008 15:44
you could also animate shels going out of the gun. but that takes a lot of work. on the upside, it preserves cpu

Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 20th Mar 2008 07:49
@Link102

Hey, you've got the minigun, where's the flare?

Enjoy your day.
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 24th Mar 2008 03:48
This challenge is over.

All those people that ask questions in general DBC discusion should take a stab at some of these challenges. It probably would help with your coding and getting feedback on testing out ideas.

I have to admit I'm disappointed with the lack of entries. I even loosened the rules to allow external media. Someone could have taken a model of any gun looking thing, loaded it into DBC and just flashed the color of the backdrop. That's how easy this could've been.

Anyway, there were only 2 entries.

Tone3e - centered "monster hunt" type cylinder gun

Link102 - minigun model

The winner of this challenge is


Congratulations!

Enjoy your day.
Zombie 20
19
Years of Service
User Offline
Joined: 26th Nov 2006
Location: Etters, PA
Posted: 24th Mar 2008 03:56
sigh i'm never going to learn anythign without a comp, this just...blows.

*in case anyone asks, I use the wii for messages*


Coffee coffee coffee coffee coffee coffee cappacino, JAVA!
Tone3e
19
Years of Service
User Offline
Joined: 17th Feb 2007
Location: here
Posted: 24th Mar 2008 04:15
I won!
I would have liked to add in the shells too, but I haven't had too much time on my hands. Too busy applying for scholarships for next year.
Ok I have no idea what to do for the next challenge. The only thing I can think about is too make a really simple puzzle like minigame. Sort of where all the pieces are scattered and thereis a basic outline of where the shpaes go and you just have to drag them there. Actually that wouldnt be that simple now that I think about it. Idk, any suggestions?

[center]
Come see the WIP!center]
Stig Design Stig Magne
20
Years of Service
User Offline
Joined: 23rd Mar 2006
Location: Norway
Posted: 2nd Apr 2008 01:10
Maby som thing like a Question programm
asking questions like

Print "What is the language in uk),uk$
and so on
That isn`t hard butt if some one have added some gui and score that will bi saved in the end anly a tip`

Stig Design (Free Games,Sources,Textures,Photo`s)
Lisence Free at http://dashboard.filefront.com/StigDesign/
LBFN
19
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 2nd Apr 2008 03:30
Tone3e:

I haven't been around here much lately, but I do have a suggested challenge for you to consider:

Make a 3D maze in which the player (1st or 3rd person) can make it through with a defined end goal. (I guess it could be listed as a 2D maze contest too). The fastest times for reaching the goal could be kept. A bonus would be to install some enemies with AI capability.

Just a thought.

LB
Sinani201
19
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 2nd Apr 2008 05:20 Edited at: 12th Apr 2008 02:46
Sounds cool!

"If you go too fast, you'll slip and start over, but if you go too slow, someone else will get there before you"-Sinani201
Kirby is in my avatar because he rules. Live with it.
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 3rd Apr 2008 05:04
is that the challenge then?
maze game?
i'll try an entry but it'll be extremely basic as i'm using Ya Basic on my ps3, no 3D but i don't use it anyway :p
i need to buy a keyboard!
i miss my computer :-(

Stig Design Stig Magne
20
Years of Service
User Offline
Joined: 23rd Mar 2006
Location: Norway
Posted: 3rd Apr 2008 06:16
isn`t it this a challenge for DBC or DBpro language or have i mistaken the rules

Stig Design (Free Games,Sources,Textures,Photo`s)
Lisence Free at http://dashboard.filefront.com/StigDesign/
LBFN
19
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 3rd Apr 2008 12:53
Stig Design Stig Magne:
This is the 'DB Classic Programming Challenge Thread' after all. I would suggest that you review the rules on the very first post in this thread.

Tone3e:
Please set the challenge you want with a deadline. You should have already done so. If you don't very soon, the challenge setting will fall upon the runner up.

OBese87:
Sorry to hear you have computer troubles....A programmer without his computer is like a day without sunshine.
Tone3e
19
Years of Service
User Offline
Joined: 17th Feb 2007
Location: here
Posted: 4th Apr 2008 02:25
Well i agreee with lbfn. That is a good idea. Sorry for not respnding earlier, but Im busy with with the end of my senior year at high school, so I havent had much free time. Well, today is the 3rd and I think that since the thread seems so slow lately Maybey it should be two weeks, but first ill set it at a week so and we'll see from there.
Deadline: Thurday april the 10, 12:00 pm gmt

[center]
Come see the WIP!center]
Sinani201
19
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 4th Apr 2008 04:34 Edited at: 12th Apr 2008 02:46
Ok then, I'll get started.

"If you go too fast, you'll slip and start over, but if you go too slow, someone else will get there before you"-Sinani201
Kirby is in my avatar because he rules. Live with it.
LBFN
19
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 10th Apr 2008 00:29
Tone3e

Is there any way that you could give us some more time on this? I have a project started, but need more time to get it done.
So far:


LBFN
Tone3e
19
Years of Service
User Offline
Joined: 17th Feb 2007
Location: here
Posted: 10th Apr 2008 03:19
I have no problem with it, but the thing is Im am not sure if wnyone else is entering. Sinani looks interested, but I dont know if he will get in something. I think an extra week cant harm anyone. This thread seems to be dying, but I hope it will pick up speed later on.

NEW DEADLINE: THURSDAY APRIL 17.

[center]
Come see the WIP!center]
LBFN
19
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 10th Apr 2008 05:08
Quote: "This thread seems to be dying"


Alas, it is a sad day for DBC fans everywhere....

If no one else is going to enter then I don't see a reason to press on. I always thought these challenges were interesting, even though I haven't entered for a while. You could still learn from others or learn different ways of doing things. If anyone else is out there that intends to submit something for this challenge, please say so ASAP.

Best to all,

LBFN
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 10th Apr 2008 17:23
I've been trying to come up with a way to randomly generate a maze
but it's hard :p

I think we need to advertise this thread and get more people involved

Login to post a reply

Server time is: 2026-06-08 00:13:32
Your offset time is: 2026-06-08 00:13:32