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
Monk
17
Years of Service
User Offline
Joined: 25th Sep 2008
Location: Standing in the snow =D
Posted: 22nd Oct 2008 20:06
This is a fairly simple request for a fairly simple plant that im trying to put into my simple world.



Does any one know how to fill the circles and box in with colour because i havent a clue?
And also im having trouble trying to randomise the terrain height because either im stupid or it isnt working or both.

this is my world code and if anyone could spare some time to help sort out why the terain wont change height, i would be grateful.


cheers
acelepage
22
Years of Service
User Offline
Joined: 2nd Jun 2004
Location: Plattsville
Posted: 22nd Oct 2008 20:18
Monk,
I took a quick look at your code and noticed you do not have an UPDATE MATRIX command. This is required after your matrix parameters are changed to actually apply the changes to the matrix.

( 2b || !2b ), that is the question. The answer: true
Monk
17
Years of Service
User Offline
Joined: 25th Sep 2008
Location: Standing in the snow =D
Posted: 22nd Oct 2008 21:24
Thanks acelepage Thats better now
aarrowh
18
Years of Service
User Offline
Joined: 19th Oct 2007
Location:
Posted: 24th Oct 2008 21:06
This looks like an awesome challenge...I might try to put something together out of what little I know!

SOMEDAY, I will have coding skillz... :p
Monk
17
Years of Service
User Offline
Joined: 25th Sep 2008
Location: Standing in the snow =D
Posted: 26th Oct 2008 23:36
I didnt make this code and wouldnt even to pretend to have done so, but i think this is a good example of a scrolling landscape.
Whoever wrote this is a genius in my books cause i think this is pretty cool.
jason p sage
19
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
BMacZero
20
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 27th Oct 2008 03:30
Yeah, that's one of geecee3's old graphic effect demos. I still have most of them, they're cool .
Jimmy
22
Years of Service
User Offline
Joined: 20th Aug 2003
Location: Back in the USA
Posted: 28th Oct 2008 16:24
9 hours and some change to go!

Looks like y'all were no match for this challenge!!

I may have to declare Pudding Pops the victor if nobody else posts some code.

"Oh hey, nice website Jimmy, it's really nice and fancy." -- That C++ Nerd
Visit. Website. NOW!
Monk
17
Years of Service
User Offline
Joined: 25th Sep 2008
Location: Standing in the snow =D
Posted: 28th Oct 2008 20:24
Nice idea Jimmy. Sorry to spoil it though.
heres my attempt



Im not sure how good itll be compared to other peoples attempts but im happy with it.

good challenge Jimmy.
Jimmy
22
Years of Service
User Offline
Joined: 20th Aug 2003
Location: Back in the USA
Posted: 31st Oct 2008 01:18
Yay Monk wins.

"Oh hey, nice website Jimmy, it's really nice and fancy." -- That C++ Nerd
Visit. Website. NOW!
Monk
17
Years of Service
User Offline
Joined: 25th Sep 2008
Location: Standing in the snow =D
Posted: 31st Oct 2008 12:58
No one else entered? thats disappointing
I won! lol its only my second challenge as well which is good.
so how long do i have to set a challenge?, and does anyone have any suggestions? and can i enter my own challenge?
Nice challenge jimmy!
Jimmy
22
Years of Service
User Offline
Joined: 20th Aug 2003
Location: Back in the USA
Posted: 31st Oct 2008 13:10
Well, you should try and set it as soon as possible. You can enter your own, you just can't win.




"Oh hey, nice website Jimmy, it's really nice and fancy." -- That C++ Nerd
Visit. Website. NOW!
BillR
23
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 31st Oct 2008 13:13
You have exactly 12.5 minutes to set the next challenge!
Not really, they usually set the next challenge the next day or so.
You can enter code for your own challenge, but you can't win since you will be the judge for the entries.

Suggestions...hmmm...
A 2D or 3D game
A cool visual effect
I have trouble thinking of ideas too
Monk
17
Years of Service
User Offline
Joined: 25th Sep 2008
Location: Standing in the snow =D
Posted: 31st Oct 2008 13:14
cool so erm ideas....
Monk
17
Years of Service
User Offline
Joined: 25th Sep 2008
Location: Standing in the snow =D
Posted: 31st Oct 2008 13:45
Challenge:
Make an demo of a flying object
It can be any type of flying craft from plane to mini light or ufo if you want.
The flying should be as realistic as possible.
If possible include a landing / take off sequence though i dont know if that would be possible to do inside the time limit.
Points given for realism of physics and flying.

