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 / Snippets... of a sort

Author
Message
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 11th Oct 2003 21:41
This post could be around for a while (but then again it may not) so move it if yout hink its in the wrong place....

Could people post snippets of common code e.g. initialisation code such as:

backdrop on : color backdrop rgb(0,0,0) : sync off : sync rate 60

or

the 2 line code snippet for mouselook

thx

The following threads and their accompanying sound tracks are protected by copyright and any broadcast public diffusion, copying and edditing are etc... etc.. you may not complain about my Typo's
Codger
23
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 11th Oct 2003 22:14 Edited at: 11th Oct 2003 22:14
UHH Look in the Spippet's Section

System
PIII 650 MZ H.P. Pavillion
394 Mem GeForce 4 400MX
ReD_eYe
23
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 11th Oct 2003 22:56
or codebase? or look at tutorials+examples that come with dbpro, why do you need this anyway surely you know stuff like that?


Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 11th Oct 2003 23:14
lol

im writting a program that requires this sort of "common stuff"
and the code snippet section is full of snippets specific to somthing.

Im trying to find out what the most common snippets are to db (pro) users. Looking in code base and code snippets only shows me the latest ideas for sections of code people have come up with. Not necessarily the most freuently used or the most wanted

The following threads and their accompanying sound tracks are protected by copyright and any broadcast public diffusion, copying and edditing are etc... etc.. you may not complain about my Typo's
MikeS
Retired Moderator
23
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 11th Oct 2003 23:38
What do you mean? Like the first lines we start our programs out?

Setup:


Don't quite know exactly what you're talking about. Here's some more common stuff I use though.

Movement:


Note: These are taken directly out of one of my programs I'm currently working on.They can be easily modified at your own will if you like.



A book? I hate book. Book is stupid.
MikeS
Retired Moderator
23
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 11th Oct 2003 23:59
I found a mouselook snippet for ya.

http://darkbasicpro.thegamecreators.com/?m=codebase_view&i=a58d5d23b5ba874494126a54328da164

It's for pro.

Credit to:RefuG

A book? I hate book. Book is stupid.
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 12th Oct 2003 00:01
those will do nicely keep 'em coming

The following threads and their accompanying sound tracks are protected by copyright and any broadcast public diffusion, copying and edditing are etc... etc.. you may not complain about my Typo's
ReD_eYe
23
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 12th Oct 2003 11:06
ah i think i get it, are you making another program in delphi that adds common lines of code to your program with a couple of clicks? thta could be very helpful
i use stuff like this


to make 2d images quickly


Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 12th Oct 2003 16:38
lol sort of

im making an ide...

im makng it so that you type INIT and it comes up with a line for program initialisation e.g. backdrop on : sync ..etc...

Also...
If people could put the most commonly made mistakes with spelling of commands that would be good

make obejct ... actually... i think i would be the main contributor

The following threads and their accompanying sound tracks are protected by copyright and any broadcast public diffusion, copying and edditing are etc... etc.. you may not complain about my Typo's
ReD_eYe
23
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 12th Oct 2003 19:22
colour-color
i'm used to it now but it used to annnoy me alot!


Login to post a reply

Server time is: 2026-07-28 07:08:52
Your offset time is: 2026-07-28 07:08:52