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 / any good functions or code snipits any one

Author
Message
Bluecoder
14
Years of Service
User Offline
Joined: 12th May 2012
Location:
Posted: 13th May 2012 05:56
Hi I need any good codes or functions plese

Soon to be Best coder ever.
After I get out of school of course Eigth grade rocks
Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 13th May 2012 07:40
What do you mean "good codes"?

PS You spelled "Eighth" incorrectly in your sig.

WARNING: The above comment may contain sarcasm.
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 13th May 2012 10:22
CODEBASE

Admittedly the new site does not make it easy to locate ^^

Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 13th May 2012 13:30
And don't forget this:

Code Snippets
Seppuku Arts
Moderator
21
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 13th May 2012 14:10 Edited at: 13th May 2012 14:10
I've got some small bits & pieces on my site, but not much.

http://seppukuarts.wordpress.com/tutorials-code-snippets/

But I do plan on adding more & more.

Bluecoder
14
Years of Service
User Offline
Joined: 12th May 2012
Location:
Posted: 13th May 2012 18:57
By good codes I mean anythig that makes coding faster

Soon to be Best coder ever.
After I get out of school of course Eigth grade rocks
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 13th May 2012 20:54 Edited at: 13th May 2012 20:58
Quote: "By good codes I mean anythig that makes coding faster"


which is just what you've been directed to

The only other good code that will make coding faster is:

MakeGame()

...but alas it doesn't exist any more in the latest version.

EDIT: I was wrong, it does still work



Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 13th May 2012 20:58 Edited at: 13th May 2012 20:58
Sometimes it is good to perform a google or forum scope search for a specific piece of code. Many solutions have been solved that you may miss out on unless you make use of the search button and good keywords.

Seppuku Arts
Moderator
21
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 13th May 2012 22:24
Quote: "By good codes I mean anythig that makes coding faster"


You'll have to be more specific, there's all kinds of things that'll make coding faster, but it depends on what you want to do with the code.

But for collections of code, the Codebase and Code Snippets sections are you best bet, just know what you're looking for and you ought to find something to help you out.

danctodd
15
Years of Service
User Offline
Joined: 31st Jul 2010
Location:
Posted: 14th May 2012 04:42 Edited at: 14th May 2012 17:06
I think it makes more sense to just build a game and improve it as you go. If you just get things handed to you, you will not become a great coder. You would be amazed how much trial and error can help evolve your way of thinking and problem solving.

No game is made in one day. Wait, let me fix that. No 'good game' is made in one day.
Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 14th May 2012 07:30 Edited at: 14th May 2012 09:49
@danctodd
What do you mean "good game"?
PS You spelled "sense" incorrectly.


[edit]
Wow the codebase has been filled with useless code!

WARNING: The above comment may contain sarcasm.
Seppuku Arts
Moderator
21
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 14th May 2012 12:31
Dan makes a valid point. It's not necessarily easy to just code a game, you'll encounter various problems you have to work your way out of and it's not necessarily something you can just rely on people's code snippets for. But I think you can learn from other people's snippets and see what they're doing.

I think of programming as talking to the computer in mathematics and with mathematics, you've got a lot of problem solving to do for the computer to understand your instructions properly.

Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 14th May 2012 14:57
I'm glad I started in 1980 when you had to teach yourself. I can think in code, and run the code in my head without even typing it into the computer.

MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 14th May 2012 15:05
Pincho Paxton [FORUM ACHIEVEMENT UNLOCKED-GRAND DADDY STATUS]



Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 14th May 2012 15:15
Seconded.
WLGfx
18
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 14th May 2012 15:24
3rd'd

Mental arithmetic? Me? (That's for computers) I can't subtract a fart from a plate of beans!
Warning! May contain Nuts!
Kevin Picone
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 14th May 2012 15:40
Here's a snippet of my older DARK BASIC source codes

must get around to batching the entire collection up one day..

danctodd
15
Years of Service
User Offline
Joined: 31st Jul 2010
Location:
Posted: 14th May 2012 17:12
@OBese87
Quote: "What do you mean "good game"?
PS You spelled "sense" incorrectly."

I didn't bother reading over my post. But, yes, I see that now. Corrected it.

I mean a game worth playing. So good as in enjoyable, worth the experience, I didn't just waste 2 minutes of my life, this game isn't a hack job, etc.

@Seppuku Arts
Quote: "But I think you can learn from other people's snippets and see what they're doing."

I agree that code snippets can help. I just meant that you should try doing some of your own problem solving. A tool is a tool. Use it if it is there. But try to evolve it, fine tune it and so forth.

Login to post a reply

Server time is: 2026-07-22 00:35:24
Your offset time is: 2026-07-22 00:35:24