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
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 29th Mar 2010 06:27 Edited at: 28th Apr 2010 19:05
Sinani201. I really hope you are not talking about the title screen. It is supposed to do that! ROFL. In-game, I have never seen a flicker at all, so I assume that is what you are talking about.

Here is the final version:

[i]

I realize that there is room to make things more efficient, but I don't have time to go back and rework it.
Sinani201
17
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 29th Mar 2010 21:40
LBFN:
Obese87 said something about player text names flickering in one of the programs. I put out the small tip just in case the problem was legitimate. I don't think he was referring to your program.
Libervurto
17
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 30th Mar 2010 04:37
@LBFN
It was in your program. Since I ran it I noticed I was using the old DB.exe (1.13) so maybe that was the problem, I haven't tried it since though.

"With games, we create these elaborate worlds in our minds, and the computer is there to do the bookkeeping." - Will Wright
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 30th Mar 2010 15:50 Edited at: 28th Apr 2010 19:06
I am using v 1.14E. I have never seen a flickering of the text ever.

I made a couple of edits. Perhaps this version will work better.

Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 2nd Apr 2010 02:35
Nice job LBFN.

I think LBFN is the winner of this challenge.

Enjoy your day.
Libervurto
17
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 2nd Apr 2010 03:38
Well done LBFN
Sorry I didn't get mine finished, I've been away for the week.

Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 2nd Apr 2010 04:17
WoW. everyone already Declared LBFN The winner.............Since my comp has been DB-proofed by my dad, I'd been using the school comp to perpare my glorius(cant spell...) return. but its no where near finished(we get 30 mins a day, i worked for 3,4 days....) and so i declare defeat myself, already. LOL.

(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )
TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 2nd Apr 2010 13:53 Edited at: 2nd Apr 2010 13:53
How long until this finishes?

EDIT : Oh, 31st of March... Oh well...

LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 3rd Apr 2010 16:47 Edited at: 28th Apr 2010 19:06
Thanks for the nice comments everyone!

So, I take it that I need to set another challenge. I realize it is not late October, but I am thinking about a challenge that tasks you to use whatever means at your disposal to make something scary. The camera/player-type object has to move from point A to point B. You decide how long or short that trek will be and what is encountered along the way. I am thinking 3D on this one, but I'm sure something could be done in 2D or even 2.5D.


CHALLENGE: Create a path between two distinct points, making the journey as scary / eerie as you can. No blood is to be used. You must create scariness without blood.

Judging priorities:
1. Scariness
2. Creativity
3. Surprise factor
4. Fluidity (how smooth are the transitions along the way)

This isn't intended to be a full-blown game; you don't need to shoot anything or have anything shoot at you (although if you wanted to put that in, it's okay).

DEADLINE: 24 April 2010 (three weeks) midnight server time


Good luck to all.

Attachments

Login to view attachments
Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 3rd Apr 2010 17:14 Edited at: 3rd Apr 2010 18:55
Quote: "No blood is to be used."


D***!!! I mean, Darn......... as i read it the first thought that came to my mind was blood......WoW, this might actually be quite challangeing. Will give it a crack to see if the ease of lua has effected my Db programming.........

EDIT}}}}}}}}}}}}}}}}}}
The beginings of a masterpeice:



(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )
Ashingda 27
16
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 4th Apr 2010 09:54
I'm not sure if you wanted it like a movie or a playable game so I just did what ever came to mind.

Entry:
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 4th Apr 2010 20:23 Edited at: 28th Apr 2010 19:06
Wow, two entries (albeit one is a masterpiece in progress) already! And we still have almost three weeks left.

Quote: "I'm not sure if you wanted it like a movie or a playable game so I just did what ever came to mind."

It seemed like that always asking for a complete game is frowned upon, as usually everyone is so busy it is hard to get participants. So, it doesn't have to be a complete game, but it's fine that it is. BTW, yours is like impossible to me.

EDIT: Wow, DBC coding contests are not what they used to be......too bad, they used to be a lot of fun.
Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 23rd Apr 2010 02:30
Quote: "EDIT: Wow, DBC coding contests are not what they used to be......too bad, they used to be a lot of fun."

Yup. I agree.

Anyway, here is something I thought was scary as a kid - being on a giant swing.

