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 Discussion / The DB Classic Programming Challenge Thread

Author
Message
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 6th Aug 2007 21:22
@INH
Quote: "I can't show you because posting a attatchment automatically makes the atatchment available for TGC to use without any warning to you, in any way that they see fit."

I wouldn't worry, TGC have thousands of media and people they employ to make it. (not thousands of people )

Your signature has been erased by a mod because it was rubbish.
TDK
Retired Moderator
23
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 6th Aug 2007 21:34
Latch:

Sorry - I was referring to the Load command used to load external media.

All:

To end this discussion once and for all, with your entries, your programs cannot use external media. In other words:

* You cannot load images not created by the program
* You cannot load sounds not created by the program
* You cannot load models not created by the program
* You cannot load external files not created by the program

So, if you can paste the whole of your entry into a code box and it only requires others to copy it, paste it into DBC and then run it, it is a legitimate entry.

Obviously you can have your program create external files and then load them, so creating texture files and saving them as BMP's is also within the rules.

The point I was trying to make earlier is that graphics should be created with DB's drawing commands and although technically within the rules, using another program to read in an image created in a paint program and converting it to hundreds of Data statements so you can regenerate the image with the Dot command is really cheating.

As such it can't be prevented, so it's down to the judge and personally I would mark an entry a little higher if it used self-generated graphics rather than what has previously described as a 'scanned' image from a paint program.

At the end of the day, this is a programming challenge thread and is meant to be a bit of fun and something that newcomers can learn from. It's not really about nice graphics - it's more about how something is done...

TDK_Man

Insert Name Here
19
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 6th Aug 2007 21:46
I can't post the media'd version for another reason it seems: The zipped file is over 50mb, whihc is weird cause it's 39.5mb!

I never tell the truth.
That ain't a paradox.
I always tell lies is though.
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 6th Aug 2007 21:46
Luckily we are not computers, so we don't need rules that are that strict. If anyone goes against the spirit of the competition then we can just shun them

Your signature has been erased by a mod because it was rubbish.
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 6th Aug 2007 21:47
@INH
The ZIPPED file is 39MB!!! what's in there?

Your signature has been erased by a mod because it was rubbish.
Insert Name Here
19
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 6th Aug 2007 21:49
A very big final exe. Did you like my RPS?

I never tell the truth.
That ain't a paradox.
I always tell lies is though.
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 6th Aug 2007 21:52 Edited at: 6th Aug 2007 21:52
RPS?
@Forum
the caps lock isn't on!!! don't tell me what to do!

Your signature has been erased by a mod because it was rubbish.
Insert Name Here
19
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 6th Aug 2007 21:54


I never tell the truth.
That ain't a paradox.
I always tell lies is though.
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 6th Aug 2007 22:07
@INH
I enjoyed that; just like Alex the Kidd
Buuuut, you have labels all over the place and they're all tangled up.
I tried to re-order it but it's too tangled
Remember, the main point of gosubs is for readability: so that you can have one line of code in your program that represents a whole block of code (procedure).
And of course you can call the procedure more than once if you need to . Try and re-structure the program so that all your labels are after the main loop.

Your signature has been erased by a mod because it was rubbish.
Insert Name Here
19
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 6th Aug 2007 22:11
Ahhh... my labels!
I tend to make messy code. In my book, if it works, it's OK.

I never tell the truth.
That ain't a paradox.
I always tell lies is though.
luke810
19
Years of Service
User Offline
Joined: 4th Sep 2006
Location: United States
Posted: 6th Aug 2007 22:13
Quote: "In my book, if it works, it's OK."


You're going to end up regretting that statement sometime when you go back to a progam you haven't looked at in awhile and can't figure out how it works.
Insert Name Here
19
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 6th Aug 2007 22:14
True, but I'm not going back to this program.

I never tell the truth.
That ain't a paradox.
I always tell lies is though.
Dark Dragon
18
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 6th Aug 2007 22:18 Edited at: 6th Aug 2007 22:22
Quote: "I tend to make messy code."

Me too.
well my deathmacth arena entry won't be very good if I can't find the rules! What page is it on?
luke810
19
Years of Service
User Offline
Joined: 4th Sep 2006
Location: United States
Posted: 6th Aug 2007 22:30
Quote: "True, but I'm not going back to this program."


Your statement was refering to all of your scripts in general though, not too this specific program.
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 6th Aug 2007 22:32
@DD
This would have been easy to find if people had adopted my "red book" idea. *sulks* I've added one
I'll repost it for you here:

Roddman's Deathmatch Arena Challenge
I'm setting the next challenge as Deathmatch Arena
I was thinking of an FPS type game (although it's not required) where the player can pick the number of enemies they want to fight, also the number of lives they have, etc.

Rules-
Doesn't have to be an FPS (doesn't even have to involve guns)
[Edit] 3d is not required, it can be a 2d game
Killed enemies Must respawn until player wins game
The player will also respawn until they are out of lives
There is no maximum number of enemies to include
[Edit] The minimum number of enemies is 1
You must include a way to keep score

