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: 21st Jul 2009 23:21
oneD Racer

Track 01


Track 02


Track 03 (Endurance)


If there's only one perceived dimension you couldn't overtake!

TGC Forum - converting error messages into sarcasm since 2002.
That1Smart Guy
16
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 21st Jul 2009 23:23
and the discussion continues......

CAN WE JUST DROP IT!?!

Brick Break
User Banned
Posted: 21st Jul 2009 23:41
Quote: "If there's only one perceived dimension you couldn't overtake!"

Sure you could. Just tap the spacebar faster!

WINNER list:
Latch, Lee Bamber, TDK, TheComet
Thanks for the help!
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 22nd Jul 2009 00:47
can memblocks be used for this challenge?

Enjoy your day.
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 22nd Jul 2009 00:51
Quote: "Sure you could. Just tap the spacebar faster!"


But if you want to pass someone, you would have to go around them (even if it looks like you just slide by them). This would be a second dimension.

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Brick Break
User Banned
Posted: 22nd Jul 2009 00:59
Nope. The sprites are only moving on the one axis, so you overlap or go through them.

WINNER list:
Latch, Lee Bamber, TDK, TheComet
Thanks for the help!
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 22nd Jul 2009 01:01 Edited at: 22nd Jul 2009 01:02
For fun I wrote a small 1D racing game, although theoretically it isn't 1D, but check it out. It is also a good reaction tester for your typing skills:




Quote: "
can memblocks be used for this challenge?"


Uh oh... Are you going to do something amazing that pushes DBC to it's limits? They were allowed in the last challenge... What does everyone else say? I think it should be alright...

Quote: "But if you want to pass someone, you would have to go around them (even if it looks like you just slide by them). This would be a second dimension."


You can be perfectly on them, although in 1D there is no other dimension then the axis they are traveling on, so you can't really speak of the other dimensions because they don't exist.

TheComet


Make the path of your enemies easier with Waypoint Pro!
Brick Break
User Banned
Posted: 22nd Jul 2009 01:09
I already replied to him. You stole my thunder.

WINNER list:
Latch, Lee Bamber, TDK, TheComet
Thanks for the help!
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 22nd Jul 2009 01:09
Quote: "Uh oh... Are you going to do something amazing that pushes DBC to it's limits"

Ha ha ha! Nothing so grandiose. I was just thinking of making a wheel or something - if I enter the challenge that is.

Enjoy your day.
That1Smart Guy
16
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 22nd Jul 2009 01:15
i may or may not enter this one, im trying to get some work done on the DarkNOOBS project right now

TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 22nd Jul 2009 01:30
Quote: "I already replied to him. You stole my thunder."


You are right. You somehow slipped in just before I posted...

TheComet


Make the path of your enemies easier with Waypoint Pro!
NanoGamez guy
18
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 22nd Jul 2009 02:23
@Comet
Cool game, technically it's 2D since there's time as well (that means that all 2D games are technically 3D and all 3D games are technically 4D).

I don't see a problem in allowing memblocks, as long as everyone has the enhanced version of DB.

My current wallpaper:
"I trust you have prepared new insults for today" - Spock, Star Trek
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 24th Jul 2009 16:25
To clarify:

Originally, DBC did not include the enhanced commands - I had to pay extra for them. So some users had DB with memblocks for example, and some did not.

When this challenge thread was started the enhanced commands were not allowed simply so that everyone could participate on a level playing field.

Now, the enhanced commands have been integrated into DB and are not an optional extra.

A while back, a rule change was approved by the people taking part that enhanced commands could be used (for example for a challenge specifically to use memblocks) only if everyone taking part agreed beforehand. If just one participant didn't have the enhanced commands then they couldn't be used.

Personally, I would like to see the 'no enhanced commands' rule stay - even though most if not all of us have them as I think it adds to the challenge.

There's nothing stopping someone setting a specific enhanced command challenge in the future though - provided everyone else agrees.

TDK

pictionaryjr
16
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 25th Jul 2009 04:51
With all this talk about 1d, maybe the next challenge should be a 1d game.
jason p sage
18
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 25th Jul 2009 04:57
A Zero "D" game would be much more 0d ... "Odd" ...

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 25th Jul 2009 05:17
To get back on topic...