So here it is: A camera on an eliptical pendelum. Not as scary as a program as there is no real sense of motion or height, but it gets the idea across:



Enjoy your day.
HippyJonYo
14
Years of Service
User Offline
Joined: 20th Apr 2010
Location: Somewhere
Posted: 23rd Apr 2010 04:58
Hi everyone!
I'm kind of a newb when it comes to DBC, but I want to try some of these.
I might have something for this one, but I got a little sidetracked this week and only got part of it done.
I'll definately try the next one!

@Latch
I thought that was pretty cool. Kind of like the thrill of that first big drop on a roller coaster.

That was an untactical decision.
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 23rd Apr 2010 19:46 Edited at: 28th Apr 2010 19:06
Latch: nice entry, my stomach is turning One thing, the challenge was to go from point A to point B. I guess if you consider the bottom point A and the top point B, it might work .


DD: still waiting on the finished masterpiece. We only have a few hours left.

HippyJonYo:
Welcome to the forum. Looking forward to seeing what you can do with DBC.
Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 24th Apr 2010 01:10
@HippyJonYo
Quote: "I thought that was pretty cool. Kind of like the thrill of that first big drop on a roller coaster."

Thanks! Roller coaster... hmmm now there's an idea...

@LBFN
L
Quote: "atch: nice entry, my stomach is turning One thing, the challenge was to go from point A to point B. I guess if you consider the bottom point A and the top point B, it might work ."


That was the intention: Top: point A Bottom: point B

Though now that the roller coaster idea has been mentioned, I can see more potential. Too bad matices can't be rotated - that would make a roller coaster track a little easier.

Quote: "24 April 2010 (three weeks) midnight server time"

In these challenges, isn't this usually taken as the morning of the next day? Midnight of the 24th = 00:00 of the 25th ?

Enjoy your day.
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 25th Apr 2010 21:21
Quote: "In these challenges, isn't this usually taken as the morning of the next day? Midnight of the 24th = 00:00 of the 25th ?
"


Alright, works for me. The 'make something scary from point A to point B' challenge is over:

Runner up:


Winner:



Congrats to you both!

Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 26th Apr 2010 12:08
Thanks!

Well, I wonder if there will be any entries no matter what I post. At any rate, here we go...

Make a Water Effect

Makes some kind of demonstration, 2d or 3d that gives the impression of water. It can be a texture if you like, it can be a matrix waving or rippling. It can be a container filling up. It can be a refracted view of a pencil in a glass of water. It could be rain. It could be ice.

Just make something that is readily identifiable as water.


We'll give this one 2 weeks - May 8th midnight GMT - Saturday Night/Sunday Morning

Enjoy your day.
HippyJonYo
14
Years of Service
User Offline
Joined: 20th Apr 2010
Location: Somewhere
Posted: 26th Apr 2010 15:23
Hmm...a very broad challenge. I will definitely put in an entry for this one.

That was an untactical decision.
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 26th Apr 2010 17:43 Edited at: 28th Apr 2010 19:05
Nice challenge Latch. I have some ideas that might work. I should be able to get in on this one.

EDIT: The effect I wanted to create was easier than I thought to make. Here it is:



You can use the arrow keys to move out amongst the waves.
Ashingda 27
16
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 26th Apr 2010 19:36
This is not exactly water but I thought it looked cool.
HippyJonYo
14
Years of Service
User Offline
Joined: 20th Apr 2010
Location: Somewhere
Posted: 27th Apr 2010 01:19
Cool programs!

I've got one partly done, except that there are supposed to be waves, but there aren't any.
Hopefully I can fix it quickly.

That was an untactical decision.
Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 27th Apr 2010 23:35
@HippyJonYo
If you feel like you're having trouble or not quite finished, post it anyway. Usually other's will jump in to help out or make suggestions. Even though this is billed as a competition, it's really about learning and trying out different programming tasks.

@LBFN
I like it. Started to get a little sea-sick

@Ashingda
Interesting effect. A nice demonstration of image animation.

And here's a slight variation/optimization - removed floats and eliminated a couple conditional tests - though you may have wanted the float values to control the speed:



Enjoy your day.
Ashingda 27
16
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 27th Apr 2010 23:45
Ahh I always wondered how to shorten that up, thanks Latch
Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 29th Apr 2010 23:50
Common everybody. Let's get some more entries.

