What problem does it solve? Pixi'VN has no dedicated minigame API, so developers must correctly wire PixiJS gameplay code into the engine's layers, routing, and lifecycle without corrupting the save-able narrative scene graph or losing minigame state on save/reload. ## Core Features & Use Cases - useMinigame lifecycle hook: Creates a dedicated non-save-able canvas layer, runs an async onStart, invokes your game(layer) function, and cleans up the layer and Ticker on unmount. - Routing structure: Gives each minigame its own route (e.g. /minigame/snake) with an optional shared pathless layout route for common hotkeys, pause behavior, and HUD wrappers. - Controls and HUD guidance: Uses hotkeys for keyboard input, plain framework UI for score/game-over overlays, and PixiJS Graphics/Sprite/Ticker for gameplay visuals. - Use Case: Add a snake minigame to a visual novel by creating src/routes/minigame/snake.tsx, building the game loop with a PixiJS Ticker on the minigame layer, and navigating back to the story when the round ends. ## Quick Start Add a snake minigame to my Pixi'VN visual novel using the useMinigame hook on its own route.