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: 4th May 2007 18:51
Just the usual quick reminder for those wanting to make a last minute entry...

5 hours to go, so get a move on!

Now can I get my idea to actually work properly...

TDK_Man

NanoGamez guy
17
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 4th May 2007 19:14
@Paelax

Quote: "Whoever is judging this one is gonna have a lot of entries to look at."


Yes, I was hoping that this one would have a lot of entries.

@everyone who's entered

Nice load of entries. Good work!

@everyone who's got an entry but hasn't yet posted.

As TDK_man said, hurry up!


Nothing is impossible...
No really, it is.
Zombie 20
17
Years of Service
User Offline
Joined: 26th Nov 2006
Location: Etters, PA
Posted: 4th May 2007 19:45
Just wanted to say, i'm putting probably another one in, but thank you for putting in these challenges. They are always so fun to do. and they teach you new stuff! Thanks TGC!!!

TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 5th May 2007 02:16 Edited at: 5th May 2007 02:19
Last minute entry:



[Edit] Oops - posted the wrong version - without the screensaver bits!

TDK_Man

NanoGamez guy
17
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 5th May 2007 12:35
Alot of entries this time. Spent half an hour looking athem and judging them. OK the entrants are:



OK, here's the winner:


And the runner up:


Congrats to the winner and over too the winner to set the next challnge...


Nothing is impossible...
No really, it is.
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 5th May 2007 13:10
Zombie 20
17
Years of Service
User Offline
Joined: 26th Nov 2006
Location: Etters, PA
Posted: 5th May 2007 18:47
nicely done phaelax, looking forward to your challenge

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 5th May 2007 22:26 Edited at: 5th May 2007 22:38
hooray!

I got all the entries uploaded to the site and fixed a display issue (small but it bugged me) in IE.

Gimme a few minutes to think of something for a challenge. Any suggestions?


Zombie 20
17
Years of Service
User Offline
Joined: 26th Nov 2006
Location: Etters, PA
Posted: 5th May 2007 22:34
um...suggestion hmm? ooo..How about a small puzzle game? Or maybe a program that draws lines and shapes according to the settings you put in. I dont know how to do those, but it would be fun to try.

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 5th May 2007 22:38
Here's an idea, tell me all what you think.

- You will be given a map represented by DATA (0 passable, 1 blocked)


The goal is to display the map (any method you want) and display ALL possible paths through the map by using recursion to search. A path through the map is consider by a '0' on the edge of the map. So the example above has 2 possible paths. During the judging, I will use a different set of map data.


Zombie 20
17
Years of Service
User Offline
Joined: 26th Nov 2006
Location: Etters, PA
Posted: 5th May 2007 22:47
ooo i like that. my vote's in

TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 5th May 2007 23:32
Bear in mind that it's very close to the one a few weeks ago where you had to guide a cone through a maze and collect three spheres.

Having said that, I'm OK with it...

TDK_Man

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 5th May 2007 23:48
Alright, then I'll go with this idea instead.

Draw/generate a texture. Try not to convert an image into DATA statements, it won't be accepted. Some DATA is allowed, just not for drawing the entire image pixel by pixel.

You could draw a tileable brick image, grass tile, or get fancy and show us some clouds using perlin noise. It's a fairly open challenge and the code you all come up with could be useful in future competitions.

Deadline: May 12, midnight (1 week)


TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 6th May 2007 01:06
Nice idea!

Here's one to start with. It's not a real entry because I used it in the last challenge, but people may not have spotted it.

It's a code-generated texture for particles:



If you alter the position of 'C' in the RGB function you can alter the colour - for example RGB(C,C,C) gives you a white particle while RGB(0,0,C) gives you a blue one.

TDK_Man

NanoGamez guy
17
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 6th May 2007 13:08
Just made a hedge and bark texture. It'll show the hedge and then when you click it'll show the 'christmas tree'




Nothing is impossible...
No really, it is.
Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 7th May 2007 03:20
@Phaelax:

Congratulations! Good Job!

Enjoy your day.
Binary Coder
17
Years of Service
User Offline
Joined: 26th Feb 2007
Location: Queensland, Australia
Posted: 7th May 2007 04:56
Really good entry Phaelax!

I understand how to make textures (sort of) but I don't understand what types you can make from these 2D shapes. Any ideas?

NanoGamez guy
17
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 7th May 2007 20:09 Edited at: 7th May 2007 20:15
Here's my attampt at a sowflake, or something:



[EDIT]
@Binary coder:
Try starting with something simple and then move on to more difficult things. Try starting off with mabye a brick texture or something.


Nothing is impossible...
No really, it is.
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 7th May 2007 21:29 Edited at: 8th May 2007 00:12
Quote: "I understand how to make textures (sort of) but I don't understand what types you can make from these 2D shapes. Any ideas?"


Think of a type of texture.

The challenge is to then think of a way of creating that texture by just using the 2D commands.

Here's my entry so far - it creates 16 textures:



