Vue
Use @onmax/phaser-vue directly in any Vue 3 app for host setup, scenes, primitives, bridge events, and raw Phaser access.
@onmax/phaser-vue gives you the shared runtime without any Nuxt-specific wiring. Use it in a Vite app, inside a component library preview, or anywhere you want Vue around a Phaser canvas.
This track covers the host component, scene lifecycle, primitives, composables, and the imperative escape hatches that keep Phaser in control of hot-path behavior.
Use this section when you already know you want the Vue runtime and you need to decide which part of the API to learn next.
Start in the Vue layer
Follow the guides in order or jump to the topic you need.
Manage scenes
Register managed scenes, control active and visible state, and keep scene keys explicit.
Use primitives
Create containers, images, sprites, and text declaratively when the scene setup is simple.