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
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 26th Feb 2006 12:29 Edited at: 26th Feb 2006 12:30
BillR, how do you shoot?

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: 26th Feb 2006 12:36 Edited at: 26th Feb 2006 12:44
@Sven - The comma ',' key shoots

Look back 3 posts for the keys to use, as well as the top of the source code.

Let me know what you think of the game!
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 26th Feb 2006 17:19
Ok folks - I'm going to take a look at the entries now. Should have the result shortly.

TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 26th Feb 2006 17:22
Damn! I completely forgot about this thread! Guess I'll have to wait for the next challenge.

[url]andrewneale2004@yahoo.com[/url]
http://www.elbsoftware.dbspot.com
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 26th Feb 2006 18:47 Edited at: 26th Feb 2006 18:48
Here goes! Eight entries in total, and in so doing we attained our 3000th post in the thread! Thanks to everyone who took part.

In no particular order ......

Image All

Instead of 'you died' at the end of the game, it should say 'you threw up'! Seriously, playing your game is a health hazard! Apart from the spinny background, though, you have a complete working asteroids game with ship movement, collision detection, a nice double gunned spaceship thing and some asteroids that looked like soft spongey red balls! Good work.

XMilk

From a purists point of view, this was probably the most authentic entry. Looks and feels very similar to the original, with 2d line drawings and fragmenting asteroids, and progressive gameplay (ie levels). Although the gameplay felt slightly slow on my pc, I did enjoy playing this entry.

Darth Vader

The only one to attempt using the ODE physics commands. Not a completed entry, but a start. Hopefully it gave you an insight into the ODE.

Klu 007

Only the ship in this entry, but what you did worked fine. A work in progress.

Zotoaster

Also just the ship - working very nicely. You could use pretty much exactly the same code for an overhead racing car game or a 'thrust' type game.

RiiDii

The most innovative entry by far. True 3d adaptation of asteroids, and as I said earlier in the thread, the idea has a lot of potential. Not just as a game, but maybe even an educational visual aid for teaching young children why we have night and day, sunrise and sunset. Nice graphics for the planet (from the first ever challenge in this thread?) In terms of current gameplay, it works, but after shooting a few asteroids and admiring the graphics and the general idea, there isn't much else yet.

Bill R

After coming 2nd place in the last challenge, you certainly didn't lay down and die. You fought back by creating a very polished asteroids game. You kept the original gameplay, including progressive levels, fragmenting asteroids and even the occassional enemy ship, then added particle effects, explosions, and made some innovative pseudo-2d asteroids by, I think, mixing up the vertices of 3d objects. I especially liked the 'Thanks for playing' message at the end as opposed to the usual 'You're dead'! I thought the choice of keys was a bit unusual, though, and it took a while to get the hang of.

Nicholas Thompson

Another work in progress - just the asteroids working so far. However, some really neat code that is a good example for anyone interested in 2d geometry, user defined types, arrays, functions, and how to combine them all together without things looking like spaghetti. I will be coming back to your code myself in the future for my own education, and rereading the article you linked on points within polygons.

So, the results are:

3rd place:


2nd place:


Honourable mention:


1st place:


Now let's get on with the next challenge - I assume the winner knows his responsibilities!

Milkman
18
Years of Service
User Offline
Joined: 30th Nov 2005
Location: United States
Posted: 26th Feb 2006 19:18 Edited at: 26th Feb 2006 19:33
I'm satisfied. My first challenge and I won second place
Congrats, Bill

edit:
I have two ideas for the next challenge, both of which would be extremely, well, challenging
- a 3d modeller, using memblock manipulation
- a physics system

I know some sort of a modeler was done in another challenge, but not with individual vertex manipulation.

formerly xMik
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 26th Feb 2006 20:14
Congratulations Bill!


Open MMORPG: It's your game!
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 26th Feb 2006 21:31
Well done Bill - I wish I could have got mine finished. Had lots of idea's!!

With my method, it should have been really easy to do lots of things, like maybe making the asteroid split near the point of collision, etc...

BillR
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 26th Feb 2006 23:11
Hey I won! - Thanks Ric! and to everyone with congratulations on my win, xMilk, RiiDii, Nicholas - it was my 1st win....yeah!

Sorry to anyone not able to run my code because you needed DBPro 5.9 to run it. Using the vertex commands in 5.9 really made the asteroids look great. I suspect DBPro 5.9 will be needed in more of the next challenges also.

Great to see all the entries from everyone. I am always amazed at the different approach each person take to solve the same task, that's what creative freedom is all about, and I love to see it in each challenge!

I too would have loved to see more ideas finished, there were some clever ideas being created by everyone, I would have loved to be able to play more of them. Thanks to all who entered, we all learn from the different methods of coding and solving the tasks in the challenge.

