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
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 13th Dec 2005 01:31 Edited at: 13th Dec 2005 01:33
Congrats Nick!

No apologies necessary TDK, I freely admit that I interprated the criterea for this challenge rather loosely, and used it as an excuse to work on something only tenuously related! Well - it's far to early to get in the Christmas spirit yet anyway - Christmas starts when I start my Christmas shopping - and that won't be for at least another week I can tell you!

So - got any ideas for the next challenge Nick? I liked your previous suggestion of a top down racer, if that's any help.

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 13th Dec 2005 01:37 Edited at: 13th Dec 2005 01:39
Not sure yet... I was thinking of some kind of GUI generator. Something people could use if they wanted to make an application and needed a gui, but couldn't make one themselves. It'd be marked based on how easy it would be to "drop it in" a different app...

But then I thought that was boring. Maybe some kind of simple game, rather like that space racing challenge ages ago... Yes.. Actually, I quite like that.. How about a racing challenge, but it must be an "all terrain" type game, like ATR for the Amiga, micromachines, or Generally for the PC. Basically, You'd get marks for playability more than graphics. I dont really care if you're driving a block or a fully rendered to scale F1 car, its more the physics and fun I'm looking for.

Some kind of small car racing game. It could be all on one screen like Generally, or it could be overhead scrolling like ATR or Micromachines.

It'd be cool if there were different terrains.

It'd be cool if there were some way to jump maybe? Or maybe some "weapons" like oil slick?

Tracks dont have to be randomly generated, predefined will do (but remember it has to be in the code)... Maybe have a default track in the code, but make it look for a map file in the c: drive and if it exists people can make their own?

Just idea's... How does this sound to people?

EDIT: Doesn't sound too hard does it?

It would be 2 weeks which would take us up to the week after boxing day?

TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 13th Dec 2005 04:24
I'm pleased you didn't go for the GUI idea as I've more or less finished MenuEdit:

http://forum.thegamecreators.com/?m=forum_view&t=66550&b=8

And, not being able to use the code from it, I didn't relish the idea of starting the same project all over again from scratch!

TDK_Man

RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 13th Dec 2005 06:44
Congratulations Nic!

I'm around and have been lurking. Mostly due to the fact that I had to go for statistics training for my job. The scary thing is that I understood it to a very in-depth degree. Anyway, was fairly tired and had numbers and graphs floating around in my nogin, not at all condusive to any coding of spirit filled screensavers of yule tide festivities.

I would vote for the gui interface, but I don't think it would go over too well either. So an ATR game gets my default vote.


Open MMORPG: It's your game!
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 13th Dec 2005 10:18
Does anyone have any other idea's for a challenge?

Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 13th Dec 2005 11:08
Well done Nic Hadn't run your later versions yet, but the fire was very nice. Your tree cone was a bit funny though

How about a Hogmanay screen saver!
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 13th Dec 2005 12:34
I like the racing game idea. I'm currently making a GUI creation tool too, so I'd have had to sit that one out too. But I love physics coding, so this racing challenge is right up my street!

Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 13th Dec 2005 13:30
Racing I would say too. Besides, it's much more of a challenge, and how do you rate a GUI generator, I can understand maybe if you make it really visually impressive, but it's not exactly playable. I'd go for the racing game (but that's just me)

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 13th Dec 2005 13:37
cool - racing game it is! may the bestestestest win!

Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 13th Dec 2005 14:40
Hoora!

Anywho... Here's my entry so far. It's a cheesy excuse for a Shelby Mustang



Does anyone know how I would put that all into one object. I tryed connecting them as limbs, but it kept giving me errors such as "Limbs must be connected in sequence"

Flindiana Jones
20
Years of Service
User Offline
Joined: 3rd Nov 2004
Location: Bosnian Power
Posted: 13th Dec 2005 14:50
Nice Zotoaster...I'll have to look at how to do that...

Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 13th Dec 2005 14:51 Edited at: 13th Dec 2005 14:59
Thanks

[edit]

Hang on, I'm getting it, ok, I have it as one object, now I need to reposition the limbs etc.

[edit]
Ok, lims positioned, no need to help out

Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 13th Dec 2005 17:47
aww i wish i didn't have to do this in DBP, i've got an oGL engine to the point where it can almost make a game at this level

New site!
Darkbasic MADPSP
19
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 13th Dec 2005 17:52
Making one now

Experienced DB http://www.greatgames3d.com (work in progress site)
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 13th Dec 2005 18:02
@Neofish - I think using oGL would be classed as using external media

Darkbasic MADPSP
19
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 13th Dec 2005 18:14 Edited at: 13th Dec 2005 18:16
making my matrix now any got some code to make a sand texture?

