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 Professional Discussion / - DBPro Coding Challenges -

Author
Message
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 13th May 2008 22:50
yeaah Darth Vader , it works ok...it remember me old 2d games.

The sun could be 2d aswell like the rest of escenary but it´s fine
The best.. missile coming down..lol

cheers.

oh my god
Must Program
18
Years of Service
User Offline
Joined: 22nd Nov 2007
Location:
Posted: 14th May 2008 09:10
@bmaczero

thanxs for the help and i know i started in 2007 but i forgot my password and only remembered it yesterday so im back and ye i spose it will be harder than i thought.

i used to understand loads of dbpro but now ive forgotten it all so i could do with a mentor

any offers
Darth Vader
21
Years of Service
User Offline
Joined: 10th May 2005
Location: Adelaide SA, I am the only DB user here!
Posted: 14th May 2008 12:03
Quote: "The sun could be 2d aswell like the rest of escenary"

Well the ground is a plain. I want to do everything is 2D but I don't know how to work fill in the emptiness! I might need to look into filling, just not sure how...


jeffhuys
20
Years of Service
User Offline
Joined: 24th May 2006
Location: No cheesy line here.
Posted: 14th May 2008 17:47 Edited at: 14th May 2008 17:55
Quote: "wow !!...tha´s amazing indeed...our friends are right...as bmaczero says, if rem all lines where force command appears...it works !!..
I hope you don´t mind jeffhuys
I made some changes deleting those lines and it works. have a

{Code snippet}

cheers."

Thanks! I've made a new code, but I don't have it on this computer, and my other computer has no internet for some time..

Quote: "I was amazed.. but not surprised.. Jeff seems to know his stuff "

Hehe, Thanks!



Quote: "Okay attached is an .exe file in a zip, hopefully that it works!

Also has anyone else tried out my code? Does it work or do you also get a black screen?
Thanks!"


I'll try it as soon as I retreive internet again, thank you!

Quote: "What do you mean "for next time"? The next challenge? Clarify
"

When I would post again, but, as you read above, I don't have internet right now

See you next time (I hope it is before the challenge ends )

Jeff

EDIT:
Here it is, just used a flash drive to copy it. I've also added support for shadows, but maybe it will go very slow because of it. You have the option to switch it off at the very beginning of the program. Also support for computers without a gamepad is added (hopefully this will correct all your problems). Be aware that I will probaly not around for some time (1-4 days maybe), but feel free to comment





You're the 'th to view this signature!
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 15th May 2008 00:22
It looks better now jeffhuys...no error given



Quote: "Well the ground is a plain. I want to do everything is 2D but I don't know how to work fill in the emptiness!"


I know that this is not the snippet area...sorry
Well... Darth Vader ...it is easy to make filled areas. This litle example is for you .





oh my god
Must Program
18
Years of Service
User Offline
Joined: 22nd Nov 2007
Location:
Posted: 15th May 2008 20:51
ive learnt more now and just to clarify what is the current challenge?

i can make a green sphere now
Must Program
18
Years of Service
User Offline
Joined: 22nd Nov 2007
Location:
Posted: 15th May 2008 21:00
omg i could make some objects on the floor but adding gravity is gona be hard but ill give it a try anyway just to get into a challenge
Must Program
18
Years of Service
User Offline
Joined: 22nd Nov 2007
Location:
Posted: 15th May 2008 21:16
well im new to programming i entered the competition late and i can only create spheres and cubes so i placed them as if the explosion has just happened and this is the freeze frame of it im havin problemes with my comp so i can't view them at the moment so im relying on getting it right. here it is so far.


jeffhuys
20
Years of Service
User Offline
Joined: 24th May 2006
Location: No cheesy line here.
Posted: 15th May 2008 23:13
@Darth Vader:
Quote: "Okay attached is an .exe file in a zip, hopefully that it works!
"

It works now I think it's because of synergy. It is dodgy sometimes. Anyway, nice explosion Reminds me of a mobile game called "Attack of the Water Stealers" Very cool!

@All:
Here's another new version, with a little shockwave and some "stayin' smoke" Have fun. I don't know if this will be my last update, but I think so.



