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 / what is this for?

Author
Message
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 3rd Jan 2009 08:08
Hello World haha

well i have darkbasic and i figured i needed to start learning other languages(ones that alot of people actually know) so i'm gunna learn c++ i'm getting visual studio now, and i was wondering if dark gdk is actually fully c++ i'v seen some of the code and it doesn't look like it.


and can i post on this board about just plain C++ stuff also?
jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 3rd Jan 2009 14:36
Yeah, lots of people just ask about C++ here.

Describe what you mean by fully C++? Its not OOP.
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 4th Jan 2009 01:56
nevermind about the fully c++ thing i got it. what i was saying was if it was real C++ commands.

i found out it's Functions. i didn't know that. i am probly just gunna do regular C++ cuz thats what most people use
Slayer93
20
Years of Service
User Offline
Joined: 5th Aug 2004
Location: I wish I knew
Posted: 4th Jan 2009 02:28
DGDK is a library, in C++ your most likely going to have to use some sort of library for whatever project you do.

So if you're trying to say your not going to use any sort of library, that's not what most people do, and your going to have a tough time at that.

jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 4th Jan 2009 03:08
YEah - it's REALLY C++ .... BTW - there are only a handful of REAL C++ commands... seriously.

It's what you make from them... and starting with nothing... Slayer's right... gonna take you awhile. You need libraries... to make a window in windows - you're using a library, to allocate memory ... you use a library...

To make a game? you usually use a ton of libraries... or a handfull... DarkGDK lends itself to the handful... as alot is in there... and for oop - I wrote a thick wrapper to make it much nicer from an intellisense point of view - plus a bunch of neat features... like various mesh/terrain tools and bitmap fonts and a gui...

You should take it for a spin... its pretty decent..

Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 4th Jan 2009 03:48
oh i see. i didn't quite understand what it was. so i library is a set of commands external commands?
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 4th Jan 2009 05:06
Yes, e.g a physics, sound, 3d library.

Its a file thats included in your program, which allows you to call new commands e.g load3dobject, playsound

Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 4th Jan 2009 05:58
oh ok i get it Thanks tons


so you could include abunch in one program? or can you only include one?
Slayer93
20
Years of Service
User Offline
Joined: 5th Aug 2004
Location: I wish I knew
Posted: 4th Jan 2009 06:11
You can include what ever you need, that is why C++ is so great

Don Malone
21
Years of Service
User Offline
Joined: 27th Apr 2003
Location: Birmingham, Alabama
Posted: 4th Jan 2009 14:39
And a big plus is that using the DarkGDK does not make you learn a different type of C++, but just makes it easier to make games. The more C++ you learn, the better your code should be; from what I have read from others.

That is why I am going to try again to learn C++ and the DarkGDK. Again.




If I can just find that darn Lazy switch....


Marx Brothers and Dark Basic Professional Forever
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 4th Jan 2009 16:24
Haha ok thanks guys!

what do you mean i can't find that darn lazy switch....


lol
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 4th Jan 2009 17:07
he means he wants to learn C++ but hasn't got around to it...

Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 4th Jan 2009 23:32
oh lol
Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 7th Jan 2009 01:17
C++ is really easy once you understand the syntax. The biggest roadblock you'll meet are pointers. They should've used C++-strings for the DGDK, it would've made it so much easier on beginners.
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 7th Jan 2009 01:42
I agree with that statement - but I personally forced myself to write my own string functions to get a handle on pointers when I got into C++ heavily... It helped me get proficient at the syntax... like I understood pointers in assembly easier than C++ syntax at first... now its second nature.

Note when I say I wrote my own string classes - I did and do use some staples from the string.h collection - but - only a few for copying bytes and formattng numbers etc.

--Jason

Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 7th Jan 2009 05:16
ok this is probebly gunna sound really extremely noobish but what are pointers and string classes? i'm sorry i literaly have never used C++ at all. the extent of my programming is DBC lol
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 7th Jan 2009 05:25
[href]www.cplusplus.com[/href] <--Find tutorial

pointers are numbers that point to things in memory.. like pictures.. sounds... and classes.

Classes are basically a book you stuff with data and functions... Once the book is "written" you can have "multiple copies" in your program - Think writing the following:

"A Day in the life of a Space Invader"

when the "class" for the space invader is written: How he looks, how he moves, how he dies, what his explosion looks like... then you can make copies... and have a whole bunch of space invaders that all have the same properties - but are in fact "different space invaders".

Now hit the books!

--Jason

Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 7th Jan 2009 05:50
hahah ok I think i have the Sight saved somewhere. so(if your familiar with darkbasic) a pointer would be like asigning a variable to a sound or sumthing? and a class is a hole set of code that can be used over and over throughout your program?

from that a class sounds alot like what is described in dbc as a function.
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 7th Jan 2009 05:54
you're not dead right - but your you're not to far off either....

.... hit the books

(class more like a "Book" of functions... that's why I wrote the sapace invader thing)

Have fun - you have lots to study!

Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 7th Jan 2009 07:08
ok will do sir hahaha

Login to post a reply

Server time is: 2024-11-25 11:41:53
Your offset time is: 2024-11-25 11:41:53