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
19
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 21st Mar 2005 02:53
Didn't want to compile - 'failed to calculate dataoffsetandtype something something .....'

Certainly wins the prize for the longest piece of code entered in these challenges so far, though!


RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 21st Mar 2005 04:09
Heh! Ummm... errr... Do you have all the upgrades?
Maybe it's... ummm... your...
Okay - my bad. Here's the fix
1000 points to the first person who can figure out where the heck that bug was. Talk about a vague reference!

<You think it could simply ignore a couple of extra brackets>

"Droids don't rip your arms off when they lose." -H. Solo

REALITY II
Ric
19
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 21st Mar 2005 05:32 Edited at: 21st Mar 2005 05:36
Nice work so far Rii. I'm only just beginning to get the hang of this as a concept .... tell me if I got this right - you program the AI, you save it to a file, then you pitch your AI file against someone elses, right? I presume you've yet to implement the ability to run two sets of code against each other ...... that must be the 'play' option I guess. When you get this finished, I can forsee the need for a seperate 'battle thread' for people to post their AI codes.


Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 21st Mar 2005 05:34
Ric, check out your ' Create sounds - with no media.' thread


"Lets migrate like bricks" - Me
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 21st Mar 2005 05:47
You got it Ric. The play option will require two loads, which will duel it out, maybe run a best 2 of 3 or something. Other than few mods, it will look a lot like the test mode. Heh, still aways from a battle thread. Got a lot to work out still. I think it needs a few more commands, or modified commands at least.

Btw, everyone, suggestions, comments, bug reports, complaints are all welcome.

"Droids don't rip your arms off when they lose." -H. Solo

REALITY II
Jetmech
21
Years of Service
User Offline
Joined: 25th Oct 2002
Location: Dayton Ohio
Posted: 21st Mar 2005 06:32 Edited at: 21st Mar 2005 06:33
First of all, congrats to all you who created this thread, didnt mean to leave you all out last time, but I now see it was truly a group effort... Kudos

ok, bear in mind this is a rough start, but its kind of like a 3d missle command. you have 5 cities to protect, they are being bombarded by asteroids. simply aim and fire ( target practice mode since thats all i have at the moment )

if you shoot an asteroid in a close group with others, the explosion will cause those close by to explode also.

once again, this is a crude start



Nicholas Thompson
19
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 21st Mar 2005 07:03
Thats not bad JetMech - I had to sync to 60 on my PC to make it playable (either that or I have the hand-eye coordination of a brick wrapped in lemon).

My Website:
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 21st Mar 2005 07:23
Yeah, its a good start Jet.


"Lets migrate like bricks" - Me
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 21st Mar 2005 07:41
Quote: "Certainly wins the prize for the longest piece of code entered in these challenges so far, though!"

Wait till I compress it down and submit it on the 20 Line Challenge Thread!!

"Droids don't rip your arms off when they lose." -H. Solo

REALITY II
Nicholas Thompson
19
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 21st Mar 2005 07:46 Edited at: 21st Mar 2005 08:28
I'd like to enter this one too - but I doubt I'll have time what with work and all.. Shame really, I like a challenge

For those interested, I have names and created a WIP for my last compo entry, Dodge The Fart. I was quite pleased with it. I find it strangely addictive - often like my own farts lmao. (JOKE)

Anywho - Just thought i'd get some free advertising

EDIT:
Link to WIP thread is Here
Link to my projects homepage is here

My Website:
Ric
19
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 21st Mar 2005 08:51
@ Jetmech: That's a really great start. I think it has a nice feel to it. Well, as nice as having an asteroid fall on your head gets, anyway.


RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 21st Mar 2005 08:56
That's neat Jetmech! And tough!

"Droids don't rip your arms off when they lose." -H. Solo

REALITY II
KimoSabi
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location:
Posted: 21st Mar 2005 09:57
WOW that is a cool game i get fps of 405

I must say I am quite a »»ç¶´¬¬Géñíú§¬¬´¶««
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 21st Mar 2005 11:02
I'll join!

"eureka" - Archimedes
Gil Galvanti
19
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 21st Mar 2005 11:31
cool game, but why does it just freeze? is it supposed to?

Video games…they can take you places unreachable, impossible, unfeasible. They put you in the book...they put you in the movie...they put you in a world, a world that before could only be imagined.
Jetmech
21
Years of Service
User Offline
Joined: 25th Oct 2002
Location: Dayton Ohio
Posted: 21st Mar 2005 12:49
Thanx all,