It goes without saying that the 2D commands aren't that fast, so there's a considerable wait while the 16 textures are generated. How long depends on the speed of your computer.

And I know - the water one is crap! I'm hoping to tweak that a little before the closing of the challenge...

TDK_Man

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 7th May 2007 22:06
Nice textures TDK, took about 30sec to load everything. The water didn't look bad at all.

good start on a snowflake.


Comrade Robski
18
Years of Service
User Offline
Joined: 12th Sep 2005
Location:
Posted: 9th May 2007 16:07
Are animated textures allowed? I've been working on lightening bolt and fire textures, which I might be able to polish up and enter, if they're allowed...
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 9th May 2007 19:14 Edited at: 9th May 2007 19:18
A texture is a texture is a texture!

The challenge is to create a texture using only Dark Basic Classic standard commands - no external media - so yes, please feel free. (And by 'standard commands' we mean no enhancement pack commands).

We also need more beginners to enter these challenges - they are educational and believe me, you really will learn more about programming by entering these than any other way - mainly because the more experienced coders here will explain what you are doing wrong and help you improve your code.

If you see someone has already entered one that you think you can't beat - ignore it! Use your entry to learn how to do it yourself. You will find lots of others that will tell you how you can make your entry better - and you can ask for advice.

It's not the winning that counts - it's learning how to do something yourself that you couldn't do before!

And don't forget, it's OK to take code from an entry someone else has done, use it as a base for your work then resubmit a new version - as long as you learn something from it.

TDK_Man

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 9th May 2007 19:23
I encourage you to do an animated texture, I'd be curious to see what you come up with.

Other tips for those looking to do a little research, try googling for procedural textures or texture synthesis.


Sinani201
17
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 10th May 2007 04:43
I'm terrible at animated images and textures. If someone posted an entry with that would they have a better chance at winning?

What happens when when you mix coke, pop rocks, vinegar, and baking soda?
I am currently working on 2 projects: The Ultimate Killing Game & The Turtle Game
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 10th May 2007 05:50
Depends how they present it and the realism of the texture. If you make a texture that flickers between a black and green square and call it an LED light texture, then no it wont win.


Comrade Robski
18
Years of Service
User Offline
Joined: 12th Sep 2005
Location:
Posted: 11th May 2007 16:59
OK here's my entries. Both are animated textures - you can change the parameters at the start of the code to change the effect

1) Electric Discharge Texture




2) Fire texture

NanoGamez guy
17
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 11th May 2007 18:42
Here's three more entries:

woven:



snow:



No idea:




Nothing is impossible...
No really, it is.
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 11th May 2007 23:25
finally, some more entries to check out!


Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 11th May 2007 23:31
finally, some more entries to check out!

Comrade, wow niiiice lightning! At one point it was a mix of blue, purple, and white and it looked perfect. It's a little dark, but most likely due to my monitor. The fire is nice too. Both load pretty fast.

Nice cloth Nano, snow doesn't look quite right. If you could take that "no idea" texture and do some kind of pixelate or mosaic effect you could get a nice stained glass look I think.


TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 12th May 2007 18:28
Here's the usual last-minute warning...

Just over 7 hours left to get your entries in!

TDK_Man

TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 13th May 2007 21:42
Phaelax... where are you?!!!!!

This challenge ended yesterday...

TDK_Man

Sinani201
17
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 13th May 2007 23:58
Can we still submit entries?

What happens when when you mix coke, pop rocks, vinegar, and baking soda?
I am currently working on 2 projects: "Slot Machine Time!" and "Shoot 'em all up"
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 14th May 2007 00:09
I suppose so - until Phaelax gets back anyway...

TDK_Man

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 14th May 2007 04:35
Sorry guys, its been a very long weekend consisting of maybe 4 hours of sleep in total. Basically spent all night babysitting 6 kids from 2 to 14.

I'll check all the entries in the morning, but I think I've looked at most of them already.


Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 14th May 2007 17:51
Only 3 people tried this challenge, but we still got a lot of entries from you few.

NanoGamez guy, nice hedge texture, appears to tile seamlessly. The bark was too dark for me to make out on my screen.
A Nicely presented snowflake. Your ground snow texture probably should've used more gray than blue I think. However, stretch out it might've given a nice ice effect. 'no idea' texture, colorful hippy-like image just not sure what it could be used for other than a poster for a grateful dead concert.

TDK, shoving 16 textures in our face at once! The oak was the only one that didn't really excite me. I thought water looked fairly good for a code-generated image. The rusty metal, steel bars, and wire mesh were excellant. And with the variety of other brick and floor textures, someone could get a decent start on a game with just these textures. Woven cloth looked simple but nice.

Comrade Robski, very nice animated electric discharge texture. I could see myself using that, but I also see why you kept the size at a minimum as it could get pretty slow if too large. Fire was quite nice too.

I tried to pick a winner based on a single texture. So for example in Nano's christmas tree I looked at the hedge and bark textures as if separate entries. However, I still considered how they were presented. This is definately not an easy decision as each one of you made a texture with a different intended application in mind. TDK with the floor textures, Nano takes to the sky with snow particles, and Comrade makes some nice animated decal effects.