I don't want to get too technical on the rules
Bonus points given for the complexity of the maps again 3d is not required
Bonus points given for extra team members or allys
Bonus points for any other cool things you can think of
[Edit] Better AI will also get more points

I'll set the time limit as two (2) weeks
Deadline Saturday August 18th at midnight (EST)
Give me some feedback on this challenge

Your signature has been erased by a mod because it was rubbish.
Insert Name Here
19
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 6th Aug 2007 22:32
yup. Shame be upon me.

I never tell the truth.
That ain't a paradox.
I always tell lies is though.
Dark Dragon
18
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 6th Aug 2007 22:33 Edited at: 6th Aug 2007 22:34
Hmm...I'll actually sit this one out and join the next one......
EDIT: NEver mind and thanks obese
Insert Name Here
19
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 6th Aug 2007 22:34
NO NO NO NO NO! You must join this challenge, your life depends on it!
No seriously, we still have, what, a week and a half? Have a crack at it.

I never tell the truth.
That ain't a paradox.
I always tell lies is though.
Dark Dragon
18
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 6th Aug 2007 22:35 Edited at: 6th Aug 2007 22:39
okay okay!!!!
I might actually make it one of my patented stickfigure shooters!
Dark Dragon
18
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 6th Aug 2007 22:44
Heres My First entry!

Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 6th Aug 2007 22:47
I'm thinking of doing a king of the hill game!
Here's the idea:
I want to make it 3D (seeing as I always avoid it ).
There will be four teams: Red, Green, Blue and Yellow.
There is one main platform high above the ground, and several routes up to it, the team with the most members on top are "king of the hill" and start gaining points for time spent as king of the hill.
The team with the most points after 3 minutes wins!

I'm gonna need some help with this one. I want the dudes to jump and I want good collisions so that when you jump into a crowd they get scattered in all directions Do I use OBJECT COLLISION for that? or do I need OBJECT COLLISION X, Y and Z

Your signature has been erased by a mod because it was rubbish.
Dark Dragon
18
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 6th Aug 2007 22:48 Edited at: 6th Aug 2007 22:49
hey!!!.....I was going to make multiple teams!!!!!
object coliision x,y,z.
Insert Name Here
19
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 6th Aug 2007 22:50 Edited at: 6th Aug 2007 22:52
Haha, got around the 50mb rule and copyright doodahs...http://www.mediafire.com/?emjjpt26sjn
Edit: @dark dragon- That fake entry... ohhh. If I was a mod...

I never tell the truth.
That ain't a paradox.
I always tell lies is though.
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 6th Aug 2007 23:17 Edited at: 6th Aug 2007 23:18
Here's what I want it to look like:

It's a bit like 3D killer Ludo

Your signature has been erased by a mod because it was rubbish.
Dark Dragon
18
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 6th Aug 2007 23:27 Edited at: 6th Aug 2007 23:35
INH
heheh.
ALL
well i've got my rough draft at least.(Matrix,player,etc.)
EDIT: NOOOOO!!!!!!!!!! NO MEDIA?!!?!?!??! NOOOOOOOOO!!!!!! ahem.
darn. i forgot we couldn't use media....... what about bitmaps?????
MUSIC????? YOU CANT PLAY A SHOOTER WITHOUT MUSIC!!!!!!!*cough* ahem.
Insert Name Here
19
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 6th Aug 2007 23:34
Lol OBese87... more like 3D draughts only in a horrible, DB, ultra 3D 1337 I'm going mad sort of way.

I never tell the truth.
That ain't a paradox.
I always tell lies is though.
Dark Dragon
18
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 6th Aug 2007 23:37
AAAAAAAAGGGGGRRGRHREGGREGHRGREHaglfFGDHKIDVJYSVJ!!!!!!
DARN!!
Insert Name Here
19
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 6th Aug 2007 23:48
You can play a shooter without music. And bitmaps are unneeded.

I never tell the truth.
That ain't a paradox.
I always tell lies is though.
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 7th Aug 2007 00:00
what IS 1337? I keep seeing it but those numbers mean nothing to me

Your signature has been erased by a mod because it was rubbish.
Insert Name Here
19
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 7th Aug 2007 00:30
leet. It's basically using numbers instead of letters, i.e 0 w#@+ @ w0nderfu1 w0r1d, but it also seems to mean good.

I never tell the truth.
That ain't a paradox.
I always tell lies is though.
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 7th Aug 2007 00:34
leet? what the hell is leet? this could last some time

Your signature has been erased by a mod because it was rubbish.
Insert Name Here
19
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 7th Aug 2007 00:38
l=1, e=3,t=7
1337=leet
leet=using numbers as replacements of letters that look simialar.

I never tell the truth.
That ain't a paradox.
I always tell lies is though.
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 7th Aug 2007 00:46
Yeah I get it but what does leet mean?
is the definition of leet: using numbers to replace letters?

Your signature has been erased by a mod because it was rubbish.
Insert Name Here
19
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 7th Aug 2007 00:50 Edited at: 7th Aug 2007 00:53
I think so... let me check... (Elipses!)
EDIT: Wikipedia says it all.http://en.wikipedia.org/wiki/Leet