Wow, now to choose the next challenge. I didn't have anything in mind yet, so I will take suggestions today, and choose a challenge tomorrow for everyone to start on.

I am intrigued by the idea of a physics system, is that something enough people could enter? Maybe if it showed their physics routines in action in some clever visual way. Or would there need to be a theme for the visual physics demo?

Anyway, give me some ideas for the next challenge, I will think of some ideas also, then I will pick one tomorrow!

Again, GREAT JOB to all who entered the asteroids challenge!
Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 26th Feb 2006 23:15
Well done BillR and everyone else who entered. I had a quick go of trying an entry, but I didn't get far enough to warrant a go

As for ideas for the next challenge - what about a challenge to create a 'visual directory viewer' - like something you'd see in a film though - wildly overgraphicalised. Think the bit in Jurassic Park where the girl resets the security system (it looked like a city with folders for buildings) - or any vaguely sci-fi film where looking at a plain folder structure just isn't cool enough.
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 26th Feb 2006 23:29
Idea - something I have no idea how to do, but something I would love to get my teeth into, and have seen asked about before on the forums:- uv manipulation. In other words, editing the way a texture is applied to a 3d object.

For example, if you wanted to fire a gun and leave bullet marks on the surface of a 3-d object on the right surface and in the right place. Or if you wanted to paint onto the surface of a 3d object 'in-game'. Or if you just wanted to texture a cube with a different image on each face. Or - taking it a step further - if you wanted to lightmap a 3d object.

All these things are a mystery to me because I don't know about texture mapping, uv coordinates, blah blah blah etc. Infact, I'll probably try to learn about it myself anyway, but it always helps when several people are working on the same challenge.

Just an idea.

Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 26th Feb 2006 23:32
Idea 2: Thrust.

I used to love that game!

Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 26th Feb 2006 23:33
Idea 3: A program designed to prevent users triple posting on internet forums?

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 27th Feb 2006 01:01
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 27th Feb 2006 01:58 Edited at: 27th Feb 2006 01:58
Sorry - Lunar Lander. Think the version I had on my Acorn Electron was called Thrust.



Attachments

Login to view attachments
BillR
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 27th Feb 2006 03:22 Edited at: 27th Feb 2006 03:24
@Ric - In the original Asteroids game, 2 buttons on the left rotated the ship, and 2 buttons on the right were for thrust and fire. Maybe most of you are too young to have played the original arcade version.

so WHAT(just kidding) is it about my button usage that you young whipper snappers (young kids) don't like? Or, maybe it was the other buttons I used. Just more info for me to learn from really. And since I an right handed, firing with my right hand worked for me. But, you can change the keys to anything that works better for you. I tried using the mouse, but got MUCH more precise aiming and firing by using the keyboard.

And good job judging the entries, you were quick, and gave good feedback about all the entries....Well Done!
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 27th Feb 2006 09:03 Edited at: 27th Feb 2006 09:05
Ric:
Quote: "The very first bit of code I learned (some time ago, on a ZX81) was:..."


RiiDii:
Quote: "Ric, that wouldn't be the Timex Sinclair ZX81, would it?"


Ric:
Quote: "Yeah, I remember the first thing I actually typed into it was "hello","


Bill, if you know what we were talking about, then you know we ain't so young, seeing as we both apparently owned one .

Quote: "Acorn Electron "

But this thing, I have know idea what he is referring to, so maybe Ric's got me beat.


Open MMORPG: It's your game!
Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 27th Feb 2006 09:30
Acorn Electron! I had one of those. Though, the game was called Mars Lander on my version of it on the Acorn.
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 27th Feb 2006 09:49
Well, if Tinkergirl had one, then I'll assume it's something that never made it to the U.S. as opposed to an age thing.


Open MMORPG: It's your game!
Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 27th Feb 2006 11:04
The Acorn Electron: baby brother to the BBC and the source of my BASIC heritage. No doubt I wouldn't be anywhere near DB were it not for the old Acorn.
Darth Vader
19
Years of Service
User Offline
Joined: 10th May 2005
Location: Adelaide SA, I am the only DB user here!
Posted: 27th Feb 2006 11:18
Quote: "Darth Vader

The only one to attempt using the ODE physics commands. Not a completed entry, but a start. Hopefully it gave you an insight into the ODE."


Heh thanks for mentioning me! Well done Bill your game was excellent even though I too had a tid bit of trouble woth the controls, but all in all it was great!

(Hopefully I will enter the next challange!)

Ohh and I will finish my asteroids game and send it in so just wait a couple of days! (or weeks knowing me!!)

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: 27th Feb 2006 12:05 Edited at: 27th Feb 2006 12:07
@RiiDii - yep, I know what your talking about.

I was really just giving Ric a bit or a hard time for not liking my key choices for my Asteroids game. They seemed fine to me since I used to play Asteroids in the arcade.

