"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."
If you wish to post comments on our site, you'll need an account. Please login or register.
Login Register