Cheers!

Jeff



You're the 'th to view this signature!
BMacZero
20
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 16th May 2008 02:01
@Must Program:
Test your code before you post it please . You forgot some brackets and your program has no conditions that keep it running - when it finishes making the objects it will just quit. Try a WAIT KEY command at the end.

@jeff
Wow! Lots of cool new features you have there! The shockwave is impressive. The shadows are pretty cool too. I'm not sure if I really like the smoke though, it looks pretty fake. Maybe if you just allowed it to rise in a constant stream, and made it move a bit faster, it would be more realistic.

Unterseeboot - Has you played it?
Los Mineros are on leave...
Darth Vader
21
Years of Service
User Offline
Joined: 10th May 2005
Location: Adelaide SA, I am the only DB user here!
Posted: 16th May 2008 04:01
@jeff. Thanks! I'm deciding what effect to add next. Ran out of ideas! Your new explosion is really cool, and the shockwave is awesome! Can't try it with shadows as my computer currently doesn't have PS 1! But I'm sure it would look even more awesome!


Must Program
18
Years of Service
User Offline
Joined: 22nd Nov 2007
Location:
Posted: 16th May 2008 20:38
oops where did i forget brackets and i cant view them atm because im having problems with my comp. And ill add a loop at the end so you can see it for longer sorry about that but i will fix it soon hopefully.
sinisterstuf
19
Years of Service
User Offline
Joined: 28th Mar 2007
Location: Namibia, Southern Africa
Posted: 16th May 2008 22:16
@jeffhuys:
yeah, I know that water stealers game, I played non-stop for a whole day but then I had to sleep and when I woke up the next morning they stole all my water

@all:
I'm kindof a beginner but I'm going to enter this challenge too. The only thing is I'm typing this on my cellphone so I can't upload the code... Maybe tomorrow... Hope that's not too late

Happy, always happy!
sinisterstuf
19
Years of Service
User Offline
Joined: 28th Mar 2007
Location: Namibia, Southern Africa
Posted: 17th May 2008 01:14
Ok, so I worked very hard tonight and I will now submit my explosion:



Because I'm kindof a beginner there was a lot of stuff that I couldn't because I just couldn't, like making smoke at the end and rotating the camera around the box. I also had the pieces fall down again but I took it out because it looked dumb. Well I hope someone looks at this! and also if my code is messy then sorry

Happy, always happy!
BMacZero
20
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 17th May 2008 02:04
Ohh, that's cool! I did have to change two things though - around line 105 you used '2rot#', which the compiler didn't like. I assumed that was supposed to be '2*rot#" so I changed it and it worked. Also, just a minor thing, but add an END before your function or the program complains at you when you press escape.

All these look pretty good, I'm going to have a hard time judging them. I'll probably do it tommorow morning, so a little time to add last minute effects!

Unterseeboot - Has you played it?
Los Mineros are on leave...
BillR
23
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 17th May 2008 10:08
@Sinister Stuff - Really very good, I liked it a lot.
Nice Job! - Slow Motion was my favorite.
sinisterstuf
19
Years of Service
User Offline
Joined: 28th Mar 2007
Location: Namibia, Southern Africa
Posted: 17th May 2008 12:25
Thanks guys!

@bmaczero
er... Would you mind waiting a bit with the judging? Cos I need to fix stuff and improve stuff but I have lot's of work to do and that only finishes at 13:00 please, have mercy

Happy, always happy!
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 17th May 2008 12:41
Wow !! Sinister Stuff ...it looks great !!...I say the same as BillR...Slow Motion looks as a terrible deflagration...ha ha...I´ll keep it.

cheers.

oh my god
BMacZero
20
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 17th May 2008 16:14
Sorry, nvm about the judging, I though the challenge ended on the 16th, it's actually on the 18th.

So you have some time

Unterseeboot - Has you played it?
Los Mineros are on leave...
sinisterstuf
19
Years of Service
User Offline
Joined: 28th Mar 2007
Location: Namibia, Southern Africa
Posted: 17th May 2008 17:46
Ok *huge sigh of relief*
I will hopefully submit an improved version later today, like sometime around 10 oclock... Is that fine?