It's a while since I've been able to take part in the challenges so it's like starting fresh and this challenge sounds like fun.

I started today and I've got a fair bit done already. I have my world done and decided to create the vehicles - which are taking a little longer than I expected.

My aim is to have the vehicles rotate on a platform and let the player select the one they want to race with and so far I have a car and an ice-cream van:




The above two vehicles look a bit better when you see them rotating on that platform.

The vehicles are created with a function, so you should also be able to choose what colour you want the bodywork.

I've not started the track, controls or AI yet so all the work so far may all be for nothing - but it's fun anyway.

TDK

jason p sage
18
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 25th Jul 2009 05:24
those look really cool TDK!

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size
pictionaryjr
16
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 25th Jul 2009 05:55
one word..... HOW
That1Smart Guy
16
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 25th Jul 2009 06:23
how did you get the reflective base?

i know how to do that on pro but how in DBC?

pictionaryjr
16
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 25th Jul 2009 07:12
took the model and put another one upside down on the bottom. The platform it's standing on, I believe is a scaled sphere that is ghosted so you can see the other car on the bottom.
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 25th Jul 2009 07:43
Close - it's a cylinder, but you are right about everything else.

TDK

pictionaryjr
16
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 25th Jul 2009 07:50
haha meant cylinder lol just wasn't thinking. My only question is how did you create the car.
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 25th Jul 2009 10:55 Edited at: 25th Jul 2009 10:57
Very nice, TDK! I'm glad you're joining in again!

@pictionaryjr

I'm guessing, but he probably used data statements:



then read everything in:



And of course he would have created a core object and added all created objects to the core object as limbs.

This is just a guess of mine, could be totally wrong.

TheComet


Make the path of your enemies easier with Waypoint Pro!
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 25th Jul 2009 17:42
Yes - very rough 'n ready.

