I am trying to get a menu screen before my code runs, this is a snippet of what I have, can anyone tell me what I am doing wrong? When I run it my program runs a frozen white screen.
//global
bool startMenu;
case WM_CREATE:
startMenu = true;
if(startMenu == false)
{
GAME CODE HERE //works fine without menu code...
}
else
{
while(startMenu == true)
{
background1->Draw(hdc);
if(_kbhit())
{
startMenu = false;
}
}
}
Well I dont think that will help, I am trying to get the if statement to skip the game code and run a start menu and wait for any key to be pressed, then loop back to the game code when any key is pressed.