Happy, always happy!
sinisterstuf
19
Years of Service
User Offline
Joined: 28th Mar 2007
Location: Namibia, Southern Africa
Posted: 17th May 2008 17:53
Oh and by the way, jeffhuys, I really liked your explosion, it was so cool it made me want to do a backflip... The only thing is, I don't know if maybe my DBpro is old or something but I had to remove these shadow commands because it said error: unkown command or something like that...

Happy, always happy!
BMacZero
20
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 17th May 2008 23:38
All good, Sinister Stuff, I won't be judging until Monday morning around 7:00 AM (Pacific Time)

Unterseeboot - Has you played it?
Los Mineros are on leave...
Penfold
22
Years of Service
User Offline
Joined: 3rd Dec 2003
Location: RED postbox houses of parliment
Posted: 18th May 2008 00:35
ooh good I might get a go at this then.

might give me chance to figure out how to do black textured particles and how to soft kill them (ie not just make them disapear but get to the end of there life) and also to get the count of particels down to under a zillion on screen at once (will prolly have to make a few textured plains instead?)

anywho.. I will have something..

'Ooh 'eck chief'...'crumbs'
sinisterstuf
19
Years of Service
User Offline
Joined: 28th Mar 2007
Location: Namibia, Southern Africa
Posted: 18th May 2008 03:10 Edited at: 18th May 2008 03:13
Ok, so i's 1:00 AM and I'm very tired. This will probably be my final version... I like it a lot though.



I worked alot on this and added physics, made the explosion bigger and let you add stuff and I added smoke and keep watching till the turning stops because that's when it ends. I hope you enjoy this, now I'm going to bed!!! and please tell me if I made any mistakes so that I can fix them, thanks.
[b]P.S. My name is actually sinisterstuf, not Sinister Stuff, the forum thing writes it like that. Not that I mind though... I'm just saying
[i]and I almost forgot to mention that Papa stiffy helped me with the camera rotation, so thank you to him

Happy, always happy!
sinisterstuf
19
Years of Service
User Offline
Joined: 28th Mar 2007
Location: Namibia, Southern Africa
Posted: 18th May 2008 11:55
So does that mean that there's still all of today to submit?!!

Happy, always happy!
Must Program
18
Years of Service
User Offline
Joined: 22nd Nov 2007
Location:
Posted: 18th May 2008 12:11
yes you do because it is still sunday so you have all of today and until 7:00am tomorrow
sinisterstuf
19
Years of Service
User Offline
Joined: 28th Mar 2007
Location: Namibia, Southern Africa
Posted: 18th May 2008 13:32
Cool! I better get to work then!

Happy, always happy!
jeffhuys
20
Years of Service
User Offline
Joined: 24th May 2006
Location: No cheesy line here.
Posted: 18th May 2008 19:09
Quote: "Oh and by the way, jeffhuys, I really liked your explosion, it was so cool it made me want to do a backflip... The only thing is, I don't know if maybe my DBpro is old or something but I had to remove these shadow commands because it said error: unkown command or something like that..."


Thank you! Yea, I think that error is because of an old version of DBPro, because I don't have the error. It can be your graphics card, though.
When are the results? I'd like to see them

Jeff



You're the 'th to view this signature!
BMacZero
20
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 18th May 2008 19:17
That new one looks awesome, sinisterstuf! Only thing I would change is just a small detail - I think it would look better if the smoke started at the same time as the explosion, or about halfway through the explosion.

Unterseeboot - Has you played it?
Los Mineros are on leave...
Penfold
22
Years of Service
User Offline
Joined: 3rd Dec 2003
Location: RED postbox houses of parliment
Posted: 18th May 2008 22:27
Ok, heres my entry. Don't think I will have time to do much more.