I never tell the truth.
That ain't a paradox.
I always tell lies is though.
Dark Dragon
18
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 7th Aug 2007 05:37
well i guess you are right. i didn't need those(media).
i'm going to bed. i'll post my rough draft tomorow.
Comrade Robski
20
Years of Service
User Offline
Joined: 12th Sep 2005
Location:
Posted: 7th Aug 2007 12:15 Edited at: 7th Aug 2007 12:16
leet is pronounced 'L eet' - sounds like elite. Believe it or not it was, many years ago, used without sarcasm.

I satrted my entry last night, titled Zombie Deathmatch
Insert Name Here
19
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 7th Aug 2007 12:47
Quote: "Zombie Deathmatch "

That sound ominous...

I never tell the truth.
That ain't a paradox.
I always tell lies is though.
Comrade Robski
20
Years of Service
User Offline
Joined: 12th Sep 2005
Location:
Posted: 7th Aug 2007 14:55
INH: hehe I've wanted to make a zombie game for ages!
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 7th Aug 2007 17:34
If they are already zombies, how can it be a deathmatch?

Your signature has been erased by a mod because it was rubbish.
Insert Name Here
19
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 7th Aug 2007 18:14
I can see your logic. Perhaps they're undead and you've gotta make them unnotdisdead or something random

I never tell the truth.
That ain't a paradox.
I always tell lies is though.
Insert Name Here
19
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 7th Aug 2007 18:14 Edited at: 8th Aug 2007 15:38
Ohhh... I hate this forum double posting on me...

I never tell the truth.
That ain't a paradox.
I always tell lies is though.
Dark Dragon
18
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 7th Aug 2007 18:14
Heres the Draft of my entry! it's in a dba. hope that it helps those who need help.
Insert Name Here
19
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 7th Aug 2007 18:48
Cool. Beats my RPS anyway.

I never tell the truth.
That ain't a paradox.
I always tell lies is though.
Dark Dragon
18
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 7th Aug 2007 19:26
Thanks....
Dark Dragon
18
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 7th Aug 2007 19:59
Heres a small update...you can have 1 ally now.....
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 7th Aug 2007 21:56 Edited at: 7th Aug 2007 22:21
@DD
Code Box!

I did some cleaning on your code


Your signature has been erased by a mod because it was rubbish.
Insert Name Here
19
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 7th Aug 2007 22:53
You know, I think we're gonna have to make something called the Obese function, which basically involves making a specatularly un-neat program and then letting OBese87 clean it up.

I never tell the truth.
That ain't a paradox.
I always tell lies is though.
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 7th Aug 2007 23:31 Edited at: 7th Aug 2007 23:36
I did some more
but it wont work now cos I literally got lost lol

@DD
hope you read some of the stuff I commented and changed as it will be of great help to you when writing in the future


I only started cleaning because I noticed the menu wasn't working properly. Through changing that tiny piece of code I opened a can of worms and the whole thing exploded on me

Your camera angle variables were a bad idea, the camera is a single thing, so it should have one variable. The way you coded it meant that when I toggled the camera angle to check what options there were, BOTH of your camera angles were activated! The result is some bad flickering between the two camera angles.

[EDIT]

Quote: "If mousemovex()+mousemovey() > 0 then show mouse else hide mouse"

sorry that should have been
Quote: "If mousemovex()+mousemovey() <> 0 then show mouse else hide mouse"

As you can move the mouse left and up too!
By adding the two together we are checking for ANY movement of the mouse.

[EDIT]

umm... actually that's probably not good either as if MOUSEMOVEX()=1 and MOUSEMOVEY()=-1 then it still = 0
Quote: "If mousemovex()<>0 or mousemovey()<>0 then show mouse else hide mouse"

That's the one!

Your signature has been erased by a mod because it was rubbish.
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 7th Aug 2007 23:37 Edited at: 8th Aug 2007 00:28
I'm done cleaning
Haven't started my own yet
Hope you learn from that DD or I just wasted a load of time

I might write a tutorial on structuring programs
Gonna take a look at TDK's Tutorial Tutorial if you know what I mean lol

[EDIT]

I've started writing the tutorial, tell me what you think.

Your signature has been erased by a mod because it was rubbish.
roddman
18
Years of Service
User Offline
Joined: 24th Jul 2007
Location: Over There
Posted: 8th Aug 2007 02:25 Edited at: 8th Aug 2007 02:55
@Dark Dragon

Good start, that was a lot like what I originally had in mind. The start menu was a little confusing, maybe you could clean that up a little. Also when the ally shot at the enemy the bullet circled around him but never actually hit him.

Another thing, the code was a little hard to understand. Other than that it is a very good start.

[Edit]
Some of your gosubs don't return to anything they just run into another gosub, or maybe I just couldn't find the return.

[Edit Again]
I've cleaned up your code (slightly) I didn't even go near the loop though.


Cory

Login to post a reply

Server time is: 2026-06-08 08:41:24
Your offset time is: 2026-06-08 08:41:24