I am trying to add a Pause and Start function.
Like this: "Press Enter to start" and "Game Paused, press enter to resume".
where is the problem:
string start = "Press Enter to start"; lblGameOver.Text = start; lblGameOver.Visible = true; //Set settings to default new Settings(); //Set game speed and start timer gameTimer.Interval = 1000 / Settings.Speed; gameTimer.Tick += UpdateScreen; gameTimer.Start(); //Start New game StartGame();
I want the above code to show up when starting the game. Right now it starts immediately.
And when P is pushed, it will pause the game with Game Paused text..
I am a bit stuck..