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
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 28th Oct 2005 02:16
I vote vote Kaiyodo! That is a SWEET clock! I love it. That would make a superb screensaver I think!!

Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 28th Oct 2005 02:29
Still 4 days to go though - plenty of time for your own entry Nick - and I'm eager to see where Rii's and Segan's entries are headed. And we might get something from CPU ... ? And where's that Tinkergirl got to? And Phaelax - I'll do the testing/debugging for you if you post your uncompiled attempts!

(Just fulfilling my roll as challenge setter with a little gentle encouragement!)

CPU
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Carlsbad, CA
Posted: 28th Oct 2005 04:37
Ouch... I'm debating if I'll even have a chance with Kaiyodo already having a totaly awsome entry... (By the way, if you want to make yours better, to fix the fadeing problem, make a little one pixel by one pixel bitmap of the color you want, put it into an image, and then texture your objects, that'll fix your fading bug, as far as I know that's the only real way to work around it... Good luck!)

But realy, I've been thinking about a lil mesh manipulation... I'll have to see if it pans out at all, but if it does... well I might just have a chance at Kaiyodo

CPU

[center]K-OS Battlefields
IS
///---///---///---UNDER CONSTRUCTION---\\\---\\\---\\\
[center]
Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 28th Oct 2005 11:44
*blush* Sorry, I've been working on some goblin AI.

That, and well - I know Kaiyodo. It's quite intimidating to see that code 'in the flesh' so to speak
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 28th Oct 2005 16:13
Ric & NT

Yes I did have a quick play around with that idea, but to me it stopped feeling like a clock.

A clock needs a sharp steady rhythm - you know, the tick, tock, tick, tock effect. Making the seconds cubes move all smoothly like that simply loses the whole 'time ticking away' effect.

So, I prefer the separation of the seconds cube movement.

TDK_Man

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 28th Oct 2005 16:31
Thats very true... Good point.

Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 28th Oct 2005 17:13
Fair enough - one man's tick is another man's tock.

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 28th Oct 2005 20:39
Quote: "Wow - thats a challenge... Compiler-less coding!! Good luck!"


i used to have to write pascal code using pen and paper for tests, so this shouldn't be too hard.

nobody made a binary clock yet? im disappointed with my fellow computer nerds.