@ Gil, it freezes when all your cities are destroyed,...lol basically cause i was tired and had to get some sleep but wanted to post something first. will add a proper ending and some polishing before the end of the competition

@ Ric, hey do you mind...and is it acceptable if I use your sound function to add some sounds?

thanks for the comments all!

Ric
19
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 22nd Mar 2005 00:52
Quote: "@Ric, hey do you mind...and is it acceptable if I use your sound function to add some sounds?"


Of course you can - and as it's a no media function, it's perfectly within the rules.

I'm working on my entry right now - I like this challenge.

Welcome back Phaelax.


RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 22nd Mar 2005 09:17
Yet another primitive if anyone wants - and thanks to Ric for his vertices functions:

Asteroid Primitive


It's a little slow, so I would recommend making an original object and then cloning or instancing the original object, instead of making a new one each time.

"Droids don't rip your arms off when they lose." -H. Solo

REALITY II
Ric
19
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 22nd Mar 2005 09:38
Interesting - although it's not receiving lighting, as the vertex normals aren't set.

P.S. It wasn't my function - I did use it recently, but it came from the code snippets forum. Can't remember who made it, but I think the full snippet also had set vertex normals in it too.


RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 22nd Mar 2005 10:06 Edited at: 22nd Mar 2005 10:08
It was doing okay until I textured it. I liked the texture more than Color Object, so I left it that way. Anyone can just color it to their liking.

PS. You did fix it the problem on the post I got this from. Correct?
PPS. Can you fix the vertex normals? Honestly, I have only the vaguest clue as to what was being done in those functions.

"Droids don't rip your arms off when they lose." -H. Solo

REALITY II
Ric
19
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 22nd Mar 2005 10:54
I take it back - I think the normals are fine, it's just you had a very dark texture and low emissivity.

eg.




Jetmech
21
Years of Service
User Offline
Joined: 25th Oct 2002
Location: Dayton Ohio
Posted: 22nd Mar 2005 12:55
Update:

now asteroid attack 3d is in color
with sound! ...... thanks to Ric's sound function

asteroids slightly easier to hit....BUT they also now get faster as time goes on

Asteroids now in different shapes and sizes

cheezy score display: asteroid points determined by size and speed
(the smaller and faster, the more points you get for it)

end of game no longer freezes (still havent added a restart tho...sorry)



RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 22nd Mar 2005 14:30
Much more playable Jetmech, I like the new starting speed - it gets you a feel for the game. Maybe increase the rate they speed up so it gets a little tougher a little quicker. Was a little bored after a while (I still like the game!).

"Droids don't rip your arms off when they lose." -H. Solo

REALITY II
Ric
19
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 23rd Mar 2005 07:15
Hmmm - made my computer crash for some reason - but it was fun while it lasted.

My entry is nearly ready for a first posting .... clay pigeon shooting ...... with a machine gun.


Ric
19
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 23rd Mar 2005 08:35
Work in progress:



I'll probably add some more targets, to keep it interesting. At the moment, it's fiendishly difficult. Without making the clay pigeons the size of Zepplins, though, I'm not quite sure how to make it much easier.


Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 23rd Mar 2005 08:50
One thing you should all remember, is to position the mouse in the middle of the screen when the game is running, because I keep clicking outside the window because I don't know where the cursor is, and basically its impossible to play when its like that. Use this:



Please. Looking good so far Ric


"Lets migrate like bricks" - Me
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 23rd Mar 2005 09:47 Edited at: 23rd Mar 2005 09:47
Pretty good start Ric! I think the scoring is off. I missed 2 of 4, but the score said 4 of 4. Later on it seemed to track okay. Odd.

Also, anyone interested, I've moved the AI Tank game over to the WiP Forum. More features, like 111 code lines now. You can also unlock the Code List and leave it in 3D space

"Droids don't rip your arms off when they lose." -H. Solo

REALITY II
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 23rd Mar 2005 13:21
gun shoots too friggin slow. if those were instant bullets i wouldn't have missed any.

"eureka" - Archimedes
KimoSabi
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location:
Posted: 23rd Mar 2005 20:47
ya but if they shot instant the machine gun factor would make the game to easy

I must say I am quite a »»ç¶´¬¬Géñíú§¬¬´¶««
Nicholas Thompson
19
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 23rd Mar 2005 20:53
Hehe.. The Gun-o-instant-death..

My Website:
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 23rd Mar 2005 22:00
Quote: "gun shoots too friggin slow. if those were instant bullets i wouldn't have missed any"

I feel the same way. I only found I could hit the spheres as they were rising.


