Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / ESP Game issues

Author
Message
Chiang Zuki Productions
12
Years of Service
User Offline
Joined: 11th Jun 2012
Location:
Posted: 12th Jun 2012 01:00
I'm new to dark gdk and i've been trying to create an "ESP" game from the Starting out with Games and Graphics in C++ book. First, i want to load and create sprites, so i'm testing it out step by step. However, though my program runs with no errors, i can't seem to get the sprite to be displayed below. Can someone give me some tips on creating sprites? Thanks



#include "DarkGDK.h"


//Function Prototypes
void setup();



//Main Function
void DarkGDK()
{

dbWaitMouse();
}


//Load card images and create sprites
void setup()
{
dbLoadImage("esp_backface_A.bmp",1);
dbLoadImage("esp_backface_B",2);
dbLoadImage("esp_backface_C",3);
dbLoadImage("esp_backface_D",4);
dbLoadImage("esp_circle",5);
dbLoadImage("esp_square",6);
dbLoadImage("esp_triangle",7);

dbSprite(1,200,200,1);




}
DeadTomGC
14
Years of Service
User Offline
Joined: 11th Aug 2010
Location: LU
Posted: 19th Jun 2012 04:41
That's all your code?

You need to turn Sync on and set its rate. Then to display the sprite (or anything else) you need to call dbSync();


Login to post a reply

Server time is: 2024-11-19 00:40:03
Your offset time is: 2024-11-19 00:40:03