WOW! Why did you do all this???
1) First of all you don`t need to use <d3d9.h> or <windows.h> header files they are allready included in "DarkGDK.h".
Delete "void game ( void );"
i never saw such declaration:
#include "DarkGDK.h"
void game ( void );
#include <d3d9.h>
#include <windows.h>
Use something like this kind of declaration:
#include "DarkGDK.h"
#include "My_Cool_Header_01.h"
...
...
...
#include "My_Cool_Header_150.h"
//veriables
int MyCoolVariable;
.
.
.
//functions
void MyBestFunction01 (void)
{
};//MyBestFunction
.
.
.
.
//main function
void DarkGDK (void)
{
while ( LoopGDK ( ) )
{
};
};//DarkGDK
2) Next.. delete last "dbSync();" you don`t need it...
and this is LOL never do yhat!
void DarkGDK ( void )
{
game();
}
Try rhis code:
#include "DarkGDK.h"
void DarkGDK ( )
{
dbSyncOn ( );
dbSyncRate ( 60 );
dbLoadImage ( "Login.png", 1 );
dbSprite ( 1, 50, 50, 1 );
dbCreateAnimatedSprite ( 2, "animatedsprite.png", 4, 4, 2 );
dbSprite ( 2, 0, 0, 2 );
while ( LoopGDK ( ) )
{
dbPlaySprite ( 2, 1, 16, 100 );
dbSync ( );
};
return;
}
Best Regards
Dark GDK IS THE BEST!!!!