PR pixi-reels
API

ReelSet

ReelSet extends PIXI.Container. Add it to your stage, spin it, listen to events.

Spin API

MethodSignatureNotes
spin() => Promise<SpinResult>Start all reels. Resolves when spin:complete fires.
setResult(symbols: string[][]) => voidSet the target grid. Triggers stop sequence.
setAnticipation(reelIndices: number[]) => voidMark reels that should enter ANTICIPATION.
skip() => voidForce-land all reels immediately.
isSpinningreadonly booleantrue between spin:start and spin:complete.

Speed API

AccessorReturns
speedSpeedManager — add/remove profiles
setSpeed(name)Activate a registered profile. Emits speed:changed.

Spotlight API

AccessorReturns
spotlightSymbolSpotlight — dim losers, cycle winning lines, play win animations

Reel access

AccessorReturns
reelsreadonly Reel[]
getReel(i)Reel
viewportReelViewport

Events

Listen via reelSet.events.on(name, cb). See Events for the full list.

Lifecycle

Accessor / Method
isDestroyedreadonly boolean
destroy()Releases all symbols, removes ticker callbacks, removes all listeners, destroys children.

Example

const reelSet = new ReelSetBuilder()/* ... */.build();
app.stage.addChild(reelSet);

reelSet.events.on('spin:complete', (r) => console.log(r.symbols));
await reelSet.spin();