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
enderleit
17
Years of Service
User Offline
Joined: 30th May 2007
Location: Denmark
Posted: 15th Aug 2009 23:17
Here's an update:

- Asteroids added.
With basic score count, and taking damage from asteroids.

Coming up:
- Shooting and destroying asteroids.
- Explosions
- Powerups for the weapon and for getting health back.

Weapon not added yet... (just so you don't wonder how to shoot



- enderleit
[href]www.eleit.dk[/href]
Aurum Knight
16
Years of Service
User Offline
Joined: 15th Jul 2008
Location: the suburbs of nowhere
Posted: 18th Aug 2009 00:29
I totally forgot about this
Caleb7
16
Years of Service
User Offline
Joined: 29th Aug 2008
Location:
Posted: 18th Aug 2009 07:57
The rules say that I may not extend the date in the last twenty four hours. Even if I could, I would only be able to extend it one day?! Ric!!!! Help!!! Where are you?! . I think I should extend the challenge date a week or two, if thats all right. What do I do?

Randomnosity is a special influence upon man kind allowing one to think outside the usual bouderies and into a fantastic world created by oneself. Elephants don't cut it
Monk
16
Years of Service
User Offline
Joined: 25th Sep 2008
Location: Standing in the snow =D
Posted: 18th Aug 2009 16:36
Even if you did extend it a week or two, people would just forget about it again. You're best extending it one day, or not at all. The best thing would be to get a new challenge going.

Monk

I like work. It fascinates me. I sit and look at it for hours.
Unstable data
17
Years of Service
User Offline
Joined: 12th Jan 2007
Location: Texas Panhandle
Posted: 18th Aug 2009 19:06 Edited at: 18th Aug 2009 19:07
i agree with monk, my computer crashed and I had to redo it and re-install so i lost all my buggy code and lousy graphics. But oh well my computer is doomed to crash at least once a month. I would have to start all over and i am not willing to do that.
Caleb7
16
Years of Service
User Offline
Joined: 29th Aug 2008
Location:
Posted: 19th Aug 2009 01:55 Edited at: 19th Aug 2009 01:57
What about enderleit? He already posted his code in progress. Does enderleit win?

Randomnosity is a special influence upon man kind allowing one to think outside the usual bouderies and into a fantastic world created by oneself. Elephants don't cut it
Unstable data
17
Years of Service
User Offline
Joined: 12th Jan 2007
Location: Texas Panhandle
Posted: 19th Aug 2009 05:40 Edited at: 20th Aug 2009 22:57
Caleb7 if he is the only one that has entered then he wins by default


Edit: it looks like he was the only entry, so all that is left is you declare him the winner so he can set the next one

Edit: if ya need another entry to declare a runner up here's mine




Edit (8/20/09): so we going to have a new challenge????
I am Learning alot from doing these challenges
I am ready for a new one
Caleb7
16
Years of Service
User Offline
Joined: 29th Aug 2008
Location:
Posted: 21st Aug 2009 06:17
Haha Ok! I Officially declare Enderleit as the winner and challenge setter!!

Randomnosity is a special influence upon man kind allowing one to think outside the usual bouderies and into a fantastic world created by oneself. Elephants don't cut it
bobbel
15
Years of Service
User Offline
Joined: 5th Jan 2009
Location: In my DBPro case xD
Posted: 21st Aug 2009 10:42
Cool, can't wait for the next challenge!

enderleit
17
Years of Service
User Offline
Joined: 30th May 2007
Location: Denmark
Posted: 21st Aug 2009 19:36 Edited at: 21st Aug 2009 19:41
The next challenge will be:

Create a procedurally generated "screensaver" of a City-Scape or some type of landscape(terrain).

Other types of scenes are also allowed, although they MUST be procedurally generated. (the Coding Challenges rules should make sure of that )

Extra points will be given for good looks and or effects.

Some inspiration and to show a little what I mean:
http://www.youtube.com/watch?v=-d2-PtK4F6Y

TimeLimit: 2 weeks. Starting NOW!

EDIT: By the way... There is a link in this videos info window to a blog about how he made this "screensaver" in case you need some ideas or a place to start.

- enderleit
[href]www.eleit.dk[/href]
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 21st Aug 2009 20:16
Sweet, I'm in!

Your signature has been erased by a mod because we're sadistic losers with nothing better to do. (joke)
Monk
16
Years of Service
User Offline
Joined: 25th Sep 2008
Location: Standing in the snow =D
Posted: 21st Aug 2009 20:19


I'm in =)

Won't be as good as that video though....

Monk

I like work. It fascinates me. I sit and look at it for hours.
Unstable data
17
Years of Service
User Offline
Joined: 12th Jan 2007
Location: Texas Panhandle
Posted: 22nd Aug 2009 09:09 Edited at: 22nd Aug 2009 10:23
I don't think i will be able to do this challenge very good but i will try to really mess it up (bad graphics and messy code)

It will be interesting to see if i can do 3D, I haven't done that so going to be new for me.
bobbel
15
Years of Service
User Offline
Joined: 5th Jan 2009
Location: In my DBPro case xD
Posted: 22nd Aug 2009 20:25
i'll check if i can join, but can it be 2D too?

enderleit
17
Years of Service
User Offline
Joined: 30th May 2007
Location: Denmark
Posted: 22nd Aug 2009 22:21 Edited at: 23rd Aug 2009 01:41
2D is fine... it is the prettynes/coolness that counts.

EDIT: Check out the new snippet I made using L-Systems. It's related and may be of use to some of you.
http://forum.thegamecreators.com/?m=forum_view&t=156679&b=6

- enderleit
[href]www.eleit.dk[/href]
acelepage
20
Years of Service
User Offline
Joined: 2nd Jun 2004
Location: Plattsville
Posted: 25th Aug 2009 23:02 Edited at: 25th Aug 2009 23:06
That youtube clip is great. It has inspired me. I just can't seem to get the same glow on the lights. But I threw this together this afternoon.


( 2b || !2b ), that is the question. The answer: true
BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 25th Aug 2009 23:42
@acelepage
Cool!



enderleit
17
Years of Service
User Offline
Joined: 30th May 2007
Location: Denmark
Posted: 27th Aug 2009 10:30
@acelpage

That look pretty good... I like how you got the blacked out corners on the buildings.

- enderleit
[href]www.eleit.dk[/href]
bobbel
15
Years of Service
User Offline
Joined: 5th Jan 2009
Location: In my DBPro case xD
Posted: 27th Aug 2009 18:16
@acelpage

Good job!
/me drag 'n drops his idea in the recycle bin

Valle
18
Years of Service
User Offline
Joined: 10th Mar 2006
Location: in your girlfriends bed
Posted: 27th Aug 2009 19:25 Edited at: 28th Aug 2009 00:16
hi guys



It's not a screensaver, but i think it serves quite well as a wallpaper
It was really fun to code

edit// screenie:


edit2// code updatet. better contrasts and special-fx
edit3// image updatet


BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 27th Aug 2009 20:27
Wow!



acelepage
20
Years of Service
User Offline
Joined: 2nd Jun 2004
Location: Plattsville
Posted: 27th Aug 2009 20:47
@Valle

I really like the corona effect on the lights. I checked out your draw_corona function. Can you give a bit of explanation how it works? Is it stretching the original image to diffuse it?

( 2b || !2b ), that is the question. The answer: true
Valle
18
Years of Service
User Offline
Joined: 10th Mar 2006
Location: in your girlfriends bed
Posted: 28th Aug 2009 01:22
it's all in the create_corona function:


the pixel-illumination is 1/square the distance to the lightsource. Pff its hard to explain this with my limited english-skills, but i hope you get it^^


enderleit
17
Years of Service
User Offline
Joined: 30th May 2007
Location: Denmark
Posted: 28th Aug 2009 11:20
@Valle
That's pretty nice!
Looks very good.

- enderleit
[href]www.eleit.dk[/href]
acelepage
20
Years of Service
User Offline
Joined: 2nd Jun 2004
Location: Plattsville
Posted: 28th Aug 2009 16:00
@Valle,
Yes, I get it. Thanks.

( 2b || !2b ), that is the question. The answer: true
acelepage
20
Years of Service
User Offline
Joined: 2nd Jun 2004
Location: Plattsville
Posted: 28th Aug 2009 17:27
I have updated my entry code with more variety in buildings, and some street traffic. Also added timer control to maintain constant animation speed, reduced poly count for performance.



( 2b || !2b ), that is the question. The answer: true
flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 30th Aug 2009 23:31
Wow, I havnt checked this board in quite some time, but this current challenge is beastly! Hopefully Ill be able to scrape something together... Starting now.

<the two entries Ive already seen are excellent too>

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 31st Aug 2009 08:00
Valle, that looks pretty impressive. Raises the bar for "no media".

Those buildings make me think we need a Gorillas remake challenge.

[url="http://www.nocleanfeed.com"][/url]
Valle
18
Years of Service
User Offline
Joined: 10th Mar 2006
Location: in your girlfriends bed
Posted: 31st Aug 2009 23:07
thanks for the feedback
Phaelax, what do you mean with Gorillas remake challenge?


acelepage
20
Years of Service
User Offline
Joined: 2nd Jun 2004
Location: Plattsville
Posted: 31st Aug 2009 23:26
You have to be older to get that one.
The Gorilla Game is an old IBM Basic game where a gorilla (aka King Kong) throws bananas from atop a building, trying to hit the opponent gorilla.
See attached screen shot.

Now I have given away my age.

( 2b || !2b ), that is the question. The answer: true

Attachments

Login to view attachments
BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 31st Aug 2009 23:36
I'd probably enter that, I like challenges where the end result is an actual playable game.



Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 1st Sep 2009 02:17
I remember gorillas. I think I still have the qbasic source code somewhere!

Your signature has been erased by a mod because we're sadistic losers with nothing better to do. (joke)
Monk
16
Years of Service
User Offline
Joined: 25th Sep 2008
Location: Standing in the snow =D
Posted: 3rd Sep 2009 21:42
and this is why you shouldn't try to code something in the last couple of hours before the deadline...



It's not even worthy to enter, but I said I would and Im sad to say that I didnt have time to start before today...

bobbel
15
Years of Service
User Offline
Joined: 5th Jan 2009
Location: In my DBPro case xD
Posted: 4th Sep 2009 08:40
Hey, can we maybe for the next challange have a more open theme, like, minigames or something (its juts an example)

Valle
18
Years of Service
User Offline
Joined: 10th Mar 2006
Location: in your girlfriends bed
Posted: 4th Sep 2009 11:42
I'd find it cool if the next challenge was something about swarm-behaviour/swarm-dynamics. We did this in the german forum and I'd like to see what the people here would submit, since i find this sort of behaviour very interesting.


Aurum Knight
16
Years of Service
User Offline
Joined: 15th Jul 2008
Location: the suburbs of nowhere
Posted: 5th Sep 2009 03:42
That would be cool, even if I don't enter
bobbel
15
Years of Service
User Offline
Joined: 5th Jan 2009
Location: In my DBPro case xD
Posted: 5th Sep 2009 11:18
yeah, i would be curious too to see what people would come up with.

enderleit
17
Years of Service
User Offline
Joined: 30th May 2007
Location: Denmark
Posted: 6th Sep 2009 11:03
So... I guess the time is up...

And the winner is: Valle

Although your scene is not animated, it looks great and has some neat effects which makes it look really good.

Congratulations!

- enderleit
[href]www.eleit.dk[/href]
Valle
18
Years of Service
User Offline
Joined: 10th Mar 2006
Location: in your girlfriends bed
Posted: 6th Sep 2009 20:47
Cool!

New Challenge:
Code Swarm-like behaviour. It doesn't matter if 2d, or 3d but the presentation is important too! You can simulate bees, fish, birds, humans...
A good wikipedia-article:
Boids
The interesting thing is how each individual follows simple rules and together they form an unpredictable swarm.

Here is the program i made for the german challenge:
Download(~1mb)



BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 6th Sep 2009 23:36
Sweet, I'm starting right now!



bobbel
15
Years of Service
User Offline
Joined: 5th Jan 2009
Location: In my DBPro case xD
Posted: 7th Sep 2009 08:36
I think i'm in too!

Kira Vakaan
15
Years of Service
User Offline
Joined: 1st Dec 2008
Location: MI, United States
Posted: 9th Sep 2009 22:50
Ooh, I love the idea. I think I'll do something for this. Was a final deadline ever set?
Valle
18
Years of Service
User Offline
Joined: 10th Mar 2006
Location: in your girlfriends bed
Posted: 10th Sep 2009 00:48
i forgot the deadline, let's make it one week from now:

DEADLINE: 16.9 // 23.59.59


BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 10th Sep 2009 00:54
Here's my WIP:



If anyone can figure out why the little units don't run away from the predators, I'd be obliged



MickeyIII
18
Years of Service
User Offline
Joined: 12th Aug 2006
Location: Louisiana
Posted: 10th Sep 2009 03:27 Edited at: 10th Sep 2009 03:30
I think I see the problem BMacZero...

try changing:



to:



just seems like a typo...

Ignore the [u][/u] and [b][/b] symbols inside the code snippets...
I didn't know that wasn't possible to do within a code snippet.

Kira Vakaan
15
Years of Service
User Offline
Joined: 1st Dec 2008
Location: MI, United States
Posted: 10th Sep 2009 11:44
Here's my WIP:



I'm not sure what I'm going to change from here to the deadline, so this might be my final entry. At any rate, I'll probably repost it when other people post their final entries.

I really liked this challenge!
BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 10th Sep 2009 17:04
Thanks, Mickey! That didn't fix it, but I'm sure it's one step closer .

@Kira - Sweet!



MickeyIII
18
Years of Service
User Offline
Joined: 12th Aug 2006
Location: Louisiana
Posted: 10th Sep 2009 19:47 Edited at: 10th Sep 2009 20:15
Try this code BMacZero...this seems to make the units move away from the predators when in VERY CLOSE encounters to me. But because it's so close, and your not giving the effectdist and peffectdist enough room for avoidance, they will sometimes go through the predators.



It still doesn't work perfectly because SOME of the units will pass through the predator, but that's because the predator is moving towards the units at random sometimes.

My suggestion is to find a way to not only avoid based on distance, but to offset that distance by the predators' velocity.

See how that works.

I'll keep tinkering with it, if that's O.K. of course.

MickeyIII



Edit: Ok, I've got a better idea, since you and I can't stand atanfull(). Try using Kira's method in the post above yours using vectors. That Cross Multiplication of Vectors seems to work very well. Just use a 2D Vector (a Vector2 if you want to use the DBPro Vectors) instead of the Vector4 that Kira is using. With the way your program is written, it shouldn't be too, too hard to change the PointSprite function to accommodate this feature.
Kira Vakaan
15
Years of Service
User Offline
Joined: 1st Dec 2008
Location: MI, United States
Posted: 10th Sep 2009 23:12 Edited at: 10th Sep 2009 23:24
@Mickey, BMacZero: Hm, I think if you were to use vectors to plan an escape route, you'd still need atanfull() to get the angle to the new route. Unless I'm missing something obvious, you'd need to rework your entire unit system to use vector based movement as opposed to angle based movement to avoid it.

You'd also need to use vector3 to do all of your cross multiplication. Cross multiplying vector2's is like crossing vector3's using 0 as a z term. If you crossed the unit's look vector with difference in position to the enemy, you'll get a vector pointing either straight up, or straight down. Cross the unit's look vector with this new one, and you'll get the nice escape route I used.

Edit: Just checked up on my code. I did exactly that, but using exactly backwards pairs of vectors:
(Difference in Position)*(Look Vector)
(New Vector)*(Look Vector)
The resultant vector is exactly the same, but I think I like the order I mentioned in the original post better. I think I'll change it.
Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 11th Sep 2009 01:21 Edited at: 11th Sep 2009 01:22
I haven't really done the actual behaviour yet, but you've GOT to love these fish



And no, using a cubic equation to create the fish shape is NOT overkill

Login to post a reply

Server time is: 2024-11-24 12:14:11
Your offset time is: 2024-11-24 12:14:11