SP slotplate
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 Application with the right resolution, antialias, background.
  • Sync GSAP to app.ticker via syncGsapToPixi — once, at boot.
  • Construct and own the ReelsEngine. Expose it via createReelsEngine().
  • 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.