Add a new stage to the game.
Init the game.
Stop the current stage and go to the previous one.
Temporarily suspend the current stage and move to a new one.
Called on each frame to render the states. Don't override this, instead use the stage update method.
Run the game. Call super.run() if you override this.
Set the current stage, either by name (previously registered with addStage) or by the Stage object itself.
Stop the game.
Called on each frame to update the states. Don't override this, instead use the stage update method.
Generated using TypeDoc
Base class for a game with multiple stages/screens. Use this to easily handle the transitions between various stages. It also has a concept of stage stack to temporarily move to a different stage (pushing it on the stack), keeping the state of the current stage and coming back (poping from the stack).