Switching to a Sub-Game Scene

Demonstrates transitioning between a main world and a sub-game scene using Scene Switch and the Data Registry to pass information between them.

Switching to a Sub-Game Scene, running
1024 × 768
GitHub
const config = {
    scale: { mode: Phaser.Scale.FIT },
    type: Phaser.AUTO,
    width: 800,
    height: 600,
    parent: 'game-container',
    physics: {
        default: "arcade",
        arcade: {
            debug: false,
            gravity: { y: 0 }
        }
    },
    scene: [ Preloader, WorldMap, SubGame ]
};

const game = new Phaser.Game(config);

More in Scenes52 examples