Experienced DB http://www.greatgames3d.com (work in progress site)
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 13th Dec 2005 18:19 Edited at: 13th Dec 2005 18:21
why not just color it yellow for now and worry about textures later?

Alternatively, take a look at the code I used to texture the tree in my previous entry. Modify the bit which makes the colour to make something in a shade of yellow-sandy colour (something like 255, 192 + rnd(32), 0)

For now - I'd be more concerned about how you are going to get good (either fun or realistic) car physics on uneven terrain

EDIT:

Ok - here it is modified for you


Darkbasic MADPSP
19
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 13th Dec 2005 18:21
Thanks nick i'm using a matrix for the shaping gonna find some matrix collision some where

Experienced DB http://www.greatgames3d.com (work in progress site)
Darkbasic MADPSP
19
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 13th Dec 2005 19:30 Edited at: 13th Dec 2005 19:43
Ok so far i have this any suggestions please on the movement



Experienced DB http://www.greatgames3d.com (work in progress site)
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 13th Dec 2005 19:47
Here's a reasonable sand I just did for you.



TDK_Man

Darkbasic MADPSP
19
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 13th Dec 2005 19:50 Edited at: 13th Dec 2005 19:53
Thanks tdk

Shame your not on msn any more


Edit:

Image area Illegal

Experienced DB http://www.greatgames3d.com (work in progress site)
Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 13th Dec 2005 22:14
Works fine here

New site!
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 13th Dec 2005 23:48
Ok, here's my entry so far. Driev around of a scenic landscape with a very smooth matrix (which is actually only 50x50), some OK-ish physics so far. Ground tilting, flying off the ground if you're going up and fast enough (gravity can be altered) etc.

You may notice the car slides when you go fast. That is called skidding what do you expect, it's a Mustang. Anyway, I will add skidding particles later. In the meantime here's the code.



Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 14th Dec 2005 00:31
oh wow thats fun, needs a handbrake

New site!
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 14th Dec 2005 00:33
Ah, ok, I'll do that, but first, bed, I have 3 exams tomorrow. Night.

Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 14th Dec 2005 00:41
Goodluck Zotoaster!
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 14th Dec 2005 00:45
3 exams tomorrow and a challenge entry tonight!! Now THATS dedication!! I'll give that code a go tomorrow - I've just driven to Guildford and back again and I'm pooped!!

Good luck in your exam tomorrow dude

DarkBasic Pro Guy
20
Years of Service
User Offline
Joined: 4th Jun 2004
Location: Broomfield, Colorado
Posted: 14th Dec 2005 01:12
once someone comes up with an easy challenge I will consider giving a try

Computers are stupid all they do is calculate. Your the one that makes the computer do stuff
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 14th Dec 2005 01:50
Zotoaster

I see your having the same problem I always have with cars - when you reach the edge of the matrix, turn around and come back, the car tilts the wrong way on the hills. It tilts down going up a hill and up going down.

I never could get my head around why this happens and/or how to fix it...

Nice entry though!

TDK_Man

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 14th Dec 2005 02:27
Gives me an excuse to finish a piece of code I started a long time ago. Builds a race track object from a memblock.


Deadly Night Assassins
Flindiana Jones
20
Years of Service
User Offline
Joined: 3rd Nov 2004
Location: Bosnian Power
Posted: 14th Dec 2005 03:34
this is my codez so far...but it refuses to color the plain. any ideas? and how would I go about making a texture from scratch? Thanks!



Mason
20
Years of Service
User Offline
Joined: 20th Mar 2004
Location: Arizona
Posted: 14th Dec 2005 06:15 Edited at: 14th Dec 2005 06:16
I haven't looked to see why it doesn't color your plain, but as far as making a texture. Use the 2d Drawing commands such as box, circle, and dot. Then use the get image command to put the image into memory. I usually make a texture thats 256x256. Heres an example of a dungeon wall texture that I did in the past.



Check out Penguin in the Projects Section!!!
http://www.prodigyarts.5gigs.com
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 14th Dec 2005 11:13 Edited at: 14th Dec 2005 15:12
@Zoto - thats really nice! I like that. The skidding is cool I've always liked games where I can powerslide

@Flindiana - Tis a good start, but I have no idea why that plain wont color, all I can think of is its some wierd lighting issue...