Enjoy your day.
HippyJonYo
14
Years of Service
User Offline
Joined: 20th Apr 2010
Location: Somewhere
Posted: 30th Apr 2010 05:16
Ok, so I've played around with my very small program, and I finally got it to work. (although it was very unrealistic)

So I started switching some numbers around for more realism and POW!, it fails it runtime. It claims that the matrix in the set matrix height command doesn't exist. Help please?

Program:


That was an untactical decision.
pictionaryjr
15
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 30th Apr 2010 05:47
I have a couple. I think I may have used some previously but oh well. Worth entering them. Some need to be fixed anyways.

ENTRY 1:



ENTRY 2:



ENTRY 3:



Ashingda 27
16
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 30th Apr 2010 06:00 Edited at: 1st May 2010 17:18
Here is another, this one I found to be quite fun to make! Use arrow keys to move.

You can hop out of the water if you swim fast enough.

Entry 2


pictionaryjr
15
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 30th Apr 2010 07:36
that's really impressive. it took me a moment to figure out if it was 2d or 3d cause the tail of the fish looked like it had lighting. well done!

Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 2nd May 2010 19:03
Did we have a challenge like this already? I remember 2 of pictionaryjr's entrys (which are pretty cool by the way!). I think it was a physics water simulation or something - so I guess this challenge is slightly different.

At any rate, some pretty cool entries people!

I like the fish one. Some good 2d stuff goin' on there Ashingda.

@HippyJonYo
Quote: "So I started switching some numbers around for more realism and POW!, it fails it runtime. It claims that the matrix in the set matrix height command doesn't exist. Help please?"


There is a limit to the size of a matrix in DBC. I believe it is 10,000 triangles. 1 matrix grid is 2 triangles. So if you want a matrix that has the same number of x and z tiles, the max it can be is 70x70 = 4900 grids squares = 9800 trangles.

Here's your program where I changed the number of tiles from 100,100 to 70,70:



It's pretty nice! Looks like a tidal wave coming in. Good work for your first challenge!

So far in this challenge we have a few pretty interesting entries. Anybody else got something up their sleeve they want to try? The challenge is to create some kind of display, demo, program that can be identified as water. Any kind of water effect that can be identified as water. Even ice.

Enjoy your day.
HippyJonYo
14
Years of Service
User Offline
Joined: 20th Apr 2010
Location: Somewhere
Posted: 2nd May 2010 21:00
@Latch
Thanks! I did not know that matrices were limited like that.

@pictionaryjr
Those were pretty cool. I like the first one the best.

@Ashingda
That fish was awesome! It looked really 3D!

I have another 2D effect that I want to try, so I should have another entry.

That was an untactical decision.
Ashingda 27
16
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 3rd May 2010 04:59 Edited at: 3rd May 2010 05:01
@HippyJonYo
Wow yours actually looked a bit scary. That first wave took me by surprise.

@pictionaryjr
I thought some of yours was kinda cute lol.

TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 4th May 2010 23:52
Well, this took quite a while to piece together, but here it is! I big thanks to the code base for helping me out with the Gaussian function.



TheComet

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 6th May 2010 01:02
Whats the deadline? I'd like to try this one


"Any sufficiently advanced technology is indistinguishable from magic" ~ Arthur C. Clarke
Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 6th May 2010 04:27 Edited at: 6th May 2010 05:51
@TheComet
Nice! I played around with it a bit for fun. I changed some of the lighting, the texture, and put in real-time normal calculation so the waves would show shadows. That let me change the matrix to solid instead of the grid and eliminate the plane underneath that holds the texture.



@Phaelax
Saturday, may 8 midnight GMT or Sunday morning.

Enjoy your day.

Attachments

Login to view attachments
pictionaryjr
15
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 6th May 2010 05:51 Edited at: 6th May 2010 05:55
edit: nvm i see now. i didn't think to look at the download spot lol

@thecomet
good entry. liked the objects and how you could position the ball over where you wanted the wave to begin

Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 6th May 2010 05:54
Attached to the post. I edited it a few times while posting so the timing when you looked might have interfered with you seeing the attachment.

Enjoy your day.
TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 6th May 2010 22:24
@Latch

Aww, you didn't post the code

Anyway, that was exactly the effect I wanted to achieve, I'm glad you managed to get it working. I'll now try and do what you did.

