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.
1024 × 768
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);