scirra.com/tutorials/646/advanced-game-pausing
Develop games in your browser. Powerful, performant & highly capable.