Hello everyone. Im a bit new here, but been reading quite a bit in this forum. I'll have to admit, it appears to be really friendly. Well anyway, so today I've decided to work on my first "big" project, pong clone for the first time. After getting the clone to work, I decided to create a menu. In the menu function ( I call it Menu() ) I wrote that if the user clicks on "start", the Game() function gets called.
The problem is, when I actually click the "start", the funtion does get called but then exits 1 second later. And I really cant figure out whats causing this. Anyone have maybe an idea on what is going on?
By the way the function looks a bit like this:
void menu( void)
{
if(dbMouseClick() == 1 &&.....) //if user clicks on start
{
game(); //enters the game, but then exits o.O
return;
}
}
Thank you in advance!