ever took a look at the M$ Dark GDK ?

Posted By: Anonymous

ever took a look at the M$ Dark GDK ? - 12/18/08 07:04

The code look very similar to lite-c to me wink

Code:
Easy Game Development

Here's an example to show just how easy Dark GDK is:

// whenever using Dark GDK you must ensure you include the header file
#include "DarkGDK.h"

// the main entry point for the application is this function
void DarkGDK ( void )
{
    // turn on sync rate and set maximum rate to 60 fps
    dbSyncOn   ( );
    dbSyncRate ( 60 );

    // switch to the media directory, load our world
    // and turn lighting off
    SetCurrentDirectory ( "media" );
    dbLoadObject        ( "universe.dbo", 1 );
    dbSetObjectLight    ( 1, 0 );

    // load a model for our sky
    dbLoadObject        ( "skybox2.x", 2 );
    dbSetObjectLight    ( 2, 0 );
    dbSetObjectTexture    ( 2, 3, 2 );
    dbScaleObject        ( 2, 5000, 5000, 5000 );

    // position the camera
    dbPositionCamera    ( 434, 42, -517 );

    // camera variables
    float fCameraAngleX = 0.0f;
    float fCameraAngleY = 0.0f;

    // our main loop
    while ( LoopGDK ( ) )
    {
        // move the camera using the arrow keys
        dbControlCameraUsingArrowKeys ( 0, 5.0f, 0.3f );

        // create a rotation axis based on mouse movement
        fCameraAngleX = dbWrapValue ( fCameraAngleX + dbMouseMoveY ( ) * 0.4f );
        fCameraAngleY = dbWrapValue ( fCameraAngleY + dbMouseMoveX ( ) * 0.4f );

        // rotate camera
        dbXRotateCamera ( fCameraAngleX );
        dbYRotateCamera ( fCameraAngleY );
        
        // update the screen
        dbSync ( );
    }

    // return back to windows
    return;
}


http://gdk.thegamecreators.com/
Posted By: oliver2s

Re: ever took a look at the M$ Dark GDK ? - 12/18/08 12:57

Quote:
The code look very similar to lite-c to me


Very simliar but not exactly like lite-c.
Posted By: Quad

Re: ever took a look at the M$ Dark GDK ? - 12/18/08 13:06

well they all look alike c,lite-c,something c... etc.

darkGDK is based on TheGameCreators' darkbasic i guess.

i saw it several times at visual studio express versions' download pages but never tried it.
Posted By: Cowabanga

Re: ever took a look at the M$ Dark GDK ? - 12/18/08 15:46

i guess it's for darkbasic.
Posted By: FBL

Re: ever took a look at the M$ Dark GDK ? - 12/18/08 18:00

I played around with Dark GDK a bit and also finished a small game.
Hooking up Newton for it is not a real problem if you know how to smile
I also dropped my Wiimote code into my Dark GDK project and had it running within an hour.

However I don't think it's really similar to Lite-C.
Ok, you program in C++, so the syntax is quite similar to Lite-C, that is true, but how things work is a bit different.
Especially the object index system is a different approach than the object pointer system (ENTITY*) of A7/Lite-C.
Also collision and particles are done differently.
A real pain was importing objects, as every tool seems to create different .x files.
I finally ended up writing a class for importing Acknex MDL5 files smile

I didn't really feel comfortable with Dark GDK as I'm used to Lite-C/A7 a lot, but you can create things FAST with it - and the tutorials are good enough to get you started. The manual lacks information, though.
© 2024 lite-C Forums