Ok I started learning C++ and darkGDK yesterday, and I am trying to translate Reapermans Final Fantasy game tutorial onto Visual C++ Express Edition. Atm i have this.
// Dark GDK - The Game Creators - www.thegamecreators.com
// the wizard has created a very simple project that uses Dark GDK
// it contains the basic code for a GDK application
// 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 ( 12 );
// other game settings
dbColorBackdrop ( 0 );
dbHideMouse ();
// load and play sounds
dbLoadMusic ( "intro.mid", 1 );
dbLoadMusic ( "ff1world.mid", 2 );
dbLoadSound ( "close.wav", 3 );
dbSetSoundVolume ( 1, 100 );
dbPlayMusic ( 1 );
// start intro bitmaps
dbLoadBitmap ( "dsp2rpg.bmp", 0 );
dbWait ( 3000 );
dbLoadBitmap ( "dblogo.bmp", 0 );
dbWait ( 3000 );
// our main loop
while ( LoopGDK ( ) )
{
// update the screen
dbSync ( );
}
// return back to windows
return;
}
For some reason I need to maximise the screen then minimize it again for the bitmap images to refresh themselves. Any idea why?
Extremely quick learner