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
silk corpse
18
Years of Service
User Offline
Joined: 3rd Feb 2006
Location:
Posted: 7th Feb 2006 12:15
[quote]not nuch to say but i bet you slate this code!
silk corpse
18
Years of Service
User Offline
Joined: 3rd Feb 2006
Location:
Posted: 7th Feb 2006 12:18
this code is most likely known by all by now so here it is for a laugh!!
Darth Vader
19
Years of Service
User Offline
Joined: 10th May 2005
Location: Adelaide SA, I am the only DB user here!
Posted: 7th Feb 2006 12:20
Yeah I mean so you can't go out of bounds on the matrix.
To get technical

X
Z
Y

these are the dimensions that I want collision detectsion.
(If there is a challenge out there!!)

Thanks in Advance!

You Don't know the power of the Dark Side!!
Oh but I do!!
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 7th Feb 2006 12:37
Quote: "I have a challenge!

Compile all the WINNING entries

"




I guess not everybody bothers to read the first post in a long thread, then!

If you search the database, you will find loads of code snippets that have matrix collision. For example, check out 'Blue Island' in the rpg challenge, and have a look at the infinite terrain challenge.

Image All
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: Home
Posted: 7th Feb 2006 13:33 Edited at: 7th Feb 2006 13:35
Quote: "X
Z
Y"


I believe Y comes before Z



Btw, I could never realy figure out how to seamlessly shift my matrix... o_O

Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 7th Feb 2006 17:29
Quote: "haven't got round to compiling the last couple yet"

you mean you haven't gotten around to forcing your slaves into action

"We make the worst games in the universe..."
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 7th Feb 2006 18:16
hehe...

Nah - I did say that it was the responsibility of the challenge setter to include the code they judged + names + winners name with their judging post and I think I still have to do that for mine

The other knock on effect of doing this is it means people viewing the forum get to see a collation of the challenge results without:
a) plowing through up to 5 pages of challenge talk
b) wandering off onto a 3rd party site (ie mine) no matter how beautifully designed it is

qwe
21
Years of Service
User Offline
Joined: 3rd Sep 2003
Location: place
Posted: 8th Feb 2006 04:22
Quote: "Btw, I could never realy figure out how to seamlessly shift my matrix... o_O
"

simply move the matrix in the direction you are moving, shift all the matrix squares in the same direction, and shift all of the values you might be holding for it in an array in the same direction as well (say the matrix is 10x10 tiles and is 1000 by 1000 units.... every time you move 100 units upward, shift matrix up 100 units, shift up 1 tile)

If you want anything DB related hosted, log in (with ws ftp or something) www.lysergium.net with username public@lysergium.net and password public. you'll be directed to lysergium.net/public
Darth Vader
19
Years of Service
User Offline
Joined: 10th May 2005
Location: Adelaide SA, I am the only DB user here!
Posted: 8th Feb 2006 06:09
Hey would anyone mind if I listed all the winners and copare them to see who has the higher winning streak. Say we make every challenge you win one point.

I will compile the list and post it a little later on!


Vader

You Don't know the power of the Dark Side!!
Oh but I do!!
Darth Vader
19
Years of Service
User Offline
Joined: 10th May 2005
Location: Adelaide SA, I am the only DB user here!
Posted: 8th Feb 2006 07:27 Edited at: 8th Feb 2006 07:31
(A little later on)

Here we are its not in Alphabetical order and its based on the 'Thing a ma jingy' website list. If you don't see your name or if your points are wrong just give me a shout (They should be alright )

Have Fun and good luck!

Oh almost forgot!
Here is the link to view all the code snippet's

http://www.thingy-ma-jig.co.uk/new/index.php?page=dbchallenge&subpage=view
Proudly brought to you by "Thingy-ma-Jig" website

You Don't know the power of the Dark Side!!
Oh but I do!!

Attachments

Login to view attachments
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Darth Vader
19
Years of Service
User Offline
Joined: 10th May 2005
Location: Adelaide SA, I am the only DB user here!
Posted: 8th Feb 2006 08:12
I was close!
Those extra few points were probably the games you didn't put on the list!

Oh well I thought I was doing something that hadn't been done!

I might join up on the next entry though!


You Don't know the power of the Dark Side!!
Oh but I do!!
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 8th Feb 2006 09:56
That leaderboard list is generated dynamically based on the entire list of entries you can browse through.

Actually - I just looked at it. I'm awaiting Zotoaster to compile a list of the code entries he (or she?) used for judging that challenge. Once I have them, I can enter them into the database.

Good idea about that though.

If you have any other features you'd like to see of the database, please let me know.

