Ok this is what I have now...
#include "DarkGDK.h"
void DarkGDK ( void )
{
// turn on sync rate and set maximum rate to 60 fps
dbSyncOn ( );
dbSyncRate ( 60 );
// Set the title of the window
dbSetWindowTitle ( "Simple Fighting Game" );
// Makes the window full screen
//dbMaximizeWindow ();
// load the image for the title screen
dbLoadImage ( "title.png", 1 );
dbSprite(1, 0, 0, 1);
// load the image for the main menu screen
dbLoadImage ( "mainmenu.png", 3 );
//dbSprite(3, 0, 0, 3);
dbCreateAnimatedSprite ( 2, "animatedcursor.png", 4, 4, 2 );
// default position of cursor sprite
int choice = 1;
int choice2 = 1;
dbSprite (2, 90, 361, 2);
do
{
if (dbRightKey ())
{
// quit option
dbSprite (2, 393, 360, 2);
choice = 2;
}
else if (dbLeftKey ())
{
// start option
dbSprite (2, 90, 361, 2);
choice = 1;
}
// animate cursor and update the screen
dbPlaySprite ( 2, 1, 16, 100 );
dbSync();
} while (! dbReturnKey());
// remove images and sprites used for the title screen
dbDeleteSprite(1);
/*dbDeleteSprite(2);*/
dbDeleteImage(1);
/*dbDeleteImage(2);*/
//////////////////////////////////////////
//dbCreateAnimatedSprite ( 4, "animatedcursor.png", 4, 4, 4 );
int n = 0;
//dbText(0,0,"Press ESC to exit");
switch (choice)
{
case 1:
// play the game
dbSprite(3, 0, 0, 3);
int mainX[4];
int mainY[4];
// option 1 coordinates
mainX[0] = 100;
mainY[0] = 100;
// option 2 coordinates
mainX[1] = 100;
mainY[1] = 115;
// option 3 coordinates
mainX[2] = 100;
mainY[2] = 130;
// option 4 coordinates
mainX[3] = 100;
mainY[3] = 145;
do
{
dbSprite (2, mainX[n], mainY[n], 2);
dbPlaySprite ( 2, 1, 16, 100 );
dbSync();
if (dbUpKey ())
{
if (n > 0)
{
--n;
}
}
if (dbDownKey ())
{
if (n < 3)
{
++n;
}
}
} while (! dbReturnKey());
break;
case 2:
// quit the game
// return back to windows
return;
break;
}
//////////////////////////////////////////
// our main loop
while ( LoopGDK ( ) )
{
//update the screen
dbSync ( );
}
// return back to windows
return;
}
[url="http://egregiousgames.blogspot.com"]My blog![/url]
[url="http://www.filesend.net/download.php?f=5a6a23f4e21d1a36bfcc0fefa22e14d4"]My Game![/url]