TheComet

Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 6th May 2010 23:14
Quote: "Aww, you didn't post the code "

I almost did, then I thought you or someone else might want to change your original entry and get the points for it.

Enjoy your day.
Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 9th May 2010 00:52
There's about an hour+ time left, so finish up any additional entries! Looks like there's quite a few this time around so far.

Enjoy your day.
Link102
19
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 9th May 2010 01:44 Edited at: 9th May 2010 01:45
it's not near finished but I thought I'd post it anyway.



HippyJonYo
14
Years of Service
User Offline
Joined: 20th Apr 2010
Location: Somewhere
Posted: 9th May 2010 07:40
@TheComet
Nice. I like the wave generating ability. It's pretty good.

@Link102
I find it impressive that you did that in such a small amount of code.

I never finished my other program because of school stuff. It was going to be a rain effect.

That was an untactical decision.
Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 9th May 2010 14:52 Edited at: 9th May 2010 15:42
Wow! There are quite a few entries for this one! That's great! And so many of them are done well with small amounts of code. I hate having to pick one as the challenge winner.

LBFN - Irregular ocean like waves matrix


Ashingda27 - 2d tiled waves - cheese grater?


Ashingda27 - Jumping Fish


HippyJonYo Tidal Wave - breaking waves


pictionaryjr - Sea Floor


pictionaryjr - Pouring stream?


pictionaryjr - Bobbing buoys


TheComet - Ripple effect in an enclosed area


Link102 - Matrix wave effect


Well, it's been a difficult decision. But I have to decide:

First Runner up:


And the winner is:


Enjoy your day.
Ashingda 27
16
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 11th May 2010 14:52
@TheComet
Congrats

This one was a lot of fun for some reason.

TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 11th May 2010 19:16
Quote: "You mention using code from the code base. Since I don't
know the exact code, I'll assume you changed it enough and aren't
copying it verbatim."


Oh whoops, did I put it in front? I assure you it was coincidence... What I copied from the code base was part of the maths for calculating the movement. I'm not sure if that was allowed or not... Is it?

Anyway...



Challenge

A Toy Simulation Program


Description

Make a program to simulate a toy you remember in your childhood. This can be a ball rolling machine, one of those grids with pins and you push your face into it, action figures fighting each other... Whatever comes to mind

Deadline

Two weeks should be enough, so:

26. May 2010 24:00 EST


Have fun coding!


TheComet

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 12th May 2010 02:14
Not having internet at home makes it hard to research problems when programming, I never got mine finished but here it is anyway incase anyone is curious. Suppose to make ripple effects (you can make multiple ripples and they'll collide). Never got to the point of manipulating the ripples on an image, plus there seemed to be a bug where I can't place a ripple over an area that's already been affected.

Oh, and I might have written this in DBP so I dunno how it'll run.



Lastly, I sorta let my dbchallenge domain get expired but the site is still active at http://zimnox.com/dbcc


"Any sufficiently advanced technology is indistinguishable from magic" ~ Arthur C. Clarke
TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 17th May 2010 20:54
Well, almost a week has past, how's everyone doing?

TheComet

Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 18th May 2010 18:07
I may not have time for much right now. But here's an idea in the line of this challenge if anyone has a way to do it:

A paddle ball game. A ball on the end of an elastic string or rubber band attached to a paddle. I'm not sure how the rubber band physics would be done, but I would be curious to see if anyone could come up with something. 2d would probably be the way to go for this, unless someone is super ambitious.

Enjoy your day.
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 19th May 2010 00:04
Latch, check out the "Rope" demo in my codebase.

http://zimnox.com/dbcc/index.php?page=codebase&cat=1

You may also want to check out spring physics for the elasticity, which would be implemented in 3D much the same way as 2D. It's just all vectors. I had a spring demo somewhere, thought it was a dbc challenge, must've been for dbp years ago. The trick would be getting the gravity of the string in 3D to work like in the demo.


"Any sufficiently advanced technology is indistinguishable from magic" ~ Arthur C. Clarke
Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 25th May 2010 17:09
@Phaelax
I looked at your example and it's pretty cool! I never could wrap my brain around spring physics though.

Enjoy your day.

Login to post a reply

Server time is: 2024-04-24 22:13:59
Your offset time is: 2024-04-24 22:13:59