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
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 21st Aug 2005 18:02
This time I couldn't really play it. The player stays at the same height regardless of where they are on the island, so I couldn't go through the doors. I gave a stab at fixing this (using Get Ground Height()), but gave up after a few tries.

Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 21st Aug 2005 18:33
Hummmm..... you didn't by any chance press the return key when it asked you to press any key did you? Than enables a sectret free flight mode (using a and z to move up and down) which I was using for editing, and forgot to disable it!

RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 21st Aug 2005 21:39
Yep. That's it. And here I thought you were trying to pull my leg

Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 22nd Aug 2005 01:11
Just putting the finishing touches together - should have mine in soon.

Crazy Programmer
AGK Developer
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Lost in AGK
Posted: 22nd Aug 2005 01:20
Nice job ric

Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 22nd Aug 2005 07:19 Edited at: 22nd Aug 2005 15:10
Thanks! Final update for this challenge:




It is now a fully fledged game, with an end - success or failure. Some interesting new features added which would give the game away if I mentioned them here - and, almost certainly, a whole host of bugs!

Known bugs:
- nav-system not 100% accurate
- houses sometimes get built on really steep slopes (it's completely random) making them inaccessable.

Having said that, I have managed to complete the game even with those bugs - but it isn't an easy game, so don't expect to complete it on your first go!

Enjoy.

Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 22nd Aug 2005 08:19
My final entry for the challenge - though I'm sure Ric's won

RGBRPG

You play as a colourful young cube let loose in a world of evil spheres. The world is small, and your colours are yet muted, but with each victory you get closer to your dream of rgb(255,255,255) and ascension.

Features:
Character naming (RiiDii)
Random character generation (mostly RiiDii)
Novel way of representing stats through colour
3d movement and camera
Simple sliding collision (underused)
Battle camera
Turn based combat
6(!) Special Moves (see below)
Floating damage indicator
XP and money gain with victory
Levelling (includes stat gain, HP gain, and a size gain)

Instructions/Controls:
WASD: Movement keys.
E: Show XP and money.
1,2,3,4,5,6: Attack keys.
1: Rage Fury - Rage based, simple attack. Requires Rage>5
2: All Or Nothing - Rage based, does 0 or lots of damage. Reqires Rage>40
3: Stealth Stab - Grace based attack. Somewhat random. Requires Grace>5
4: Defensive Momentum - Grace based. Uses their grace against them. Requires Grace>40
5: Mind Heal - Brains based. The basic healing skill. Requires Brains>5
6: Emotional Vampirism - Brains based. Steals some of their HP and feeds it to you. Requires Brains>40



Known Bugs:
There seems to be a freeze-bug sometimes if you start the game touching an enemy. Only happens sometimes.

Missing Features:
World generation is just a plain
There's no player death
No new enemies ever spawn
No context sensitive menu for combat
No plot!

So there you go - pretty much the most I've ever done on a dbproject I'm rather pleased with what I managed to get done!
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 22nd Aug 2005 10:26
I had fun making my scrolling map, but aside from that I got bored. Never liked rpg's, no real entry from me.

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 22nd Aug 2005 10:59
is it judging morning? I'm at work and so wont be able to do anymore to mine :-(

My Website:
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 22nd Aug 2005 15:09
<Final, final update!>

Fixed the house positioning routine, so that houses (and tower) don't get built on land which is so steep you can't get in the door, and neither are they built so close to each other that you can't get in either. Also, houses are built a little higher up from the initial shore line to make the game a little easier. Also, it is easier now to drop/pick up the bomb.

Code updated in previous post.

RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 22nd Aug 2005 18:34 Edited at: 22nd Aug 2005 18:35
Some really great entries all the way around!

I came back very late last night (well, it was officially early this morning <yawn> ). I was way too tired to make a decision. That's why the delay. So here it goes (open the code boxes from top to bottom for more drama).

3rd Place Winner


2nd Place Winner


And the Winner is...


There you have it. Congratulations to our winner!

One final note:


Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 22nd Aug 2005 18:59
Lmao! Good ruling there, Rii - agree 100%, except for one thing - I actually did go on holiday! Did Venice and Salzburg. Was lovely. And here's the best bit - I'm off on holiday again this evening! God I love being a teacher. Will be back at the weekend.

Congrats TG - well deserved. You do know your responsibilities now, I presume?

Btw, Rii, did you find the boat?

RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 22nd Aug 2005 19:13
No. I played just a bit when I got in last night and was nodding off at the keyboard. I played a little more here at work (I am so happy you put in the shift key to run!) but it's soooo ssllooww. I will be looking now once I get home.

Have a good holiday. And post some pics this time.

Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 22nd Aug 2005 20:00
Wow, thanks! Not got much time right now, but well done Ric - if it weren't for newbie points...

I'll post a challenge when I get my lunch break, I have a few ideas
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 22nd Aug 2005 20:55
are you convinced to buy DBP yet? hehe

My Website:
Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 22nd Aug 2005 23:37 Edited at: 25th Aug 2005 18:32
Sneaky

Anyway - here's the challenge. If people object strongly, I can change it, as I'm not too sure of myself here.

Challenge - Medialess Trees!
Description - Without recourse to external media, create a tree, or trees. This can be 2d or 3d. Graphics will be judged on suitability, not artistic merit. (See Darwinia's trees for inspiration) Bonus points for growing, moving in the wind, blooming, burning, leaves and other tree-like factors.
So dust off your fractals, gentlemen, and be glad I didn't ask for a shrubbery!

Time limit - 2 weeks - Monday 5th September, 8pm GMT (12 Midday LA time)

That sound ok?

[edit]Extended date by one week to bring it in to line for the usual length.
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 23rd Aug 2005 00:28
Wish I could run some of these entries. Nic's gives me a command out of place error. After removing an IF statement and fixing a FOR loop, I then get a memblock error.

Ric, after I reach the information tower, I end up outside of the skybox or something.

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 23rd Aug 2005 01:49
Mine works fine for me from the code box... I use 5.8 with the latest IDE (normal IDE)..

My Website:
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 23rd Aug 2005 20:49
It's funny. I've been thinking lately about how to do trees. I don't know a heck of a lot about fractals though. Anyone have any pointers on those?

FDC
19
Years of Service
User Offline
Joined: 6th Aug 2005
Location:
Posted: 23rd Aug 2005 22:35
let's try
Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 23rd Aug 2005 22:50 Edited at: 23rd Aug 2005 22:52
This is a great little page that explains the basic concepts of fractal trees -
http://davis.wpi.edu/~matt/courses/fractals/trees.html

Basically, you create a trunk and two branches. That's your 'unit'. Then, you replace every branch with a shrunken version of your unit. Then, each of those little branches is replaced again.

So, if you were counting only the end branches, you'd have a sequence of 2, 4, 8, 16, etc etc. There's pictures and pseudocode on that page to help.

If you imagine that you do a tree with several layers to it - and you made the last 'branches' green, it would look more like leaves than trunks. And if this was built using limb commands...
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 24th Aug 2005 19:36
On holiday - took laptop with me and am in trouble for that already, so can't spend much time coding - any chance of extending deadline to the usual two weeks? I like the sound of this challenge. Fractals are great!

Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 24th Aug 2005 20:04
Really? I was convinced that my challenge had bored everyone into silence and that the sooner it was over and I could default to someone else to set a challenge that people liked, the better. :/

I'd been having a try of it myself, but I'd never used limbs before so I was having a little trouble - or I'd have done a RiiDii and posted the 'basics' in tutorial form.

So, anyway - would people like the deadline extended, as Ric says?
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 24th Aug 2005 21:42 Edited at: 24th Aug 2005 21:42
Sure (extend is good for me). I have tree code now over in the Open MMORPG thread you can take a look at. The whole code isn't media free, but the trees are. Once I have a few more trees, I'll be compiling them into a code for this challenge.

Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 25th Aug 2005 10:55 Edited at: 25th Aug 2005 11:03
Nic's runs fine here as long as I change this line

#constant KeyS 31

to this

#constant KeySP 31

I guess it is because of a 3rd party dll but keys is a reserved word here.

[edit] Great job with the entries.

FDC
19
Years of Service
User Offline
Joined: 6th Aug 2005
Location:
Posted: 25th Aug 2005 12:15 Edited at: 25th Aug 2005 17:35
niurp niurp
edit:waves
Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 25th Aug 2005 17:44 Edited at: 25th Aug 2005 18:31
Wow, FDC, nice start to a coconut palm tree - I hadn't even thought of one of those.
Looks like you've put it on an endless beach too. Hope I don't get shipwrecked there! But nice use of speckle textures and cones.

[edit]
Right, I'll extend the deadline to make it up to the two weeks (I didn't know it was the standard time, sorry).

Deadline is now Monday 5th September, 8pm GMT (12 Midday LA time)

I'll edit the original post too.
Whistlin Trev
19
Years of Service
User Offline
Joined: 11th Feb 2005
Location: Battle of Nevermore
Posted: 25th Aug 2005 19:54
this is a great challenge which im all fresh on after only finishing a book on fractals. was in a middle of a fractal program not to do with trees but i think that i can adapt it to make it into a tree. hope to get the entry in this time as i took to long on the last challenge with too much attention to detail.

well done on winning tinkergirl
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 25th Aug 2005 21:00
Here's my first tree.
Enjoy!



Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 25th Aug 2005 21:30
very nice!

My Website:
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 25th Aug 2005 21:49
Thanks.
I'm going to give a fractal tree a go shortly.

FDC, I can't run yours at work for some reason. I'll try when I get home.

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 25th Aug 2005 22:02
FDC's works on my home PC - but it takes about 1 minute to load up. I also only get the trunk of a palm tree

My Website:
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 26th Aug 2005 10:03
nice one riidii

Your signature has been erased by a mod because it's larger than 600x120...
Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 26th Aug 2005 18:13
Yes, very festive I saw you using the non-festive version in the community mmorpg and realised I hadn't even thought about pine trees.

It's a shame that the glowing star doesn't show up better, even with the light on it, in fact, I don't know if it's just this machine, but getting rid of the light doesn't seem to do much. The idea's nice though and none of that detracts from the tree itself.

Good work, RiiDii!
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 26th Aug 2005 19:43
Thanks TG! Light 0 probably has to be hidden in order for any other light to work well. I can also play with the emissive and specular settings to get more of a glow. It's a bit of work, but I wanted to move on to other trees. I'll see what I can do.

Also thanks for the challenge. It's timing is perfect with the community mmorpg.

Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 27th Aug 2005 02:59
Nice tree Rii - looks like I've some catching up to do!

Coding Fodder
21
Years of Service
User Offline
Joined: 25th Sep 2003
Location: Somewhere in my cerebralcortex
Posted: 27th Aug 2005 22:18
Very nice rii, very nice. I may have to try this challenge. Don't know if I can beat your first go, though.

Something really catchy that makes people stop and think about the meaning of life and say to themselves "My but thats clever"
FDC
19
Years of Service
User Offline
Joined: 6th Aug 2005
Location:
Posted: 28th Aug 2005 20:04
yep. My code work on the fisrt version of dbpro. I use since i write tutorials for beginner. I will attach an "exe" of the last version in a few days.
FDC
19
Years of Service
User Offline
Joined: 6th Aug 2005
Location:
Posted: 28th Aug 2005 20:40 Edited at: 28th Aug 2005 20:42
Wind and waves.
(Right and left key)
I deleted some images, the exe is loaded in 4 seconds on my computer now(xp 3200+ 1000ddr geforce6200).Tell me if you still have some lag.

Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 28th Aug 2005 23:15 Edited at: 28th Aug 2005 23:17
FDC: It loads up quick enough on my laptop, a handful of seconds or so. But I also only get the trunk of the tree - should there be leaves? It does 'sway' in the wind, however.

Is it because my version is incompatible? I'd really like to see it as it's supposed to be, because I get the feeling it would be really good.

(And you've won me over, guys - I'm getting DBPro. Happy now? ;P )
FDC
19
Years of Service
User Offline
Joined: 6th Aug 2005
Location:
Posted: 29th Aug 2005 00:27
nope there is no leaves, sorry i didnt mention it.
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 29th Aug 2005 00:50
Quote: "And you've won me over, guys - I'm getting DBPro. Happy now?"

Yeah!

CPU
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Carlsbad, CA
Posted: 29th Aug 2005 01:34
Awsome, I'll have to have a go at this one, I liked the little bit about fractal trees, got me thinking, and codeing a little bit, will have to see if I can manage the fractle part...

CPU

[center]K-OS Battlefields
IS
///---///---///---UNDER CONSTRUCTION---\\\---\\\---\\\
[center]
Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 29th Aug 2005 02:05
That's ok FDC - it's a good work in progress!
Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 31st Aug 2005 18:40
Right then, 5 days to go on your trees and we've seen some very good starts from FDC, and RiiDii!

I'm hoping the following code snippet will help people getting to grips with the fractal side of the tree challege (which is not nessesary, but nice). The code is rough, in some places a little under commented, but it demonstrates the basics in 3d.


As you can see, this is hardcoded nastily and quite humanly repetitive. Someone could take this, and automate it properly, or make more layers to the trees, or have the limbs waving (by turning the odd numbered limbs - the helpers). It's a basic framework for people to look at anyway.

Good luck with everyone's trees
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 31st Aug 2005 19:09
Ahhhh... So THATS what you wanted the helper limbs for!

My Website:
Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 31st Aug 2005 19:15
Yup, I thanked you in the comments - you were a big help! (Offsetting in 3d otherwise was a real pain) I hope it helps someone else.
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 1st Sep 2005 00:30
Well, I was trying to produce some nice random leaf textures. Didn't quite manage that, but did accidentally write this. Not in anyway tree-like whatsoever ..... or.... hold on.......well.... if you have ever layed down underneath a tree on a barmy summer's evening, taken in a few pints of strong ale and looked up at the sun as the leaves sway above your head .... then you'll know that this is infact extremely treelike, given enough imagination .... hic



Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 1st Sep 2005 06:38
You're mad, Ric. You've obviously just created that little snippet there to try to hypnotise me into letting you win - would have worked to if I wasn't saved by passing heroic chipmunks.

And while desperately cool - it's not really a tree
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 1st Sep 2005 07:20 Edited at: 1st Sep 2005 07:21
Wow Ric. That's as much like a tree as gragingfrobblehopper is like a dolphin.
And it's a very cool effect too!


Open MMORPG: It's your game!

Login to post a reply

Server time is: 2024-11-23 12:18:25
Your offset time is: 2024-11-23 12:18:25