Pause function in web game

Typically people use ESC to pause keyboard-controlled games. In a fullscreen web game, ESC is used by the browser to exit fullscreen mode. This is an obvious conflict and a nusiance for the player.

What solutions do you have to get around this?

1 Like
  • Spacebar can be alternate pause button if not used in game, video pattern people will understand
  • Accept that ESC will exit fullscreen and have it pause the game too, use the DefOS HTML5 functions defos.on_click() or defos.on_interaction(). to toggle fullscreen in game
  • Add P key as a pause key, used to be a common thing, have help text on the main menu to remind people that P will pause the game
  • Add a visual menu button that also pauses the game that can be clicked