And I knew you two were not that young, based on your programming and math skills.

@Darth Vader - Thanks, glad you could play it, some people haven't upgraded to DBPro 5.9, so they couldn't play it. And I do hope you enter the next challenge. And do finish your Asteroids game, then we can see it, and you will have another finished program to add to your library of completed games.


@Everyone - I am leaning toward a lunar lander challenge, what do you think?
I loved the game in the arcades, it would be interesting to see everyones ideas for making it.
I would be allowing either 2D or 3D versions, so people can add some flair to the original game if they would like to.
Darth Vader
19
Years of Service
User Offline
Joined: 10th May 2005
Location: Adelaide SA, I am the only DB user here!
Posted: 27th Feb 2006 12:23
Oh I love that type of game!

@Billr expect an email shortly!

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: 27th Feb 2006 14:14
BillR
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 27th Feb 2006 15:27 Edited at: 2nd Apr 2006 02:05
OK, time for the next challenge.
Well, I liked Ric's suggestion of Lunar Lander.
I think it's a good challenge for newbies and oldbies alike (borrowed from Ric).


So, the next challenge is:
---------------------------

** LUNAR LANDER **

Task: Create a game based upon the original. It can be an authentic remake, or a complete reworking. You are free to choose to make yours a 2D or 3D version.

I will be looking for a little flair for this challenge, that little something extra. It might be a special effect, great thrusters, a good explosion routine, etc.

Deadline: 2 weeks from today - Monday 13th March.
----------------------------

Judging will be based upon:
Who sends me the most money!!!

Actually, the best gameplay will win. It should be fun enough to want to play again and again. Good controls are a must![/b][b]
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 27th Feb 2006 22:57 Edited at: 27th Feb 2006 22:57
@Bill: yes, fair enough.



@Rii: you must have had to do some digging to find that conversation!

As TG said, the Electron was a cut down version of the Acorn BBC Micro, which was introduced into just about every school in the UK in the early 80's. (And there are still a fair few of them kicking about in schools today!)

Looking forward to this Lunar Lander challenge.

Attachments

Login to view attachments
Image All
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: Home
Posted: 28th Feb 2006 00:14
Here's what I have



FunkyStickmen: Battle of the Races (1%)
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 28th Feb 2006 01:25
Quote: "@Rii: you must have had to do some digging to find that conversation!"

Google "Timex Sinclair".


Open MMORPG: It's your game!
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 28th Feb 2006 07:15
I remember the game from the Amiga, I believe it was just called Lander. Though not really a game, it let you fly around the desktop(workbench screen) and land.


BillR
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 28th Feb 2006 07:23
@Phaelax - I remember that too!

I had several Amiga's, really loved what they could do.
Hope you get a chance to enter this challenge.
Darth Vader
19
Years of Service
User Offline
Joined: 10th May 2005
Location: Adelaide SA, I am the only DB user here!
Posted: 28th Feb 2006 09:32
@Billr

Your email doesn't work!

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: 28th Feb 2006 09:55
I had an Amiga 500 then an Amiga 1200 with a 200Mb Hard disk. I personally think the Amiga was a much better/more efficient machine than the IBM PC was at the time.

That would rock so much - a gmae of Lander that you play on the desktop!!!

I wonder how easy it'd be to get a screenshot of the desktop on to DBP...
I have some code from Uni when I did a Computer Vision course which uses a template to find shapes such as horizontal lines... hmm...

BillR
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 28th Feb 2006 12:50
@Darth Vader - sure my email works. I just clicked on my email button on my last post, and sent myself an email, no problems.
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 28th Feb 2006 18:43
Quote: " I personally think the Amiga was a much better/more efficient machine than the IBM PC was at the time."

heck yea it was. i had 3d modelling software which ran on a 12mhz cpu, beat that IBM!


Quote: "
wonder how easy it'd be to get a screenshot of the desktop on to DBP...
I have some code from Uni when I did a Computer Vision course which uses a template to find shapes such as horizontal lines... hmm"

Sounds like you're having the same idea for this that I was.


