Hi everyone,
I already have some experience with C++ but I've just begun using Dark GDK. So I wanted to program a simple Noughts & Crosses in 2D. But as I started, I immediately encountered a problem with the background.
My game has a resolution of 700x400 pixel and the background sprites has also the same resolution so it should perfectly fit if I put it in coordinates of X=0 and Y=0. But when I compile it the image is "distorted", stretched to the right and shortened in the bottom.
Here's my code:
------------------------------------
#include "DarkGDK.h"
void DarkGDK(void) {
// sync and fps rate
dbSyncOn();
dbSyncRate(60);
dbSetWindowSize(700,400);
dbSetTextSize(30);
dbShowMouse();
dbLoadImage("graphics/background.png",1);
dbSprite(1,0,0,1);
while(LoopGDK()){
// update the screen
dbSync();
}
return;
}
------------------------------------
As I said, "background.png" has the same exact resolution as the program (700x400 pixels) but it doesn't fit as it should but it is stretched.
Please help