Hi,
This may have been answered, but I have searched thoroughly and haven't found it. I had a decent 2D game in development with DarkBasic Pro, and have recently switched to DarkGDK for the power of C. I'm teaching my Son to program, while getting back into the swing of things myself. Here's the problem, can't get a basic sprite to load with GDK. Code follows, any solutions would be greatly appreciated.
#include "DarkGDK.h"
void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );
dbSetDisplayMode(1024,763,32);
dbLoadImage ("c:\\myship.bmp",1);
dbGetImage(1,0,0,200,200);
while ( LoopGDK ( ) )
{
dbSprite(1,dbMouseX(),dbMouseY(),1);
dbSync ( );
}
return;
}
Originally, I thought maybe the compiler wasn't finding the .bmp file, but I have copied it to every directory I believe relevant, including the Debug and Release folders, and it still doesn't load. I have also tried the .bmp filename with no location (quotes only).