DarkGDK FPS tutorial - basics

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
9,573
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Nov 4, 2008

this is the first tutorial showing how to start making a very simple FPS in DarkGDK and c++. It covers the basics, loading models and movement. Please suggest any future tutorial topics/comment/rate.
thanks for watching :)

full code :-



#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 );
dbLoadObject("Atomiser.x",10);
dbLoadObject("Bezerker.x",20);

dbPositionObject(20,100,0,100);
dbRotateObject(20,-90,180,0);
dbRotateObject(10,-90,0,0);
dbPositionObject(10,10,-15,20);
dbLockObjectOn(10);
// our main loop
while ( LoopGDK ( ) )
{
dbControlCameraUsingArrowKeys(0,2.0f,2.0f);
dbMakeMatrix(4,100,100,10,10);
// update the screen
dbSync ( );
}

// return back to windows
return;
}

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (pqowieuryt101)

  • How do i move the camera with WASD?

  • @MrDuskling look into dbKeyState

  • What skill level is required to make simple nice games with Dark GDK? I mean, I know some C++, not great, but good enough.

  • @djsotos IF statements, functions, do and for loops, arrays and maybe classes. That sort of thing..

see all

All Comments (106)

Sign In or Sign Up now to post a comment!
  • Like cleo mods lol

  • @EpilepticElbow well DarkGDK is based around C++... but C# is quite similar to C++ in terms of syntax so I imagine it would help you, even if just in the understanding of it.

  • @pqowieuryt101 How did i not think of that?

    thanks

  • Cannot open include file: 'DarkSDK.h': No such file or directory

    I did add it to the project folder.

  • Nevermind, I looked on the forums. Thank you SO much! Java was getting on my nerves, and C++ is my kind of language. BTW, I made a Pig Latin/English translator in C++ once XD

  • So, I installed the GDK, but the template doesn't show up in Visual Studio 2010. Is 2008 required? I liked 2008 a lot better...

  • Sorry for double post but this is now the error

    1>c:\users\tom\documents\visua­l studio 2008\projects\fps1\fps1\main.c­pp(19) : error C2146: syntax error : missing ')' before identifier '­f'

    1>c:\users\tom\documents\visua­l studio 2008\projects\fps1\fps1\main.c­pp(19) : error C2059: syntax error : ')'

  • Can you help me? it always comes up cannot find fps1.exe but I thought it would make it by itself? please help :L

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more