I am having two problems. First, the quality of the sprite is far lower than the image. The image was initially 512x512. However i took a roughly 100x100 thumbnail of it and it still looked better.
Lastly in the following code, the sprite does not show up at all if in fullscreen. In window mode, everything works fine.
Thanks in advance to anyone that can help
#include "darkGDK.h"
void DarkGDK(void)
{
dbSyncOn();
dbSyncRate(60);
dbDisableEscapeKey();
dbSetWindowPosition ( 0, 0 );
//dbSetWindowOff();
dbSetImageColorKey(255,0,255);
dbColorBackdrop(dbRGB(0,0,0));
if ( dbCheckDisplayMode ( 1920, 1080, 32 ) )
dbSetDisplayMode ( 1920, 1080, 32 );
dbMaximiseWindow();
dbLoadImage("images\\dirt.bmp",1,1);
dbSprite(1,100,100,1);
dbSizeSprite(1,100,100);
while(LoopGDK())
{
//dbShowSprite(1);
if(dbUpKey() == 1)
{
dbMoveSprite(1,1);
}
// dbRotateSprite(1,90);
if(dbEscapeKey() == 1)
{
break;
}
dbSync();
}
dbDeleteImage(1);
dbDeleteSprite(1);
return;
}
I have attached an image showing the quality loss.