EDIT: Peter - how you getting on collating all the challenges?

Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 14th Dec 2005 15:49 Edited at: 14th Dec 2005 15:56
Hi guys. Just finished my exams. I got two Physics ones, General and Credit (General is medium level and Credit is highest level for those who don't know). The Credit one was like 22 pages long . I also did my solo performing exam on my guitar, and that's the one I was most worried about because I'm looking for a carreer in music, but luckily my teacher told me my marks, I got a B for the 1st piece and an A for the 2nd, and apparently that is very good. The only reason I didn't get an A for the 1st was because I was slightly nervous and hessitated sometimes (verrryyy slightly), but good anyway I wont be getting my physics marks till after the holidays.

Anyway,

@Flindiana
I dont know what's up with that, but a good start anyway.

@Mason

Nice so far.

[edit]

@TDK

damn, I was hoping you would tell me how to fix that problem.

@Nick

Thanks

Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 14th Dec 2005 16:00 Edited at: 14th Dec 2005 16:02
Oh

@Mason

when you end a function such as DeleteAll you dont need to type "DeleteAll" after "Endfunction"

Have you tryed out the "flush video memory" command, it deletes everything too

@Flindiana

Perhaps if you put sync on and sync every cycle it might color.. Just a thought

Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 14th Dec 2005 16:25 Edited at: 14th Dec 2005 16:26
Ok, here's some better code now.

I made it so it depends on a different traction if it's in the air, otherwise it slows down as if it was still on the ground. Both tractions can be altered.

I also made the matrix slightly prettier, I abs() it, and made it cragier towards the other side of it, so exlore around it.

I discovered that it only tilts correctly 3 out of 4 times, and I dont know why, I'll have to work this out.



Darkbasic MADPSP
19
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 14th Dec 2005 16:46
Looks really good tell me about it a bit more on msn

Experienced DB http://www.greatgames3d.com (work in progress site)
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 14th Dec 2005 17:20
@Zoto - I really like that, its starting to look exactly like what I was imagining I looked through the code and cant see why the car angles incorrectly, but I think it MIGHT be due to the way you are using nexvalue, etc to calculate the coords of the sides of the car. Wouldn't trig be more simple for this? Then again - I've never entirely understood what the new*value commands do...

Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 14th Dec 2005 17:22
the new~value commands are a longer way of typing x#+sin(ay#)*speed# I don't know why I used it, I'll try changing it, thanks for the comments by the way.

Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 14th Dec 2005 17:23
Good to hear you did Credit Physics You hoping to do the Higher next year then? And if so, a one year Higher?

I did it myself, and it was interesting - but the CSYS was a fizzing nightmare. (I don't think they do CSYS's any more though )

Sorry - I'll try to get back on topic, my bad.
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 14th Dec 2005 18:18
Well yeah, I'm hoping to do a Higher then a Higher still. I must ay too, it is quite interesting, but I just can't get the hang on electronics for some reason .

Anyway, yeah back on topic now

Darkbasic MADPSP
19
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 14th Dec 2005 20:14 Edited at: 14th Dec 2005 20:15
Mines been updated now



Any suggestions? or comments?

Experienced DB http://www.greatgames3d.com (work in progress site)
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 14th Dec 2005 20:29
Comments:

Very interesting little camera you have there, though if you didn't tilt it down maybe it would stay in the air

The texture is nice, perhaps now you should work on some more race like controls?


Suggestions:

Even though your camera is good, it is still quite annoying. Perhaps you can fix it up a little. Here's some code (just to be nice )



You can change the dist variable to whatever you want, it will give the distance you want the camera to be from the player

Also, maybe for your controls you will need to know about trig. Here's a thread.

http://forum.thegamecreators.com/?m=forum_view&t=67107&b=6

TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 14th Dec 2005 20:29
Mason

Wow - that looks a heck of a lot of code for a single texture (but I didn't study it properly I have to admit)!

Here's my stone wall code:



TDK_Man

Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 14th Dec 2005 22:54
Hmm, that's weird, it wont show on mine...

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 14th Dec 2005 23:00
Didn't on mine either - i had to put the paste image into a do-loop...

Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 14th Dec 2005 23:06
Quote: "how you getting on collating all the challenges?"

Heh, i only have 7 done...

i got hit hard in the side of the face by finals like cold sushi

"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: 14th Dec 2005 23:27
hehe cool. Getting hit by sushi sounds nasty.. Especially on top of finals!! Although December is an unusual time of year for those isn't it?! Thought finals were more about May time?

TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 14th Dec 2005 23:32
Quote: " Hmm, that's weird, it wont show on mine..."


Sorry, if you are talking about the texture code I posted, then it's from my Texture making program that I use. But, it's written in DBC and I forgot to put the Sync in so it works in Pro.

Just add a Sync in just before the Wait Key.

Sync
Wait Key

TDK_Man

Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 14th Dec 2005 23:37
ah yes, that is a very fine texure you got there. Now I need to make some sort of smoky texture for my particles.. uhhh, ok, I'll make some circles

Login to post a reply

Server time is: 2024-11-27 19:19:15
Your offset time is: 2024-11-27 19:19:15