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.

Dark GDK / Darkbasic professional > Darkgdk

Author
Message
Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 29th Oct 2009 23:40
Hey, I've been using darkbasic professional for over a year now, and im getting sick of its lousy speed and limitations. So is it worth ditching Dbpro and learing how to use Darkgdk?
Cash Curtis II
19
Years of Service
User Offline
Joined: 8th Apr 2005
Location: Corpus Christi Texas
Posted: 30th Oct 2009 00:06
Yes.


Come see the WIP!
Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 30th Oct 2009 00:10
Is there any tutorials or anything you would recomend to get me started?
puppyofkosh
17
Years of Service
User Offline
Joined: 9th Jan 2007
Location:
Posted: 30th Oct 2009 00:12
Well you'd learn c++ along the way which is probably more useful in the real world than basic. But I don't know if you get any speed increases from using DGDK unless you combine it with the DirectX functions...
Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 30th Oct 2009 00:18
oh right, i assumed that it would run alot faster when its in Visual C++ because of the compiler etc. So there will be no speed increase?
puppyofkosh
17
Years of Service
User Offline
Joined: 9th Jan 2007
Location:
Posted: 30th Oct 2009 00:42 Edited at: 30th Oct 2009 00:42
I don't know. I can't say either for sure, I've never really compared the two.
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 30th Oct 2009 00:50
Yes, it will be faster. DBP's compiler sucks, to be frank.

"everyone forgets a semi-colon sometimes." - Phaelax
Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 30th Oct 2009 00:52
thats great

Does anybody have any advice on how to get started?
entomophobiac
21
Years of Service
User Offline
Joined: 1st Nov 2002
Location: United States
Posted: 30th Oct 2009 01:09
Learn C++.

Here's a very small checklist:

__ Visual Studio (linker, Preprocessor, Compiler, Debugging, etc.)
__ Types and type casting
__ Pointers
__ Classes and Structs
__ Inheritance and Polymorphism

But by the look of your comments, which are extremely general and somewhat drastic ("lousy speed and limitations" springs to mind) I think you'd be better off diving deeper into DarkBASIC Pro before you head on to greener pastures.

Really, programming logic is a must-know and even if its Object Oriented variant is a bit different from the methods used in the DBP language, having a fundamental understanding of optimization and how game engines work under the hood are the most important lessons of all.

Why must textures always be power of two? How is a 3D mesh loaded into memory and when? What determines what I see on screen?

A lot of stuff happens in the GDK, as well as DBP, that you must know before you call "lousy speed."
Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 30th Oct 2009 01:23
Thanks for the advice entomophobiac,
so what your saying is that i should get to know the ins and outs of darkbasic, before moving onto anything more advanced?

My only problem is that i dont want to grow too attached to darkbasic. Im worried that when i move on to C++ i will not be able to adapt because im used to darkbasic
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 30th Oct 2009 01:48 Edited at: 30th Oct 2009 01:48
C++ can do what DBP can do in a similar way (plus a lot more, of course). The only real difference to start with is the syntax.

Take the following DBPro code:



And in DarkGDK (note that you need a main() function as a staring point)



It's not too hard to get used to these basics. Strings may through you a little because they will introduce you to pointers, but once you understand their advantage, you'll see why they're used

"everyone forgets a semi-colon sometimes." - Phaelax
Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 30th Oct 2009 02:03
Thanks for the reply. Would i be correct in saying that the syntax of C++ is simular to that of PHP?

Also, would it be a good idea to learn pure C++ or use DarkGDK?
cleonjones
14
Years of Service
User Offline
Joined: 24th Oct 2009
Location:
Posted: 30th Oct 2009 02:20
I think it's safe to say the two will go hand in hand.

To create some basic stuff you don't really need anything past basic C++, but it really helps to know how to make your own classes and use pointers and what not if you want to make a large scale game that runs well

?
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 30th Oct 2009 02:33
PHP is similar, with the curly brackets and all, but unlike DBP and C++ is untyped.

DBP has typed variables, but not functions.
C++ has typed variables and functions. That just means that a function must return a value of this type.


DarkGDK is just a library for C++. Using it you can learn C++ relatively easily, and then you can move on to other game engines if you wish.

You will probably find that C++ has special capabilities that DarkGDK simply isn't using (which is a shame, considering OOP is perfect for game programming). Once you're used to C++, you can pick up a game engine more suited to C++.

"everyone forgets a semi-colon sometimes." - Phaelax
Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 30th Oct 2009 02:39
Yeah thats what i love about PHP

Can you use not use OOP if you are using the DarkGDK library?
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 30th Oct 2009 03:05
You can. Problem is that the DarkGDK library is just a series of procedural functions, that don't take advantage of C++'s capabilities.

Here's an example. This is what DarkGDK does:



And this is what it should do:


But, alas, they were lazy

"everyone forgets a semi-colon sometimes." - Phaelax
Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 30th Oct 2009 04:02
I guess i should stick with darkbasic for a while. Like entomophobiac said, theres alot about programming i need to know, and the only way to do that is through experience IMO. Thanks for the advice Zotoaster
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 30th Oct 2009 14:16
Not really. Seeing as DarkGDK does it the first way, it'll be easy to learn, meanwhile you can learn C++ techniques in the pipeline.

"everyone forgets a semi-colon sometimes." - Phaelax

Login to post a reply

Server time is: 2024-10-01 16:44:26
Your offset time is: 2024-10-01 16:44:26