pixi-reels

CascadeDropInPhaseConfig

pixi-reels


pixi-reels / index / CascadeDropInPhaseConfig

Interface: CascadeDropInPhaseConfig

Defined in: spin/phases/CascadeDropInPhase.ts:19

Properties#

PropertyTypeDescriptionDefined in
eventsEventEmitter<ReelSetEvents>Reel-set event bus, injected by SpinController.spin/phases/CascadeDropInPhase.ts:45
initialbooleantrue for Moment A (initial spin: every cell drops from above); false for Moment B (refill: only winner-displaced cells animate).spin/phases/CascadeDropInPhase.ts:25
role?"all" | "gravity" | "new"Two-stage refill filter. - 'all' (default). animate every mover: survivors-sliding-down AND new-symbols-from-above. The classic single-phase refill. - 'gravity'. animate only survivors that slide down to fill holes (isNew === false with offsetCells !== 0). New-symbol movers stay repositioned above the viewport with alpha=0. invisible, awaiting the second stage. Emits cascade:gravity:* events. - 'new'. animate only new-symbol movers (isNew === true). Survivors are already at their grid Y from the prior gravity stage, so this phase reveals them at alpha=1 and only tweens the new arrivals down from above. Emits cascade:dropIn:* events. Used by mode: 'gravity-then-drop' on refill() to split one refill into two animated beats with a hold in between.spin/phases/CascadeDropInPhase.ts:43
winnerCellsnumber[]Visible cells whose old symbols were winners. drives per-cell drop geometry. Empty AND initial: false ⇒ no animation on this reel.spin/phases/CascadeDropInPhase.ts:22