"Lets migrate like bricks" - Me
Math89
20
Years of Service
User Offline
Joined: 23rd Jan 2004
Location: UK
Posted: 24th Mar 2005 01:03
Here is my code. You have to shoot lots of spaceships in your turrets.

Mouse to aim and shoot
Tab for change turret



Ric
19
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 24th Mar 2005 01:25 Edited at: 24th Mar 2005 01:49
Ok - minor update:



Fixed the scoring, so it only goes up by one each time, and made it easier (I just got 8/10). The clay pigeon now looks more like a clay pigeon, too, and it shatters into two when you hit it.

@Math 89: Nice. Like the way the ships fall out of the sky when you hit them!


Jimmy
20
Years of Service
User Offline
Joined: 20th Aug 2003
Location: Back in the USA
Posted: 24th Mar 2005 02:44
Hey, great entries so far. You guys are teh pwn 4 shuur!

Gil Galvanti
19
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 24th Mar 2005 07:50
@Math89: it says "variable 'global' name is not valid at line 34" when i run your code.

Video games…they can take you places unreachable, impossible, unfeasible. They put you in the book...they put you in the movie...they put you in a world, a world that before could only be imagined.
Jetmech
21
Years of Service
User Offline
Joined: 25th Oct 2002
Location: Dayton Ohio
Posted: 24th Mar 2005 09:23
lol Ric, nice game, makes me feel like im sitting at my drum set when i play!

GJ Math, I like the way the ships fall outta the sky!

Ric
19
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 24th Mar 2005 09:25
Try putting the 3 global commands on seperate lines .....


Jetmech
21
Years of Service
User Offline
Joined: 25th Oct 2002
Location: Dayton Ohio
Posted: 25th Mar 2005 02:54
ok, asteroids now gain speed faster

Hit mouse button two to throw a force field to protect your cities
be carful tho, you can throw to far or to short and it may not cover your city, and it only lasts a couple of seconds

unlimited supply but you can only throw one at a time

(game still kicks my ass tho!)



Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 25th Mar 2005 03:01
Holy crap, they suddenly started raining down like..well, rain!


"Lets migrate like bricks" - Me
Jetmech
21
Years of Service
User Offline
Joined: 25th Oct 2002
Location: Dayton Ohio
Posted: 25th Mar 2005 03:05
when all your cities die they rain down

Digital Dragon
19
Years of Service
User Offline
Joined: 17th Dec 2004
Location: ...
Posted: 25th Mar 2005 05:33
that is kool, i got 638

RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 25th Mar 2005 07:21 Edited at: 25th Mar 2005 07:24
Here's my entry.
Shoot the targets so far. It's not much more than the comp challenge said, "Target Practice". Plan on adding Levels, scoring, and targets that shoot back at higher levels.



"Droids don't rip your arms off when they lose." -H. Solo

REALITY II
Jimmy
20
Years of Service
User Offline
Joined: 20th Aug 2003
Location: Back in the USA
Posted: 25th Mar 2005 12:54
Well they were all great entries, but if I have to pick one, it'll have to be Math89's. Everyone used one weapon and he had the best effects, so.. there ya go.

Félicitations, mon ami attirant.

Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 25th Mar 2005 13:20 Edited at: 25th Mar 2005 13:24
Yeah the only thing wrong with Math89's is there is no crosshair

[edit] And the mouse needs to be centered all the time. I keep closing my it accidently

RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 25th Mar 2005 13:52
Second weapon added. But not in time

"Droids don't rip your arms off when they lose." -H. Solo

REALITY II
Jimmy
20
Years of Service
User Offline
Joined: 20th Aug 2003
Location: Back in the USA
Posted: 25th Mar 2005 13:59
I just hide the mouse and run in fullscreen

Digital Dragon
19
Years of Service
User Offline
Joined: 17th Dec 2004
Location: ...
Posted: 25th Mar 2005 14:54
Math89, that rocks!

Ric
19
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 25th Mar 2005 19:03
@ Math89 - Congrats ..... I trust you know what you have to do now?

@ Jimmy - please also declare a runner up.

Roll on next the challenge ........


RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 25th Mar 2005 22:35
Congrats Math89!!

"Droids don't rip your arms off when they lose." -H. Solo

REALITY II
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 25th Mar 2005 23:10 Edited at: 26th Mar 2005 12:26
Oh- and woohoo!! Post 500!

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II

Login to post a reply

Server time is: 2024-04-19 01:49:50
Your offset time is: 2024-04-19 01:49:50