Examples

Multi-scene

Register more than one managed scene and keep scene keys explicit.

The multi-scene example proves that the wrapper is scene-first, not scene-limiting. You can mount more than one scene in the same host and let Phaser coordinate them.

examples/vue/multi-scene/src/App.vue
<PhaserGame :width="800" :height="300" background-color="#0f172a">
  <PhaserScene scene-key="gameplay" :definition="gameplay" />
  <PhaserScene scene-key="hud" :definition="hud" />
</PhaserGame>

Use that shape for gameplay plus HUD, overlay scenes, or other clear scene boundaries that already make sense in raw Phaser.

Copyright © 2026