Concept
Scenes
Pixi application lifecycle, one scene per screen.
A scene owns a Pixi Application and the root of its display tree.
slotplate ships one scene (MainScene). Games with splash screens or
bonus games add more.
Responsibilities
- Initialize
Applicationwith the right resolution, antialias, background. - Sync GSAP to
app.tickerviasyncGsapToPixi— once, at boot. - Construct and own the
ReelsEngine. Expose it viacreateReelsEngine(). dispose()destroys the app and all children.
Why scenes, not one root
Splash, main, bonus, free-spin-intro — each has its own display tree, assets, and
lifecycle. Rolling them into one Application leaks resources across
phases. Separate scenes with clear mount/unmount contracts are the smaller error
surface.