Loopeex shows how to build a full pause screen into your game

Article by Richard Davey. Posted on 30th May 2014.   @phaser_

"OK, let’s assume we have just finished a game with Phaser. Great, but let’s say you want to create a pause screen during your play state. You can pause the entire game with this simple line of code :

this.game.paused = true;

Another alternative would have been to create a new game state “pause” when clicking a pause button, but when entering that state, we would loose all information about our playing state."


Read more