Philip
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 1st Mar 2006 13:46
I had an Acorn Electron as a kid too. In fact, my parents have still got it - its in its original box in the attic. Amazing machine really. As a child I did just about every outrageous thing that a child can do to something, including at one point accidentally dropping it out the window (don't ask) and it still worked.

I still vividly remember the way it used to load games from the tape recorder I had plugged it into - appalling screeching noise.

Then I bought one of the first ever Workbench v1.2 Amiga 500s that entered the country. Everyone at secondary school mocked me because that was the period of Atari ST dominance. I had the last laugh though. I eventually had to get it replaced with a v1.3 workbench 500 when they were released because I accidentally spilt coffee on the v1.2.

I never made the leap to the 1200. I went up to a PC dx33. I have to say that the PC simply does not have the magic / mystique of the Electron or Amiga.

Great days. Great days.

We should actually have an Official reminiscence at this year's DBPro Con. Maybe we should get people to talk about their old computers and their formative moments with them. That'd be a scream over a few beers

Cheer if you like bears! Cheer if you like jam sandwiches!
Quote of the week: "... I started learning DBP while I was a Satellite Network Controller for the US Army Space Command ... "
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 1st Mar 2006 13:50 Edited at: 1st Mar 2006 13:58
Wont be able to say no to that - ah, I could remise over the C64 or Acorn A3010 (or my RiscPC) for hours...

Developing on a PC is certainly not as exciting as it used to be on "older" machines - possibly because Windows is in such a poor state that the API's are a real pain, or perhaps it does too much for you, or perhaps its just really nostalgia.

Its probably one reason why I've taken to develop stuff on PPC/Smartphones now (aside from the fact that I'm waiting for the GDSK update), the OS is simplier, and you need to work to tight limits (well, if you can call 128Mb tight). Plus the market for these is a lot smaller, so your software is more likely to stand out.

Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 1st Mar 2006 17:42
Quote: "Everyone at secondary school mocked me because that was the period of Atari ST dominance."


Yeah, sorry about that. I actually remember fondly those Atari ST vs. Amiga 'games machine' arguments we would have on the school bus. The ST being far superior due to the built in MIDI ports - which meant it was a 'serious' computer!

My Electron sadly no longer exists on account of the fact that I took it to bits out of curiosity when I was about 15. I agree, throwing it out of a window would have been the safer option.

Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 1st Mar 2006 20:03
Lunar Lander so far:



Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 1st Mar 2006 22:50
Nice start. Although I'd personally get rid of the drag, (ie. make drag=1) and tinker with the values of gravity and thrust (for example grav=0.1, thrust=1.0 gave a better 'feel' I thought.)

RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 2nd Mar 2006 09:14
I still have my Atari (some number) 128k and my Commodore 128. I'm hoping to sell them to a museum for $200.00 some day (anyone remember the planet Irata?). I think the Atari still works, though I would need to find a decent power supply (aka ac adaptor) for it.

Zotoaster: Nice start. A little too fast though, imo.


Open MMORPG: It's your game!
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 2nd Mar 2006 10:04
Nice start!! I'd like to get in on this one... Time restraints could (AGAIN!) be an issue for me!

Darth Vader
19
Years of Service
User Offline
Joined: 10th May 2005
Location: Adelaide SA, I am the only DB user here!
Posted: 2nd Mar 2006 10:13
I have an Atari with the power adapter, controlers and a few games!


















Now were did I put it?

When in Trouble with anything visit here your number one stop for help
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 2nd Mar 2006 13:25
The coding challenge got mentioned in the newsletter again - we're famous here!

Got the day off today due to snow - time to start my entry.

BillR
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 2nd Mar 2006 17:28
@Ric - I saw the mention in the newsletter - great stuff man!

Good Luck on your entry.

And as far as snow goes....ahh...yeah....we have 8-9 feet of snow too....a...here in San Francisco.....yeah....that's the ticket!
Nah...just tons of rain for us, some flooding, no snow.
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 2nd Mar 2006 19:21
IT actually snowed in central london today! Not even our protective layer of pollution was enough to hold back/melt the snow!!!

KimoSabi
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location:
Posted: 2nd Mar 2006 19:46
Haha,

It snowed here in Minnesota today to.

www.mightandmagic.com

Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 2nd Mar 2006 20:00
It was quite sunny here in Glasgow

Matinuker
20
Years of Service
User Offline
Joined: 25th Mar 2004
Location:
Posted: 2nd Mar 2006 20:10 Edited at: 2nd Mar 2006 20:11
Heres my one that I've been working on for 5-10 mins.


I know it's not that good and does almost nothing but
what do you expect from 5-10mins?

Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 2nd Mar 2006 23:48 Edited at: 9th Mar 2006 17:28
Here's my first stab at this challenge. Thought I'd have a go at some proper Newtonian physics!

The rocket has two thrusters, working independently. By using the two thrusters skillfully, you can control both the angular and linear forces you need to steer the rocket. Try getting it to fly to the side for a while, then try to get it to hover, or land gracefully on the landing pad - it's quite tricky to begin with, but after a bit of practice you can get quite good at it.

left thruster: leftkey
right thruster: rightkey



Ignore this:


CuCuMBeR
21
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 3rd Mar 2006 08:04
i just had to say..Matinuker your lander is the most sexy lookin lander ever:p

Login to post a reply

Server time is: 2024-11-24 15:50:46
Your offset time is: 2024-11-24 15:50:46