Deadly Night Assassins
xCept
21
Years of Service
User Offline
Joined: 15th Dec 2002
Location:
Posted: 28th Oct 2005 21:15
These entries are frickin' amazing ! I was hoping I'd get the chance to make something but time got the best of me (and now I've got wedding-related events to attend this while weekend). If anyone would like to use this simple sub-routine to generate the classic digital characters, be my guest:



Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 29th Oct 2005 03:07
ok - my attempt.. Its a little lame compared to a lot of the entries here... but it took me 30 minutes



Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 29th Oct 2005 03:46 Edited at: 29th Oct 2005 03:50
Thought I'd have a go at using xCept's lcd images:



@Nick: Woah! That's weird - I took a look at your's just after posting mine and whadyaknow - they're almost the same - well, similar at least! Nice trail!

RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 29th Oct 2005 06:10
More Fun. Just getting silly now.




Open MMORPG: It's your game!
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 29th Oct 2005 17:14
You can get truly lost inside that clock!

Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 30th Oct 2005 19:32
Ok then people - no last minute entries/updates? If not, judging will commence within the next couple of hours.

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 30th Oct 2005 23:03
Go for it - I've no time for mine! :-(

Btw: I realised in my entry that I left Backdrop off.. I meant it to me on. I tried it in off mode with my pasting a semi transparency black image - but it looked crap so I put it back = clearly I didn't put it ALL back though!

Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 30th Oct 2005 23:13
Good luck, Ric I remember how tough it was last challenge.
Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 31st Oct 2005 00:23
aww it appears im too late

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 31st Oct 2005 00:31 Edited at: 31st Oct 2005 00:31
You could always quickly nip in before Ric decides. As I understand it - you have up until he posts a decision.

EDIT: Or she.....

Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 31st Oct 2005 00:32
I'm going to make an attempt, no chance i'll win but fun

Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 31st Oct 2005 00:39
Excellent - an entry 'against the clock' for a clock!

Sorry, I'll be over here pondering on why I'm not supposed to make jokes...
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 31st Oct 2005 00:46 Edited at: 31st Oct 2005 00:52
Talk about last minute! I'll give you until midnight uk time then I really must go to bed!

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 31st Oct 2005 00:58 Edited at: 31st Oct 2005 00:59
Err.. ten mins(1-2mins now!)

EDIT: Tinker - dont worry, it made me smile.. but then again, if you find someone that knows me well, they'll tell you I smile at all sorts of wierd crap. I'm quite happy to laught alone hehe

Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 31st Oct 2005 01:04
get time$ doesn't seem to get every second :S

Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 31st Oct 2005 01:04
Quote: "Err.. ten mins"


Yeah - once I'm in my jimjams it's only a matter of time before I'm unconscious. Sorry Neo - feel free to enter still, but hey - a man's gotta sleep!

So - judging time!

7 entries for this challenge (not including mine) - great to see!

Nick: I kind of liked it with the backdrop on - gave an 80's retro trail! Also tried it without the trail though. Like the way the numbers flip up and down.

TDK: Creative idea, using all of the digits and making them pop up. Shows potential, in that I can think of some possibilities for development - for example, I would have been interested to see the wave like motion I suggested, perhaps using a change in colour to give the 'ticking' effect. Then perhaps a ball rolling underneath the numbers at the right speed to cause the numbers to well up at the right time - hey, I'm getting carried away I know!

Segan: The alarm clock idea was good - and could actually be useful for sleepyheads like me!

RiiDii: Very creative - you really got into the inner workings of a clock, rather than just the display, which was right up my street! Very clever use of 3d mechanics to turn moving particles into a clock! I really liked the gears, and can already see some other uses for them. One thing I thought would have made it even better, would have been to link the cog speeds to the clock hands - but I realise that would be no small undertaking.

Dave: Simple but effective demonstration of converting the digital timer to an analogue display.

xCept: Not actually a clock, but some very nice digits! May come in handy in future challenges.

Kaiyodo: Watched this one for ages - definitely screensaver material. The flocking code clearly has many applications, and the code was so neat and well remarked, anyone who wants to use it should be able to glean a lot from your code. Quite similar to the spring physics I've used before.

And the winner is:




The runner up is:




Well done to everyone, and roll on the next challenge. Hope the winner is aware of his responsibilities?



Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 31st Oct 2005 01:08
Damn.. Well done you two!!

Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 31st Oct 2005 01:15
Ok im late, and it tells the time wrong and it's slow at it (depsite attempted optimisations (some of which were removed), here it is:



CPU
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Carlsbad, CA
Posted: 31st Oct 2005 01:40
Ouch, I thought I had a bit more time... oh well... I just hadn't gotten a chance to post it, but anyways, if you want to learn a bit about the vertex commands then this might be a good intro...

CPU



[center]K-OS Battlefields
IS
///---///---///---UNDER CONSTRUCTION---\\\---\\\---\\\
[center]
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 31st Oct 2005 02:48
Congrats to the winners!

But I have to ask RiiDii one think - mainly because I'm getting stupid in my old age...

I love the cogs and all, but if you take away the time printed in the top left corner, how do you read the time off the clock itself?

I ran the code in the last snippet you posted, so I think I've been looking at the right one.

TDK_Man

Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 31st Oct 2005 09:34
Well done Kaiyodo and RiiDii!

And TDK - you want to zoom out.
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 31st Oct 2005 09:36
TDK - did you try moving backwards (up and down). You can zoom out to see a clock with hands.

Kaiyodo
19
Years of Service
User Offline
Joined: 24th Aug 2005
Location: UK
Posted: 31st Oct 2005 11:33
Wow, I won something! Thanks for all of your comments, I wasn't expecting to win in the face of such ace competition (especially RiiDii and TDK's entries). I hope people can use bits of my code in other cool stuff, if I haven't abused the language too much I'm fairly new to DB, I normally work in Dark SDK and I always get the feeling I'm trying to bend the Basic code I write a little too much towards C++.

Anyway, I have been informed of my responsibilities, though coming up with challenges is a lot harder than I thought it would be! Anyway, after much thinking and discussion here's my challenge ...

Re-create the Star Wars Deathstar trench run.

I'm hoping eveyone is familiar with that scene, if not, you should be ashamed of yourselves No other rules apart from that (except for the 'no media' one of course). It can be 2D or 3D, from the Rebel or Imperial viewpoint, I'm sure you get the idea.

I'm going to make this a 2 week one, so the judging date will be the Sunday the 13th of November at midnight GMT. Let me know if there are any problems, I'm looking forward to playing the entries.

Kaiyodo.
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 31st Oct 2005 13:44
Interesting... So basically, you mean the "flying through a narrow alley" type demo?

Kaiyodo
19
Years of Service
User Offline
Joined: 24th Aug 2005
Location: UK
Posted: 31st Oct 2005 14:03
Yep, flying through the trench, perhaps avoiding some lasers, TIE Fighters and the like, maybe shooting some stuff too.
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 31st Oct 2005 14:44
Ah OK!

Thannks to all for putting me straight. I see what's gong on now lol!

TDK_Man

Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 31st Oct 2005 18:45
Aww man, i dont feel like coding this one

Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 31st Oct 2005 21:46
Just checked out the entry by CPU for the clock challenge - and it does deserve an honerable mention! If you haven't tried it, make sure you take a look (about 8 posts up) - it's extremely good. The numbers literally morph into each other through very clever manipulation of vertices. I'd be very interested to see what it would look like with solid polygons if you get around to that. Whether it would have won the challenge or not .... well, I'm really pleased I don't have to make that decision anymore - it would have been darn close! Great code CPU.