Deadline in 2 weeks: Fri 14th November

Good Luck


Im sure that something like this has already been done but im short of ideas and id be interested to learn how to do something like this.
BillR
23
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 3rd Nov 2008 06:54
I'll be entering this one, sounds great!
sinisterstuf
19
Years of Service
User Offline
Joined: 28th Mar 2007
Location: Namibia, Southern Africa
Posted: 6th Nov 2008 10:13
Oh.
I've been away for so long. And I'm not allowed on the computer... but I guess I'll have to sneak on. I must try to enter this challenge!!!

LLANFAIRPWLLGWYNGYLLGOGERYCHWYRNDROBWLLLLANTYSILIOGOGOGOCH
CYMRU AM BYTH!
Crazy Ninja
20
Years of Service
User Offline
Joined: 27th Aug 2005
Location: Awesometon
Posted: 10th Nov 2008 06:00 Edited at: 14th Nov 2008 01:42
After being absent from any programming whatsoever for about a year now, I think I actually might try to enter this although the dead line is closing in quickly.

Edit: Here is my very lame and poor example of "realistic" flying. I actually based it off some code I made a long time but I've switched directional controls to the mouse. To go a bit faster hold down the 'W' key and the 'S' key to go slower. I did get a take off sequence in, so hopefully I get some bonus points for that.



I'm thinking of continuing to work on this code until I come up with a game of some sorts. Right now I'm envisioning some rock/asteroid smashing game.
Monk
17
Years of Service
User Offline
Joined: 25th Sep 2008
Location: Standing in the snow =D
Posted: 14th Nov 2008 17:16
Right deadline is by the end of today for all of those who have tried to enter some code.
i will check the code and try to decide a winner by the end of the weekend.

Cheers

Ps Id like to see the end version of that game Ninja, looks like it would be quite cool.
sinisterstuf
19
Years of Service
User Offline
Joined: 28th Mar 2007
Location: Namibia, Southern Africa
Posted: 14th Nov 2008 18:29 Edited at: 14th Nov 2008 18:32
Well... I had actuly hoped to submit something proper, like a game or something but there just wasn't enought time because I had too much other work to do (like the 4000 word essay). So I wrote it last friday and tweaked it a bit on saturday.

So, i will submit what I have. It is a UFO simulation called SUFO (Sinister UFO) I had wanted to make it into a game where you fly around over some land but I guess this is good enough.

These are the controls:
spacebar to take off / land
arrow keys to fly around the screen (check the "physics" and stuff... like the spinning things on the bottom of the UFO)
left-click to fly away
right-click to fly towards
shift to decrease force of gravity
ctrl to increase the force of gravity
enter + shift to increase sync rate
enter + ctrl to decrease sync rate

I think that's about it. Sorry it isn't as good as it would have been. But imho I think it's still pretty cool! I hope you enjoy playing with it and have a great weekend!!!



LLANFAIRPWLLGWYNGYLLGOGERYCHWYRNDROBWLLLLANTYSILIOGOGOGOCH
CYMRU AM BYTH!
BillR
23
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 15th Nov 2008 07:15 Edited at: 15th Nov 2008 09:03
Here is my code, in case I don't get to finish the plane.
It was going to be a Mars Flyer.
I spent way too much time on the effects, and didn't finish the plane.

The SPACE BAR will fire a shot at the radar guided turrets which don't shoot back yet.
The ARROW keys control the Mars Flyer.

Sorry for the messy code, routines from all over the place, stiched together, sort of works for now.
And way too much code!
sinisterstuf
19
Years of Service
User Offline
Joined: 28th Mar 2007
Location: Namibia, Southern Africa
Posted: 15th Nov 2008 10:00
Nooooooooo!

i was so hoping BillR wouldn't enter! so... i don't know about crazy ninja but i guess that means I'm screwed... cos BillR is good and I'm not...

Oh Well. Better luck next time I guess.

...

