A guide to Phaser States from CodeToWin
From the CodeToWin blog: "Wait.. .what time is it? It’s time for another tutorial! Today, I am going to dive into the code behind the nBack game, and show you how I created the very simple intro screen that doubles as a game options and instructions screen. The concepts presented here can be extended to include different screens for the instructions as well as the options.
The summary is the following: Each Phaser game has what are called “states”. This is much like states in a real life sports game. For American football, you have pregame states, where we are inundated with pointless advertisements and the musings of old has beens on who is going to win the game. The game itself is a state, that has timeout states interspersed throughout. You also have challenge states, when a coach wants to challenge a ruling on the field. You can generalize this to any sport you are familiar with, to gain some basic understanding."