All vehicles are built on the same chassis and have many common parts - headlights/wheels etc (but don't tell anyone...

You call the function and say what object number and vehicle type you want as well as the colour. It is limiting, but when the function is finished, it could maybe be quite useful for any future media-less projects you may have.

Obviously you can 'steal' it from my entry when I post a version.

Any suggestions for other vehicles - remembering that they all have a common base?...

TDK

TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 25th Jul 2009 17:46
Quote: "Any suggestions for other vehicles - remembering that they all have a common base?..."


How about a van? A cement mixer? A truck? Or something really weird like a duck on wheels? May take some extra programming though.

TheComet


Make the path of your enemies easier with Waypoint Pro!
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 25th Jul 2009 22:20
Quote: "Quote: "Any suggestions for other vehicles - remembering that they all have a common base?...""


How about a jeep/hummer?

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
jason p sage
18
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 25th Jul 2009 22:46
@TDK - how about a convertible - not fancy - just no roof.

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 26th Jul 2009 01:41
Thanks for the ideas. After a bit of experimenting, the only one not possible is the duck. I'd liked to have done that one, but for a duck you can't do it with primitives.

I'm only using Glue Object To Limb and then using Offset Limb to position them. Oddly, you don't seem able to scale a primitive (which you have to for the duck's body) as well as use glue and offset limb.

Another annoyance is that if you scale the original object you are gluing everything to, then all the glued parts take on the same scaling factor. Obvious due to the object's hierarchy I know, but a pain never-the-less!

If anyone knows a work-around, I'd be glad to know about it.

All you need to do to see the problem is create a cube then glue a 'squashed' (scaled) sphere to it. Finally, offset the limb to place it above the cube. It doesn't seem to be possible.



In the above code snippet, if you move the Scale Object line to after Glue Object, the scaling does work but then the Limb Offset fails.

TDK

TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 26th Jul 2009 01:54
How about this (based on your code):



It is much more efficient, faster and easier to use. If you scale object 1, it would be like scaling a normal object(no limb shifting).

TheComet


Make the path of your enemies easier with Waypoint Pro!
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 26th Jul 2009 02:16
The only down side is the amount of code required replacing what I have done already.

Your code is just for just a cube and a sphere - I dread the thought of re-coding my existing vehicles - each with up to 30 primitives!

But I'll use your method for the duck vehicle... if no-one can figure out how to use scale and glue/offset.

Cheers...

TDK

BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 26th Jul 2009 02:45
Having not tried it, this is just an idea:

Take the offset distances and divide them by the current size (perhaps scale value). Then scale the object and reposition them by the ratio you just set up multiplied by the new scale value.

I would try it now myself, but I have to leave for work like 5 minutes ago.

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 26th Jul 2009 05:53 Edited at: 28th Jul 2009 00:34
BN2:

Don't worry about it. For the duck I'll use the method TheComet suggested - which seems to work fine.

What I have realised is that I have to take back what I said earlier with regards to the enhanced commands ban.

I've only just realised that the Set Ambient Light command has been removed from DBC and I've been forced to use the new Set Object light commands.

So, I guess that it's time to get rid of the 'no enhanced commands' rule.

TDK

Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 29th Jul 2009 08:44 Edited at: 29th Jul 2009 08:53
@Jason p sage
Quote: "A Zero "D" game would be much more 0d ... "Odd" ... "

How you sneaked that one by, I'll never know!

@TDK
Those look like great models! I hope you finish your game and enter.

Quote: "I've only just realised that the Set Ambient Light command has been removed from DBC and I've been forced to use the new Set Object light commands."

I think it still exists. I use for matrices. When you pair it with color ambient light 0 (or similarly dark) the effect is much more noticable in general in the overall scene.

I think I understand what you mean by not using the enhanced commands in challenges. The use of the enhanced commands may not be as intuitive or easy to use as the general command set and might exclude some users from wanting to participate.

Enjoy your day.
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 1st Aug 2009 21:31
I know, I know, I double posted. But this thread is falling down down down.

This could be a fun challenge, and it's wide open (a racing game of any type : 2d, 3d, etc. at least 1 computer opponent)

Calling all coders! give this one a try. Take a look at the old racing challenge for inspiration and see what some creative people came up with:

previous DBC challenges racing

Enjoy your day.
That1Smart Guy
16
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 1st Aug 2009 22:03
i dont hink its the challenge thats hurting enthusiasm, its the fact the the winner (TDK) has already entered

TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 2nd Aug 2009 00:34
This challenge is over in less than 4 days, so I am going to make a special event for anyone new to the challenges. Anyone that is new to the forums or to the challenges and is considered a "noob" can ignore the following points:

-At least 1 CP (Computer player) with AI
-At least 1 power-up (bombs, boosts, invincibility, bananas...)

All you have to do is make one track and a player. Join in now! And don't feel disheartened that TDK is making a blazingly good entry, because he may forget to enter! (Just maybe )


How's everyone else doing?

TheComet


Make the path of your enemies easier with Waypoint Pro!
NanoGamez guy
18
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 2nd Aug 2009 14:17
@TDK
Those models look great! Man I wish I could do 3D like that.

@Comet
I've been working on a entry with a procedurally generated city and track with procedurally generated cars, unfortunately I've been away for a few days and so haven't been able to work on it much. I doubt that I'll finish it before the deadline, but I'll see what I can do.

My current wallpaper:
"I trust you have prepared new insults for today" - Spock, Star Trek
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 2nd Aug 2009 14:49
@ NanoGamez guy

You can always request the deadline to be extended, but only if you really think you can manage it in that time...


TheComet


Make the path of your enemies easier with Waypoint Pro!
That1Smart Guy
16
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 2nd Aug 2009 17:50
i would like to request an extension either to wednesday or to thursday

I am leaving today for a leadership camp and will not return until late tuesday

Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 2nd Aug 2009 21:47
@TheComet
An extension to Friday or Saturday would give everyone about a week to finish up or enter.

Enjoy your day.
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 2nd Aug 2009 22:14 Edited at: 2nd Aug 2009 22:14
Ok then:


_-°Important Information°-_


-Deadline has been extended : Deadline Friday 7. August 2009 CET


Challenge post edited with above offer and updated deadline. Enjoy your programming!


TheComet


Make the path of your enemies easier with Waypoint Pro!
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 2nd Aug 2009 23:05 Edited at: 2nd Aug 2009 23:11
Have to agree with that. I've decided that I've been far too ambitious and too much of mine isn't going to get finished - even with an extra four days...

To make matters worse, here we are in the middle of one of the worst calimas we've had in years - it's just too damn hot to work in front of a computer.

To give you an idea of just how hot it is, the other night when I went out to play darts, it was over 40 degrees outside - at 10pm at night.

I've had a shower today for the first time in three days because even the cold water has been too hot to stand under!

It is starting to cool down a little now though. As I write this, it's just after 9pm and it's cooled to around 37 degrees...

TDK

TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 2nd Aug 2009 23:36 Edited at: 2nd Aug 2009 23:36
@ TDK

That sounds intense! Do you have a basement in your house? One that is under the ground? It is always quite cold there, just set up your computer there... But if you say the cold water is hot, maybe it isn't that much cooler anyway...

I was really looking forward for your entry... Just out if interest, in case you don't make it to the deadline, could you finish it some day and post it here? That would be really awesome! Or make a program announcement out of it... Wasn't there a media-less competition?


TheComet


Make the path of your enemies easier with Waypoint Pro!
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 2nd Aug 2009 23:52 Edited at: 3rd Aug 2009 05:12
I'm going to post it whether I finish it or not. There might be something in it of use to others.

I also need to get a bit of feedback on the speed. I'd forgotten I was using a quad core 2.6G machine at home - until I took it into work to try it on my machine there. Ssssllllllooooowwwwww!...

If everyone finds it sluggish I'll have to do a bit of work on it.

Might get a half finished version uploaded tonight with any luck.

[Edit] Here's a very rough, un-optimized version of what I have so far. Please note that it is ONLY a demo of the vehicle selection screen and nothing else works.

Please let me know if there are any glitches for you, or it's so slow it's unusable. I think I can safely assume that it probably requires a 'half-decent' machine at least...



TDK

Ooska
20
Years of Service
User Offline
Joined: 29th Aug 2004
Location:
Posted: 3rd Aug 2009 20:15
Hello TGC. Havnt posted in years. I saw this thread and had to refer you to my noobish tomfoolery back in 2004. Remember this TDK? lol
http://forum.thegamecreators.com/?m=forum_view&t=59658&b=10


For some reason it crashes at the boss stage on my comp...?

Man looking back at this stuff is so nostalgic. Read my plans for a follow up game in that thread. LOL! I was an ambitious lil noob!

Read Ender's Game. And all its sequels.
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 4th Aug 2009 00:12
I actually had quite a lot of fun playing that! It took me about 10 tries before I finally defeated the boss! But I don't think this in the boundaries of a racing game. What does everyone else think?


TheComet


Make the path of your enemies easier with Waypoint Pro!
t10dimensional
16
Years of Service
User Offline
Joined: 22nd Mar 2009
Location: Code Cave, USA
Posted: 4th Aug 2009 00:55
Thanks comet for noobifying the challenge,I'll see if I can get somthing coded.

I've have'nt don anything in 3D yet,(I'm still in the 2D stage and I prefer 2D too)so this might be my first.


TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 4th Aug 2009 01:17
@ razerx

Joining in is all that matters! Graphics also isn't everything. It could be that your game-play is much more fun than anyone else. You could win then.


TheComet


Make the path of your enemies easier with Waypoint Pro!
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 5th Aug 2009 02:17
Is anyone else taking part in this challenge?

I've had no feedback from the snippet I posted and if that's because no-one else is taking part, it's pointless me going any further.

TDK

Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 5th Aug 2009 03:12
I'll participate. Though all I have made at the moment is sort of a track!

I tried your snippet and could not get past the menu - except for select car. Any other choice and the program hung up. I thought maybe it was just going slow, so I left the room for a while and came back, and still nothing happend after clicking on any of the menu choices.

Enjoy your day.

Login to post a reply

Server time is: 2025-08-08 11:53:17
Your offset time is: 2025-08-08 11:53:17