Runner-up:


Winner:



NanoGamez guy
17
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 14th May 2007 18:11
Contgatulations Comrade Robski, Brilliant animations.
Looking forward to the next challenge...


Nothing is impossible...
No really, it is.
Comrade Robski
18
Years of Service
User Offline
Joined: 12th Sep 2005
Location:
Posted: 14th May 2007 18:43 Edited at: 15th May 2007 12:31
Wow thanks a lot guys, I can't really believe I won!

So I guess it's my priviledge to set the next challenge, which will be:

The Target Shooting Challenge

Make a mini-game where you shoot targets to score points. That's it as far as the rules go - I want to keep it quite open so anyone can enter. 2D or 3D is fine.

For beginners here is some code for a very basic 2D target shooting game:



You could make an entry by building on these bare bones - make it more colourful, vary the size and shape of the targets, make the targets move etc.

Deadline is one week today, Monday 22 May, midnight GMT

Good Luck everyone!
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 14th May 2007 21:00
sounds similar to what I just made for the last DBP challenge.

Shoot the stickman 3 different ways: head shot, body shot, nut shot. Any dishonorable shooters hitting the nuts will be penalized ofcourse!




Comrade Robski
18
Years of Service
User Offline
Joined: 12th Sep 2005
Location:
Posted: 14th May 2007 21:12
Quote: "sounds similar to what I just made for the last DBP challenge."


Whoops, I don't read the DBP forums, so any similarity is coincidence, honest!
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 15th May 2007 00:15
Zombie 20
17
Years of Service
User Offline
Joined: 26th Nov 2006
Location: Etters, PA
Posted: 15th May 2007 06:33 Edited at: 15th May 2007 07:09
this sounds fun..i'm going to try my best on this one.
gives an error on this, i fixed it already but why did it give me an error.



and unfortunaely the music i put in won't work, but the sound does and i have my sound file in the foleder, any ideas? I'm working off of the template.



TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 15th May 2007 07:54
Quote: "i have my sound file in the foleder,"


Sorry - check the rules. No external media files are allowed. You can only post the source code - nothing else.

TDK_Man

Zombie 20
17
Years of Service
User Offline
Joined: 26th Nov 2006
Location: Etters, PA
Posted: 15th May 2007 08:06
oh shoot i'm sorry tdk, i feel very foolish. Thank you very much hehehehe. I'll remove it at once. Thank you

Comrade Robski
18
Years of Service
User Offline
Joined: 12th Sep 2005
Location:
Posted: 15th May 2007 12:30
Quote: "gives an error on this, i fixed it already but why did it give me an error."


Sorry, a rem statement got lost somewhere... That line should read:



I've edited the original to correct the error
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 15th May 2007 18:02 Edited at: 15th May 2007 18:30
Zombie 20:

NP - I just didn't want to see you waste your time trying to fix something that couldn't be used in the challenge anyway.

You are still entering it without the sound right?...

Comrade Robski:

Just a minor point, but you should avoid using DB keywords as variable names - like Timer. You should really use something like T or TimerVal to make it clearly distinguishable from the Timer() function.

[Edit] Must be going blind - put Y instead of T above so just changed it! Using Y as a variable name for the timer doesn't make a lot of sense...

It will work most times, but isn't good practice and it can cause confusion later.

TDK_Man

Comrade Robski
18
Years of Service
User Offline
Joined: 12th Sep 2005
Location:
Posted: 15th May 2007 18:17 Edited at: 15th May 2007 18:17
Quote: "Just a minor point, but you should avoid using DB keywords as variable names - like Timer. You should really use something like Y or TimerVal to make it clearly distinguishable from the Timer() function."


Thanks, TDK, good point. Actually for a long time I used to type RANDOMIZE TIMER instead of TIMER() - It was maybe a year before I noticed - so I really should have remembered this time!
Zombie 20
17
Years of Service
User Offline
Joined: 26th Nov 2006
Location: Etters, PA
Posted: 16th May 2007 02:58
TDK-Yea i'm still joining, i just need to try out some 2d commands for some drawing .

Sinani201
17
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 17th May 2007 05:21
I gotta be entering this! I never enter these challenges, so I might start with this one.

Aren't I full of questions?
What happens when when you mix coke, pop rocks, vinegar, and baking soda?
NanoGamez guy
17
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 17th May 2007 18:28
good for you! we need some more people to join.


Nothing is impossible...
No really, it is.
Zombie 20
17
Years of Service
User Offline
Joined: 26th Nov 2006
Location: Etters, PA
Posted: 19th May 2007 11:06
well now i have to drop out . I've been having the worst lack of focus and brain farts. I just don't know where to start, i'll check out the next comp though. It is fun, just can't get it this time . Good luck everyone .

Login to post a reply

Server time is: 2024-04-26 21:51:50
Your offset time is: 2024-04-26 21:51:50