Hello kepler0
to switch to a menu screen when you are in the game, just add in your "key pressed" event handler method something like this
if (e.Code == Keyboard.Key.Escape) {
Options option = EscPressedScreen()
if (option == Options.Exit)
ExitGame(); // exits the application
else if (option == Options.Reset)
......... // resets the game
..............
}
your EscPressedScreen() method would be something like this
private Options EscPressedScreen() { // Options is an enum, but you may use an int
Options option;
while (!Keyboard.IsKeyPressed(Keyboard.Key.Return)) { // when you press Enter the selected
// here you select your option // option is returned
// commonly with the arrow keys
..............
}
return option;
}
if you select "continue game", the method just returns (does nothing) and the game main loop continues.
hope this helps
i wrote in C# cos i don't know too much C++