BillR
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 8th Feb 2006 12:03
@Nicholas - I had to write a line number removing program to use the source code from your great challenge database.

Is there going to be a way in the future to copy and paste into DBPro without getting line numbers?

I use Firefox.
Thanks.
Darth Vader
19
Years of Service
User Offline
Joined: 10th May 2005
Location: Adelaide SA, I am the only DB user here!
Posted: 8th Feb 2006 12:11
@BillR

I had the same problem! Can you give me the number removing program? It would be a great help!

You Don't know the power of the Dark Side!!
Oh but I do!!
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 8th Feb 2006 13:40
Its a feature I think I'll remove... If you use IE, the line numbers dont get copied. Annoying really!

Image All
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: Home
Posted: 8th Feb 2006 15:51 Edited at: 8th Feb 2006 15:54
Well, some people are SMART(hehe) and like to use what's W3C compliant
Btw, I was just browsing your website to see them little linenumbers when I saw this page... those comments make me want to kill something

Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 8th Feb 2006 16:50
A reminder:
The contest ends 10/2 or the day after tomorrow...

2 entries?

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 8th Feb 2006 18:55 Edited at: 8th Feb 2006 18:58
@ImageAll: Thanks for pointing that out... I thought I'd disabled comments... Ooooo.... No, that was for the guestbook. I'm devloping a new version of the site anyway. The old one is now out of maintenance really...

EDIT: Sorted out for now...

Chris Franklin
19
Years of Service
User Offline
Joined: 2nd Aug 2005
Location: UK
Posted: 8th Feb 2006 20:01
I"ll try something if i feel well enough

Fps world of mayhem 10%

Darth Vader
19
Years of Service
User Offline
Joined: 10th May 2005
Location: Adelaide SA, I am the only DB user here!
Posted: 9th Feb 2006 01:44
Whats the challenge?

You Don't know the power of the Dark Side!!
Oh but I do!!
BillR
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 9th Feb 2006 01:57 Edited at: 9th Feb 2006 02:00
@Darth Vader - R.E.A.D.

Did you even look back a page or two?
I thought not, well you really should have.

Anyway, The challenge set by Sven B, is to us the ODE physics engine now included with the DBPro 5.9 Update in your code as a key element, along with objects, a ball etc.