@Kaiyodo: Cool challenge. Is the emphasis on recreating the scene as closely as possible to the original, or is the starwars reference there to give us an idea of the general type of game/demo, with the freedom to deviate from it? Either way, I think I might end up recycling part of my STD code for this!

Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 31st Oct 2005 21:54
Um, STD?? Please expand on that abbreviation before I laugh too much
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 31st Oct 2005 22:07
space tech demo as I recall..

Kaiyodo
19
Years of Service
User Offline
Joined: 24th Aug 2005
Location: UK
Posted: 31st Oct 2005 22:21
Ric: Feel free to deviate, I don't want to limit people's creativity too much

I'm not sure I want to know the details of your STD though

Kaiyodo.
Philip
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 31st Oct 2005 23:35
How deviant are entrants allowed to get? Can I, for example, write a Star Wars trench run that involves running through a Canyon in Yosemite trying to dodge angry Rangers and eat jam sandwiches?

Cheer if you like bears! Cheer if you like jam sandwiches!
RiiDii: "I highly recommend Philip's vector tutorials"
P3.2ghz / 1 gig / GeForce FX 5900 128meg / WinXP home
Kaiyodo
19
Years of Service
User Offline
Joined: 24th Aug 2005
Location: UK
Posted: 1st Nov 2005 00:05
If you can destory the canyon by firing a picnic basket through a 2 metre exhaust port at the end then I'll let it pass
Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 1st Nov 2005 00:26
heh, good job on those entries for the last one!

i'm hypnotized by yours Kaiyodo! I'm setting that one to the screensaver for sure!!

"We make the worst games in the universe."

Segan
19
Years of Service
User Offline
Joined: 28th Aug 2005
Location: Canada
Posted: 1st Nov 2005 00:33
ooo this one looks like it should be fun... And I think I will have time to finish it this time! (brain starts ticking)
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 1st Nov 2005 22:27
wow - just checke CPU's clock entry... just.. wow!!!

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 1st Nov 2005 23:07
here is my entry so far, bit crappy. It does mess with your eyes though

I'm not exactly sure what you want from this challenge... a game? A demo?



Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 1st Nov 2005 23:38
Woah! Psychedelic!

Btw - post 2000 approaching - I really want that one!

Kaiyodo
19
Years of Service
User Offline
Joined: 24th Aug 2005
Location: UK
Posted: 1st Nov 2005 23:59
Certainly gave my eyes a workout, thanks Nicholas

I was thinking more along the lines of game than demo. In my head I was thinking of either having to avoid stuff coming at you, or having to shoot things out of the way. Not to say you can't do something completely different of course, as long as it's cool

Sorry if I didn't explain the challenge very well in the first place, I'm not used to setting challenges as you can probably guess.

Kaiyodo
Justin W
20
Years of Service
User Offline
Joined: 28th Apr 2004
Location: Vancouver, Canada
Posted: 2nd Nov 2005 01:43
Well this is my first time posting in this thread (and one of my few posts in general). I am gonna start making a habbit of at least taking a shot at making these combo's as I think it will be a great way for me to practice in a variety of differant area's but I had a question. The rules say no media so im guessing sticking together 3d objects inside of DBpro is ok as long as nothing is required to be downloaded? And also how do you post code snippets into your posts? Thanks anyone who answears. Now I gonna go get started with this.
CPU
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Carlsbad, CA
Posted: 2nd Nov 2005 05:01 Edited at: 2nd Nov 2005 05:04
Marnn - Anything you can do nativly in darkbasic Pro is allowed, as long as theres nothing to download with your code and as long as it doesn't require any external dll's or libraries or anything(except DBPro patches) your fine.

to do code snipits you need to format your message like:
[[/i]code[i]]

rem all the cool codz go here

sync on
sync rate 0

do
center text screen width()/2, screen height()/d, "Da coolest DBPro program ever!!!!"
sync
loop

[[/i]/code[i]]

and then your code will appear in a code box like this:



Good luck!

CPU

[center]K-OS Battlefields
IS
///---///---///---UNDER CONSTRUCTION---\\\---\\\---\\\
[center]
CPU
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Carlsbad, CA
Posted: 2nd Nov 2005 05:03 Edited at: 2nd Nov 2005 05:05
! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! POST 2000 ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !



(sorry couldn't resist )

CPU

[center]K-OS Battlefields
IS
///---///---///---UNDER CONSTRUCTION---\\\---\\\---\\\
[center]

Login to post a reply

Server time is: 2024-11-23 20:30:13
Your offset time is: 2024-11-23 20:30:13