Thanx mainly to Sin Stuff as I used his code to backwards educate myself as I knew next toi nothing about particles. (still don't know that much)



I still couldn't figure out how to make my debris RED HOT so you'll have to settle with pink.

'Ooh 'eck chief'...'crumbs'
Must Program
18
Years of Service
User Offline
Joined: 22nd Nov 2007
Location:
Posted: 18th May 2008 22:35
lol can the winer of this one set the next one as a text based game because those i can do and quite well if i say so myself
sinisterstuf
19
Years of Service
User Offline
Joined: 28th Mar 2007
Location: Namibia, Southern Africa
Posted: 18th May 2008 22:41
@bmaczero:
thanks. Do you think so? it's easy to change so I'll do that quickly

@pendfold
lol, particles are my favorite. By the way, I forgot to mention to you that to get the particles to stop and not just dissappear you use SET PARTICLE EMISSIONS and set it to 0. But you probably figured that out. And if you can't get stuff darker, like getting pink instead of red, it might have something to do with it's light properties. You can actualy reduce the ammount of light reflected by an object to darken it... i think

Happy, always happy!
Must Program
18
Years of Service
User Offline
Joined: 22nd Nov 2007
Location:
Posted: 18th May 2008 23:20
winner make the next one a text based game or else my pet yellow hoofed unicorn will come and get you


(For those of you who have played my demo you will know what i mean by yellow hoofed unicorn)
sinisterstuf
19
Years of Service
User Offline
Joined: 28th Mar 2007
Location: Namibia, Southern Africa
Posted: 19th May 2008 01:48
Ok, it's 11:30 now, a bit earlier than last night's entry but if I stay up later I won't be able to get up early tomorrow morning. So here it is, my final version, which is by far, the coolest program I have ever created.

NEW in this version:
+create up to 8 different extra box with 3 different modes
+light boxes that are knocked into the air
+heavy boxes that are pushed along the surface
+and exploding boxes that explode on impact!!!
+each box can be placed anywhere on the surface
+this means you can now put 8 exploding boxes all around the main box for a massive explosion!!!
+warning! it may be just my computer but for 6 or more boxes the whole room becomes charred by the explosion!!!
+also, so many particles can slow down the program
stuff from last version include:
+camera zoom in and out
+camera rotation on or off
+slow-motion effect on or off



This code is alot in my opinion. I hope you enjoy playing with what I have decided to call: Sinister_Explosion_Maker_3. And if you experiences any problems or find bugs... which there might be. Or if you have any sugesstions then tell me because even though by the time you do it will be too late for me to do anything about it I would still like to know.
Things I didn't have time to add:
+play again prompt
+auto-explosion countdown timer with animated fuse
shows you not to wait till the last minute.
Enjoy!

Happy, always happy!
BMacZero
20
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 19th May 2008 06:50
@Penfold: If that's your entry, you should probably put it into a working program rather than just a function so people can try it out.

@sinisterstuf: Wow! Looking even better and better! The smoke is better, too.

11 hours, 10 minutes to go!

Unterseeboot - Has you played it?
Los Mineros are on leave...
sinisterstuf
19
Years of Service
User Offline
Joined: 28th Mar 2007
Location: Namibia, Southern Africa
Posted: 19th May 2008 08:29
Ok, well it's 6:30 AM here... i'm guessing my time is out of sync with bmaczero's... Still can't wait for the results...

Happy, always happy!
jeffhuys
20
Years of Service
User Offline
Joined: 24th May 2006
Location: No cheesy line here.
Posted: 19th May 2008 09:15
Me too! When are the results then?

PS: sinisterstuf: Nice stuf you have there



You're the 'th to view this signature!
sinisterstuf
19
Years of Service
User Offline
Joined: 28th Mar 2007
Location: Namibia, Southern Africa
Posted: 19th May 2008 10:42
Haha thanks man! And your stuf is sinister too!

I haven't looked at your code because I haven't had time and I might find the answer in there but I was just wondering, how did you make that white shockwave thing, cos that was really cool. And how did you get the particles to be so thick looking?

Happy, always happy!
bergice
19
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 19th May 2008 10:57
Can a xbox controller give force?


Dont delete my sig mods, it is 600X120...
bergice
19
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 19th May 2008 10:59
Really nice


Dont delete my sig mods, it is 600X120...
BillR
23
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 19th May 2008 12:02
@Penfold - you only posted a function, you need to post the whole program.
sinisterstuf
19
Years of Service
User Offline
Joined: 28th Mar 2007
Location: Namibia, Southern Africa
Posted: 19th May 2008 12:50
I agree with BillR

Happy, always happy!
Penfold
22
Years of Service
User Offline
Joined: 3rd Dec 2003
Location: RED postbox houses of parliment
Posted: 19th May 2008 14:13
Oops don't know how that happened swear I checked and the code was in there...



'Ooh 'eck chief'...'crumbs'
BMacZero
20
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 19th May 2008 16:40 Edited at: 19th May 2008 16:41
Alrighty, here are the much-awaited judgements:

Penfold: Pretty neat! Your particles had nice gravity and other settings on them, even though they were pink

sinisterstuf: Great use of particles, I also liked the ability to add boxes around the explosion, though the smoke could have been still better if you had more time.

jeffhuys: Nice, big explosion, with particles,shockwave, flying debris, and smoke! Very cool, though your smoke too could have used a little more work.

Must Program: Sorry, I couldn't judge your code because there were so many syntax errors. I started fixing them but then noticed you had too many parameters for certain commands, and I didn't know which one were the right ones. Run your code next time

Darth Vader: The only 2D explosion, it had a nice shockwave and some "particles" in there, it could have been more realistic if it stopped after a while, though

chafari: I though I had the winners all picked out, and then I got back to yours . Had to rethink my choices, yours was incredible and humorous!

CuCuMBeR: Yours, too, was very amazing. I like how the center glowed, that was really neat.


Man, what a decision.


Gotta have a winner though, so after careful deliberation and the flip of a coin (j/k) , the runner-up is:



And the winner:



Unterseeboot - Has you played it?
Los Mineros are on leave...
sinisterstuf
19
Years of Service
User Offline
Joined: 28th Mar 2007
Location: Namibia, Southern Africa
Posted: 19th May 2008 17:28 Edited at: 19th May 2008 17:29
Yeah! Hi5 guys!

so what's the next challenge?

Happy, always happy!
BMacZero
20
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 19th May 2008 17:34
jeffhuys

Unterseeboot - Has you played it?
Los Mineros are on leave...
sinisterstuf
19
Years of Service
User Offline
Joined: 28th Mar 2007
Location: Namibia, Southern Africa
Posted: 19th May 2008 17:54
I might not be able to put in as much effort in the next challange because my parents were pretty anoyed at me spending so much time on this one!

I'll still give it my best though... provided that it's something within my reach... which to be honest this wasn't either, I used atleast 20 commands I had never used before, atleast 5 of which I never knew existed for this challenge!

Happy, always happy!
jason p sage
19
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 19th May 2008 18:02
Congratulations JeffHuys!

Good work Everyone - I don't participate here - but I AM sure a fan!

jinzai
19
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 19th May 2008 18:14
@bergice : Yes, the XBox 360 controller can be made to vibrate using the function XInputSetState.
jeffhuys
20
Years of Service
User Offline
Joined: 24th May 2006
Location: No cheesy line here.
Posted: 19th May 2008 18:17 Edited at: 19th May 2008 18:18
Woohoo! My first time entering, my first win Thanks, bmaczero!
Quote: "I'll still give it my best though... provided that it's something within my reach... which to be honest this wasn't either, I used atleast 20 commands I had never used before, atleast 5 of which I never knew existed for this challenge!"

That means you learnt from it, not? And that's good

Well, I don't really know how to set a challenge, but I'll copy some things from the previous setters:

Challenge
Create a waterfall. This waterfall has to start at the top of a "wall" (or something like that) and stop at the ground. This can be achieved, for example, by using particles that collide.

Scoring
The scoring will be based on, just like the previous challenge, how believable the waterfall is and how many extras there are. (damping and splashing water at the bottom, rocks instead of a wall etc.)

Deadline
The deadline is one week. When there is trouble with the time, I will move it a little.

Try your best and best of all: Have fun

Jeff

PS:
Quote: "Congratulations JeffHuys!"

Thank you



You're the 'th to view this signature!

Login to post a reply

Server time is: 2026-07-07 20:13:39
Your offset time is: 2026-07-07 20:13:39