Read back a page or two for more detail.
Darth Vader
19
Years of Service
User Offline
Joined: 10th May 2005
Location: Adelaide SA, I am the only DB user here!
Posted: 9th Feb 2006 07:47
Yeah I did but I need helpgetting the ODE Physics into DBP (I got the extras download that had ODE but when I unzipped it it didn;t have an install just a bunch of files I don't know were to put!

Help anybody!

You Don't know the power of the Dark Side!!
Oh but I do!!
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 9th Feb 2006 09:55
Do you have the 5.9 patch? If so - you have ODE... and about 12 hours left to finish your entry

Darth Vader
19
Years of Service
User Offline
Joined: 10th May 2005
Location: Adelaide SA, I am the only DB user here!
Posted: 9th Feb 2006 11:33
So with 5.9 you don't need the extras download?

You Don't know the power of the Dark Side!!
Oh but I do!!
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 9th Feb 2006 14:08
nope - ODE is BUILT IN to 5.9... The commands probably wont highlight in your IDE though due to the last IDE update being around the same time as some religious guy got nailed to a tree...

Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 9th Feb 2006 17:04
IDE's are always updated in March.

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 9th Feb 2006 17:29
Thats either a really REALLY subtle joke that I'm too slow to get to as I'm just coming down from a sugar high after eating a twinky one of my american colleagues gave me, or some unwritten rule I was previously unaware of...

BillR
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 9th Feb 2006 19:45
@Ric - Now that's funny!

@Nicholas, Do they have twinkie's in the UK, or did they bring that one on the plane with them? Also, I've always wondered if your fish & chips in the UK, if the fish is fried crispy like it is here in the US, or is it not too crisp, more...soggy maybe. I don't know why that popped into my head, maybe I need a twinkie.
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 9th Feb 2006 20:44
They were sent over because my friend was feeling down... Thing is, she can only eat so many and decided to do a company competition about who knows the most about American culture.. I didn't win, but one of the winners didn't want their Twinkie... God DAMN their sweet!! It doesn't hit you while you eat them but after you suddenly feeling this sugary sensation building up.

As for our F&C (which ironically, I'm eating right now) It tends to depend on what shop you go to. Mostly, the batter on the fish is crispy - however if the fish has been sitting out on display for a while or if its a plain and simple naff chippie, then it could very well be soggy.

BillR
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 9th Feb 2006 22:50 Edited at: 9th Feb 2006 22:51
@Nicholas - Thanks for the UK insight, I understood everything except 'naff chippie'.....

So I looked it up on the web
I found a cool websight:
http://www.coolquiz.com/trivia/britain/britishisms.asp

naff=Uncool
chippie=Fish and chip shop
naff chippie=Uncool Fish and chip shop

Hey Thanks Nicholas, I enjoyed this little jaunt (jaunt=to make a usually short journey for pleasure) into British culture.
And I love F&C also, has some 2 days ago!

And if you have any questions about American culture,food,whatever - feel free to ask.
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 10th Feb 2006 00:29
Quote: "IDE's are always updated in March."



Quote: "Thats either a really REALLY subtle joke ...."


Hence the phrase "Beware, the IDEs of March".

I feel the need to shoot myself immediately.

RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 10th Feb 2006 17:14
OW!!!

(lower case added to fool the forum)


Open MMORPG: It's your game!
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 10th Feb 2006 21:03
Today is deadline.

Quote: "Ric: Very professional-looking. Though the camera is a bit too smooth for me. Else than that, nice gameplay."


Quote: "BillR: The idea is great! I liked it from the beginning. But it could use some more work in the graphics and effects."


1st place:

2nd place:


It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
BillR
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 10th Feb 2006 22:37 Edited at: 10th Feb 2006 22:38
Wow - I'm surprised, in fact I'm slightly amazed.

I don't expect you to change your vote, but I'm surprised you voted that way in the first place. I do think you lost sight of what the challenge goal was supposed to show, or at least what I thought we were trying to achieve by use ODE. I thought this was a more technical challenge, in fact look at the numbers of entries, that's how hard it was.

I thought the challenge was to use ODE, to simulate a realistic physics environment within each programmers idea. I think my shooting gallery successfully shows ODE in action, with far less problems than Ric's code. You seemed to vote for the 'nicer looking game'.

I know Ric spent a LONG time trying to get the physics to work the right way for his pool table simulation, but was unable to get it to work right. He is easily the one of the best graphics programmers without media here. But maybe his choice of projects didn't work as well for ODE. Can you honestly say pool balls break slugishly like that, or that you can shoot through balls when you are too close to them. I know Ric is frustrated with the balls not behaving the right way, and you should have been too.

I did get busy at work and didn't get to add some nicer textures etc, but that should have mattered less than gameplay, and which simulatiion simply worked better with fewer physics problems.

Which entry showed the best use of ODE, more realistic physics, and which programmer made the best use of ODE. We both spent a lot of time struggling with ODE, but which program solved more problems using ODE?
BillR
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 10th Feb 2006 22:44
@Ric - congratulations on your win.
You made a great looking pool table!
I love the textures on the pool balls, you really understand textures very well.

Looking forward to see what your choice for the next challenge will be.
Alexb Orsova
18
Years of Service
User Offline
Joined: 6th Dec 2005
Location:
Posted: 10th Feb 2006 22:48 Edited at: 10th Feb 2006 22:50
@Ric

Here are some ideas that haven't been tried before (I think), just in case you need some inspiration. How about a space simulation, a really cool 3d puzzle or a submarine/underwater simulation?
Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 10th Feb 2006 23:01
@BillR - it's not the first time I've seen a controversial 'ruling' on the Challenge Thread, and it probably won't be the last As few of us here have experience judging competitions, sometimes there'll be rulings that surprise us - it's only to be expected.
The fact that you learned a lot on this challenge, and that you were one of only two who could even enter already puts you head and shoulders above most here - myself especially (I'm a bit scared of the physics).

Congrats on coming 'second' - and depending on how you look at it - at least you don't get the difficulty of trying to decide on the next challenge and judging it. Always hard to do that

Well done Ric - good luck setting and judging the next one!
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 11th Feb 2006 00:06
Trust me - not winning is a blessing in disguise!!

Once idea I recently had, after helping 'The Core' out in one of his threads, was something asteroids based. A simple game involving sprites.

I realise that nearly all our theads have been either 3D based or 2D generated (texture or primitive shape) based. How about an intermidiate stage - something sprite based? Collision on complex sprites? Or maybe asteroids but with some interesting 21st century twist?

I wanted to enter this challenge, but time got the better of me...

BillR
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 11th Feb 2006 01:50 Edited at: 11th Feb 2006 06:30
I like the sprite idea, but I don't know enough about building no-media textures yet. I guess this would be a good chance to learn more about them.

I would probably need to learn from (even borrow) code from past challenges, as far as generating textures. I'm not sure how much texture code I will be allowed to use from other challenge entries, by other people.

Maybe a credit in the source, or something. Maybe we should just find out if we can use whatever we need to ahead of time, or if any programmers object to use of their previous code. I know I don't mind people learning from, or using my code. Maybe this issue was covered in past comments that I missed. Is all of the challege code available for all to use?
Image All
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: Home
Posted: 11th Feb 2006 05:56
How about 3D 6-Degrees Of Freedom flight? Maybe a 6DOF version of asteroids instead of sprites...that'd be cooool...

Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 11th Feb 2006 11:43
Can someone email me when the challenge is set? I want to see if I can code and entry without a working PC

Hmm *thinks of some ideas*

New site!
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 11th Feb 2006 19:05 Edited at: 11th Feb 2006 19:10
Wow - I won! Thanks Sven.

@Bill - I know you're disappointed, but I'm not going to feel too guilty about winning - I've had my fair share of defeats due to controversial decisions. In the past I've won challenges for code I didn't think was that great, and lost challenges for code I thought was my best ever - c'est la vie!

In answer to your question - yes you can use any code from anywhere in the entire challenge thread, so long as you improve upon or extend it in some significant way and give credit to the author. That's rule number 9 in the challenge rules written on the first page.

So, onto the next challenge. Well, I like the suggestion of Asteroids, as I think it's an achievable challenge for newbies and oldbies alike. However, I don't think I'll limit it to just sprites - I'd like to see people do it in their own way, whether using 2d lines as per the original game, sprites, or full 3d - maybe even using the ODE, which I think actually would work for this sort of thing.

So, the next challenge is:

--------------------------------------------------------------------

** ASTEROIDS **

Task: Create a game based upon the original. It can be an authentic remake, or a complete reworking, but I'd like to see some of the basic concepts of the original intact - for example, I think the fragmentation of the asteroids into smaller pieces, and the 'rotate and thrust' control system are important elements that a game would need to still be classed as an Asteroids remake.

Deadline: 2 weeks from today - Saturday 25th February.

--------------------------------------------------------------------

Judging will be based upon:

How much I like it.

WarGoat
20
Years of Service
User Offline
Joined: 19th Sep 2004
Location: Montreal
Posted: 11th Feb 2006 19:56
Does the challenge is just about destroying asteroids or also destroying enemies ships?


Windows XP,pentium IV, 3.0 MGZ, 1024 mb memory, 256 mb video card ATI Radeon XPRESS 200 'sett squadron back on the assault'
Chris Franklin
19
Years of Service
User Offline
Joined: 2nd Aug 2005
Location: UK
Posted: 12th Feb 2006 00:13
i can't think back to what asteriods looked like got any screens?

Theme park simulator 15% Currently making object selection
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 12th Feb 2006 01:11 Edited at: 12th Feb 2006 01:12
The original game looked something like this:



Do a google search and you fill find lots of online versions you can try out. The basic idea was this:

There are lots of asteroids floating around the screen.
You can thrust/rotate your ship to try and avoid them.
You can shoot at them to break them into smaller pieces.
You shoot the smaller pieces to destroy them.
Clear them all, and you move to the next level.


As for alien ships, these appeared from time to time which you could shoot at for bonus points. I seem to remember that they would shoot back at you too. It was a loooooong time ago!

Attachments

Login to view attachments
Milkman
18
Years of Service
User Offline
Joined: 30th Nov 2005
Location: United States
Posted: 12th Feb 2006 03:12 Edited at: 12th Feb 2006 03:21
This challenge sounded like a lot of fun when I read about it, and so far it has been. It's also the first challenge I've ever participated in . I've posted my work so far below. You can't shoot yet, and you don't die when you hit an asteroid.

Rotate your ship with the mouse, and move it with the "w" key. Let me know what you think! (even if it's negative )



formerly xMik
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 12th Feb 2006 04:34
Welcome to the challenge xMik.

That's a great start! You've done some pretty quick coding there. Looks and feels very authentic. The ship moves a bit faster than I remember it doing in the original - not a bad thing, just an observation. Look forward to seeing the next stage of development.

BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 12th Feb 2006 04:46
Can anyone tell me what page the RPGs are on?

[bold]Bmaczero[/bold]
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 12th Feb 2006 10:56
Did you try to search?
http://forum.thegamecreators.com/?m=forum_view&b=1&t=48011&p=35

You entering this one? I'd like to - just that time thing again...

Login to post a reply

Server time is: 2024-11-24 10:59:50
Your offset time is: 2024-11-24 10:59:50