My game has nine sequential scenes + one constant parallel scene to maintain the HUD.
HTML login stuff precedes the Phaser game.
The strategy is to start loading while the player logs in using the HTML,
then launch the HUD (with optional tutorial) and then, one-by-one, each game scene.
I instantiate the
new Phaser.Game with
scene set to an ordered array of all 10 scenes .
I want the HUD and first scene to load - then wait to be started when the player is ready.
Goal: As Scene n plays, Scene n+1 loads and then waits for Scene n to end.
How? Should these scenes be constructed as
active? Should I
sleep() them until ready?
It is a texture-heavy game, and I hoped to have only three scenes loaded at once:
the HUD, the scene in play, and the scene loading up “on deck”.
I have tried everything (details available) and I am lost.