Thanks! I've been working on it and here is the work in progress!
// Dark GDK - The Game Creators - www.thegamecreators.com
// the wizard has created a very simple project that uses Dark GDK
// it contains the basic code for a GDK application
// whenever using Dark GDK you must ensure you include the header file
#include "DarkGDK.h"
bool MouseInBox(int l, int t, int r, int b)
{
int x = dbMouseX(),
y = dbMouseY();
return (x >= l && x <= r && y >= t && y <= b);
}
bool MenuShowing = true;
bool JeapardyTemplateShowing = false;
bool JeapardyQuestion = false;
bool JeapardyQuestionFactor = false;
bool JeapardyQuestion51 = true;
// the main entry point for the application is this function
void DarkGDK (void)
{
// turn on sync rate and set maximum rate to 60 fps
dbSyncOn ();
dbSyncRate (60);
int JeapardyQuestionVariable = 0;
int Score = 0;
int ScoreVariable = 0;
dbLoadImage ("JeapardyMenu&QandATemplate.png", 1);
dbPasteImage (1, 70, 40);
dbLoadImage ("JeapardyTemplate.png", 2);
dbLoadImage ("Score.png", 3);
dbPasteImage (3, 400, 5);
dbLoadImage ("JeapardyQandATemplate.png", 4);
dbLoadImage ("JeapardyQuestion1.png", 5);
dbLoadImage ("Score0.png", 6);
dbLoadImage ("Score1.png", 7);
dbLoadImage ("Score2.png", 8);
dbLoadImage ("Score3.png", 9);
dbLoadImage ("Score4.png", 10);
dbLoadImage ("Score5.png", 11);
dbLoadImage ("Score6.png", 12);
dbLoadImage ("Score7.png", 13);
dbLoadImage ("Score8.png", 14);
dbLoadImage ("Score9.png", 15);
dbLoadImage ("Score10.png", 16);
// our main loop
while (LoopGDK())
{
if (dbMouseClick () == 1 && MouseInBox (90, 150, 240, 200) && MenuShowing == true){
dbPasteImage (2, 70, 40);
dbPasteImage (3, 400, 5);
MenuShowing = false;
JeapardyTemplateShowing = true;
JeapardyQuestionFactor = false;}
if (dbMouseClick () == 1 && MouseInBox (85, 45, 177.5, 65) && JeapardyTemplateShowing == true){
dbPasteImage (1, 70, 40);
dbPasteImage (3, 400, 5);
MenuShowing = true;
JeapardyTemplateShowing = false;
JeapardyQuestionFactor = true;
Score = 0;
dbPasteImage (6, 480, 5);}
if (dbMouseClick () == 1 && MouseInBox (465, 197.5, 530, 212.5) && JeapardyTemplateShowing == true && JeapardyQuestion51 == true){
dbPasteImage (4, 70, 40);
dbPasteImage (5, 85, 160);
JeapardyQuestion = true;
JeapardyTemplateShowing = false;
JeapardyQuestionVariable = 51;
dbBox (365, 280, 520, 350);}
if (dbMouseClick () == 1 && MouseInBox (90, 280, 250, 330) && JeapardyQuestion == true && JeapardyQuestionVariable == 51){
dbPasteImage (2, 70, 40);
JeapardyQuestion = false;
JeapardyTemplateShowing = true;
JeapardyQuestionVariable = 0;
JeapardyQuestion51 = false;}
if (dbMouseClick () == 1 && MouseInBox (257.5, 280, 350, 310) && JeapardyQuestion == true && JeapardyQuestionVariable == 51){
dbPasteImage (2, 70, 40);
JeapardyQuestion = false;
JeapardyTemplateShowing = true;
JeapardyQuestionVariable = 0;
JeapardyQuestion51 = false;}
if (dbMouseClick () == 1 && MouseInBox (365, 280, 520, 350) && JeapardyQuestion == true && JeapardyQuestionVariable == 51){
dbPasteImage (2, 70, 40);
JeapardyQuestion = false;
JeapardyTemplateShowing = true;
JeapardyQuestionVariable = 0;
JeapardyQuestion51 = false;
Score = Score + 1;}
if (JeapardyQuestionFactor == true){
JeapardyQuestion51 = true;}
if (Score == 1 && ScoreVariable == 0){
dbPasteImage (7, 480, 5);
ScoreVariable = 1;}
if (Score == 2 && ScoreVariable == 1){
dbPasteImage (8, 480, 5);
ScoreVariable = 0;}
if (Score == 3 && Score Variable == 0){
dbPasteImage (9, 480, 5);
ScoreVariable = 1;}
// update the screen
dbSync ();
}
}
And if any of you guys want the actual project post on here and I'll work it out then.
Also my c++ 2008 won't run the include iostream, using namespace std, so is there a dark gdk code I could use to animate an image when the mouse goes over it? Would a .png file work if I had it animated?