I just noticed that (if I'm not mistaken) BillR posted his entry after the deadline of 00:00 of yesterday! ...

LLANFAIRPWLLGWYNGYLLGOGERYCHWYRNDROBWLLLLANTYSILIOGOGOGOCH
CYMRU AM BYTH!
BillR
23
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 15th Nov 2008 11:48
@sinisterstuf - I really like your entry, just about the coolest flying saucer I have seen in a long time! And you are good!

In fact, I would love to think of a cute game to use your flying saucer in! (If I have permission) That's how much I like it.

The more coding you do, experimenting, and entering challenges, the better you will get. Keep entering and learning. It's really the learning that makes it so great, and sometimes winning is good too.

I learned several new techniques just in this challenge!
Monk
17
Years of Service
User Offline
Joined: 25th Sep 2008
Location: Standing in the snow =D
Posted: 15th Nov 2008 14:03
Thank you all for entering my competition and congratulations to all those who have entered for your really, very cool coding examples.

Very interesting to note that you all chose to do spaceship/flying saucers, and not something Earthish.

Crazy Ninja - Flying demo with asteroids
Nice, Good take off sequence and I like the mouse control, i think it gives greater accuracy, and also i like the little asteroids/mini planets.Very good for 4 days work.

Sinisterstuf - SUFO
Nice work, I like the physics and the bounce off the walls, quite realistic. Very nice animation as well, I like the detail given to the coding. Shame that you didnt have time to put in a background as that really could have been good to play.

BillR - Mars Flyer
Nice little game that you have created. I like the fact that you can shoot things and have an environment to traverse. What is the box above the starting location with a red light going round it out of interest? (mothership?) With a little editing that could become a very nice game. Nice detail with the roads and cinfetti explosions. Shame you didnt manage to complete the plane design.

Thank you all once again for your entries, they are all great and im actually quite in awe by the coding skills you have.

The Runners up


The Winner
sinisterstuf
19
Years of Service
User Offline
Joined: 28th Mar 2007
Location: Namibia, Southern Africa
Posted: 15th Nov 2008 22:09 Edited at: 15th Nov 2008 22:17
wow fantastic, thanks Monk!

Guys I can't select text in my browser so would anyone be so kind as to make a text document for me to download so I can see what the other entries were like? Anyway, well done everyone!

BillR thanks for the compliments and if you want to make a game with that code then go ahead, I had a few different ideas myself, just mention me if somewhere in it please and you're absolutely right, every time I enter I learn so much! Sometimes I think I should spend time working through all the past challenges because I really wish I could have entered more because I learn loads and the code is always useful to reuse.

Monk, re everyone choosing spacecraft... I was originally considering a flying toaster... lol
well, thanks

now, there's only one problem. It might just be me but I really think there aren't enough people entering these challenges. How can we get more people to participate?!

alright, I think I've spoken enough and I know all you want is the next challenge so:

MAKE A BOARDGAME CHALLENGE
yes, it's that easy; all you have to do is make a boardgame. It can be as simple as noughts and crosses or as complicated as chess but it has to be recognisable as a boardgame... ie. a game on a board I guess extra points awarded for new takes on old games or for original games and naturaly, the better the end result the better the chance of winning. If you have the time then you might like to add a computer player with AI, but that might be a bit tough so keep in mind that not all boardgames are multiplayer, you can get puzzle games (and maybe other things) too! You have 2 weeks, so your enties are due by the end of the last day of this month:
24:00:00.000 on Sunday, the 30th of November 2008 AD

I hope to see many people entering this challenge and I hope you all enjoy it. If you have any questions then feel free to ask.

Goodluck!!!

LLANFAIRPWLLGWYNGYLLGOGERYCHWYRNDROBWLLLLANTYSILIOGOGOGOCH
CYMRU AM BYTH!
Monk
17
Years of Service
User Offline
Joined: 25th Sep 2008
Location: Standing in the snow =D
Posted: 15th Nov 2008 22:39
Whoa quick decision making! Thats what we like to see.
Ive emailed you a text file with all the entries in (i didnt know how to attach files to the post) so hope you can access that.

Interesting point on getting more people to join. A good idea but short of posting a link on sites i cant think of many ideas, and that would attract some coders but many spammers as well.

If i have time, which i think i shall make more of, i shall try to enter your challenge. If im good enough i might even aim for monopoly, or apples and oranges.
Crazy Ninja
20
Years of Service
User Offline
Joined: 27th Aug 2005
Location: Awesometon
Posted: 16th Nov 2008 04:34
Congrats sinister! I'd really like to try out your's and billR's code but I'm away from my own computer and can't run it. I like your choice for the current compo though, although I'm not sure if I'm going to try to enter this time or keep adding onto my current space ship code (which needs a LOT of work). As I said before, I haven't programmed in DBP in a while and need quite a bit of practice.
Halo Man
20
Years of Service
User Offline
Joined: 5th Nov 2005
Location:
Posted: 16th Nov 2008 18:05 Edited at: 16th Nov 2008 18:07
This sounds like a very fun challenge, I'll try hard to get a good entry into this one.
Coldfire
17
Years of Service
User Offline
Joined: 22nd Oct 2008
Location: Indiana
Posted: 26th Nov 2008 17:14
Here's my entry: http://forum.thegamecreators.com/?m=forum_view&t=140448&b=8&p=0

I'll get it polished more within the next couple days

"They say beer will make me dumb / It are go good with pizza" - Psychostick
sinisterstuf
19
Years of Service
User Offline
Joined: 28th Mar 2007
Location: Namibia, Southern Africa
Posted: 26th Nov 2008 23:01 Edited at: 26th Nov 2008 23:02
yay! another entrant!

MORE PEOPLE MUST ENTER PLEASE TIME IS EVANESCENCE!!!

coldfire you'll need to just post your code please, thanks, the screenshots look cool though, i'll check the rest out tomorrow I hope.

and crazy ninja, you give this challenge a try too!!! ...it's good for you

LLANFAIRPWLLGWYNGYLLGOGERYCHWYRNDROBWLLLLANTYSILIOGOGOGOCH
CYMRU AM BYTH!
sinisterstuf
19
Years of Service
User Offline
Joined: 28th Mar 2007
Location: Namibia, Southern Africa
Posted: 28th Nov 2008 22:48
ONLY 2 DAYS LEFT TO ENTER!!!

LLANFAIRPWLLGWYNGYLLGOGERYCHWYRNDROBWLLLLANTYSILIOGOGOGOCH
CYMRU AM BYTH!
Coldfire
17
Years of Service
User Offline
Joined: 22nd Oct 2008
Location: Indiana
Posted: 29th Nov 2008 17:56
My Go Game:

Due to current family troubles, I'm taking a break on this for now, but I figured I'd go ahead and post the code. I havent had time to clean it up, and I know theres a couple bugs, but nothing too bad. Anyways, exe and source can be found below. Enjoy.

"They say beer will make me dumb / It are go good with pizza" - Psychostick
Halo Man
20
Years of Service
User Offline
Joined: 5th Nov 2005
Location:
Posted: 30th Nov 2008 06:24 Edited at: 2nd Dec 2008 02:11
Here is what I have of my entry so far:

Fortune's Tower (click below for Wikipedia description)
http://en.wikipedia.org/wiki/Fable_II_Pub_Games#Fortune.27s_Tower

It's one of the popular mini-games from Fable II

A few differences between the two:
This version doesn't have a Gate card, but rather a Save card. This saves a row from Misfortune if there is no Hero card.
If you cash out, it doesn't show you what would have happened.
If you run out of gold, you are given more (for the sake of the judge).

As of right now, it's more of a card game than a board game, but I'll implement a board game style of play before tomorrow's deadline.

Here is the code (not my best because it was rushed to meet the deadline):

Edit1: Replaced old code with a slightly newer version because my IDE keeps removing some parts of it.
Edit2: I don't have time to add the board game aspect to the game. I guess this will be my entry, although it technically is a card game.
Monk
17
Years of Service
User Offline
Joined: 25th Sep 2008
Location: Standing in the snow =D
Posted: 30th Nov 2008 14:34
Heres my version of noughts and crosses.
I will admit that its not a great attempt but ive been a bit busy.
The main problem is that it doesnt pick up a win in all directions and if anyone could have a look at it and change it so that it does then they can use it to enter the competition but i frankly dont have a clue.
Good challenge sinisterstuf and im sorry that i cudnt put together a much better effort in the time set. Look forward to the next challenge!
Pillarofire
22
Years of Service
User Offline
Joined: 31st Dec 2003
Location: Good Question, <looks around.>
Posted: 2nd Dec 2008 11:22
I feel your pain Monk. I'm just too busy to enter most of these awesome challenges. Mine is incomplete, but I decided to post it anyway. So sue me. Maybe someone can pick up the pieces, or I'll finish it later.

Monk
17
Years of Service
User Offline
Joined: 25th Sep 2008
Location: Standing in the snow =D
Posted: 3rd Dec 2008 21:46
Who decides next challenge and when?
I thought was supposed to be one day and am curious as to the next challenge...
Darkness Flame 101
17
Years of Service
User Offline
Joined: 4th Dec 2008
Location:
Posted: 4th Dec 2008 09:01
Ive been a lurker for far too long. Im joining the next challenge.
BillR
23
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 4th Dec 2008 23:20
sinisterstuf set this challenge, so he needs to judge the winner.
Then the winner sets the next challenge.
Monk
17
Years of Service
User Offline
Joined: 25th Sep 2008
Location: Standing in the snow =D
Posted: 6th Dec 2008 20:25 Edited at: 6th Dec 2008 20:32
Right i know its well past the deadline but i got bored and fixed my noughts and crosses.Turns out i just labelled some boxes wrongly ruining the whole checking but anyway far as i can tell its fixed and working. Im gonna post it here even tho the competition has ended just in case anyone wants to have a look. Its a bit messy at 300 ish lines...


BillR i thought the setter had 1 day to award winner then a vote or something happened but im not sure...
RiiDii
21
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 6th Dec 2008 20:35 Edited at: 6th Dec 2008 20:35
Quote: "8. If the challenge setter fails to judge entries or set a new challenge within 24 hours of the deadline, responsibility for judging and setting a new challenge will pass to the previous runner up. If that person also fails to act promptly, entrants may vote for a winner and new challenge."


http://www.andromedus.com/dbp/html/rules.html


Open MMORPG: It's your game!
Monk
17
Years of Service
User Offline
Joined: 25th Sep 2008
Location: Standing in the snow =D
Posted: 6th Dec 2008 20:48
Glad to here from you RiiDii, hope you enter the next challenge...
So that means that its up to either CrazyNinja or BillR as they were the runners up (my fault for giving two people). Sounds like its up to one or both of you two to judge this challenge unless sinisterstuf suddenly returns. Or a vote.
Monk
17
Years of Service
User Offline
Joined: 25th Sep 2008
Location: Standing in the snow =D
Posted: 6th Dec 2008 21:15 Edited at: 7th Dec 2008 20:39
Sorry poor internet...
BillR
23
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 7th Dec 2008 19:47 Edited at: 7th Dec 2008 19:48
I will take a look at the entries and cast my vote for the winner
I will try to be quick about it.

While you are waiting, I would like some suggestions for the next challenge
Jimmy
22
Years of Service
User Offline
Joined: 20th Aug 2003
Location: Back in the USA
Posted: 7th Dec 2008 20:11
Power puff girls!

Your awesomeness has been erased by a mod. OR 'AS IT??!
Monk
17
Years of Service
User Offline
Joined: 25th Sep 2008
Location: Standing in the snow =D
Posted: 7th Dec 2008 20:38
Sorry for the double post...
Im not so good on the creative side but possibly a simple application of AI but i dunno how people feel about that or whether it has been done loads of times before...
MonoCoder
20
Years of Service
User Offline
Joined: 4th Dec 2005
Location: england
Posted: 8th Dec 2008 00:53 Edited at: 8th Dec 2008 00:54
How about a Christmas coding challenge?

Space Shooter - DarkEye - last build of discontinued puyo
sometime December or something
Jimmy
22
Years of Service
User Offline
Joined: 20th Aug 2003
Location: Back in the USA
Posted: 8th Dec 2008 01:06
But what about us Jews?

Your awesomeness has been erased by a mod. OR 'AS IT??!
MonoCoder
20
Years of Service
User Offline
Joined: 4th Dec 2005
Location: england
Posted: 8th Dec 2008 01:26
...back to the corner I go.

Space Shooter - DarkEye - last build of discontinued puyo
sometime December or something
BMacZero
20
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 8th Dec 2008 03:43
Hehe. Is Ric still around to start the Holiday Compo? It was great last year.

BillR
23
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 8th Dec 2008 10:21 Edited at: 8th Dec 2008 10:23
Time For Judging! - Boardgame Challenge
It looked like several good ideas starting out, but not much code was posted.

Monk - Noughts & Crosses (tic-tac-toe)
Semi working game, finds a win sometimes,
You should learn to indent your code

pillarofire - Tic-Tac-Toe (noughts & crosses)
highlighting squares was nice, indented code, no game yet - but good start

Halo Man - Fortune's Tower
indented code, nice card graphics, but really a card game I think

Coldfire - Go
good potential, no flipping of pieces yet, good start


And The WINNER is:



These challenges are a great place to learn programming skills.
Having a small challenge or project to work on helps focus your efforts on smaller achievable goals,
rather than a big project that never gets completed.

I hope everyone will put forth a little more effort into trying these challenges,
and posting updated code, we love seeing your ideas and learning from all of you.

Login to post a reply

Server time is: 2026-07-05 02:54:30
Your offset time is: 2026-07-05 02:54:30