pixi-reels
Reference
Lifecycle

Spin lifecycle

What happens to one reel between spin() and its landing, phase by phase.

Watch a single spin as a player. The five columns start one after the other, a beat apart, with a small backward tug before they fly. They blur for a moment. Then they stop one by one, left to right, each one overshooting the grid and settling back with a bounce. Sometimes the last column slows to a crawl and holds there, teasing a big win, before it finally drops. If the player taps the button in the middle of all that, everything slams into place at once.

None of those columns knows about the others. Each reel walks its own short chain of phases, the named stages of its journey: start, spin, stop, with an optional tease in between. The thing that keeps five independent chains looking like one choreographed spin is thespin controller. It decides when each chain may move on, holds every reel back until your result has arrived, and resolves one promise when the last reel has landed. It never draws a pixel (the reel and its symbols do that) and it never picks an outcome (your setResult()call does that). ReelSet wraps it; most of the public methods you call on the set forward straight to the controller.

The chain, one reel at a time

Figure 1 is the chain a reel walks in standard mode, the ordinary spinning-column look. Read it left to right and then down. The three solid boxes, start, spin and stop, run on every spin. The dashed ones are optional: adjust only exists on a MultiWays board that changes shape, and anticipation only runs when you asked a reel to tease. The grey barrier is not a phase at all; it is a plain await where a reel waits for earlier reel groups to land.

standard modespin() default, or spin({ mode: 'standard' })IDLEat reststart5 stepsstagger herespinuntil resolve()+ min spin timeadjustMultiWaysonlybarrierearlier groupslandedanticipationtease (cut)if listedstopdelay, spinOut,land, bouncelanded_markLandedreelLanded
Standard mode, one reel. Each box is a ReelPhase the controller awaits in turn (the barrier is a plain await). A slam calls forceComplete() on whichever phase is active and lands the reel in the same tick.

Figure 2 is the same chain in cascade mode, the look where symbols fall into the board from above and winning symbols are removed so new ones can drop in. The shape is identical; only the names change. Acascade:fall phase replaces start, and the stop is split intocascade:place (swap the result symbols in) andcascade:dropIn (drop them into the board). Notice that the tease here is a pure hold at speed zero: a falling reel cannot "crawl", so it pauses instead.

cascade mode.tumble() default, spin({ mode: 'cascade' }), every refill()IDLEat restfallcascade:fallreplaces startspinuntil resolve()+ min spin timeadjustMultiWaysonlybarrierearlier groupslandedanticipationpure holdat speed 0placecascade:placeafter stop delaydropIncascade:dropIninitial: truelanded_markLandedreelLanded
Cascade mode, one reel. fall replaces start, place and dropIn replace stop, and the tease is a pure hold at speed 0. The same slam rule applies; a quicken is turned into a slam here.
phase every reel runsstart, spin, stop or their cascade stand-ins
optional phasedashed: adjust needs MultiWays, anticipation needs setAnticipation()
barrieran await, not a phase: no ReelPhase object exists
landed_markLanded(i) resolves the promise once every reel is here

Each phase is itself a short list of steps: the start phase, for example, is a delay, a launch, a backward pull, an acceleration and an announcement. Steps matter because of what a skip press does to them. There are two kinds of press. A slam cancels the whole phase and puts the reel on its result in the same tick. Aquicken is gentler: it removes only the steps markedcut (the start delay, the tease, the stop delay) and lets the rest play, so the reel still spins out, lands and bounces, only sooner. In cascade mode a quicken is turned into a slam (with one warning), because a falling symbol has no "sooner" worth watching. Reels you asked the spin to hold skip the whole chain and simply count as landed.

What the controller owns

The controller is handed everything it needs when the set is built: the reels, the speed manager, the frame builder that turns your result grid into symbol strips, the phase factory that constructs phases by name, the set-level event emitter, the Pixi ticker, a spinning mode (how far the strip moves per frame; StandardMode by default), the default spin mode ('standard' or 'cascade') and an optional bag of hooks. The hooks are how MultiWays and big-symbol features reach in (isMultiWaysSlot, peekTargetShape,clearTargetShape, getPinsOnReel,migratePinsForReel and so on); every one defaults to a no-op, so a plain game pays nothing for them.

It registers exactly one ticker callback. While a spin is running, that callback asks every reel to move (reel.update(deltaMs)) and then gives every active phase its slice of time (phase.update(deltaMs)). It also listens to each reel'slanding event and re-emits it at the set level asspin:reelLanding, so your game only ever subscribes in one place.

The state the controller carries falls into two buckets, and knowing which is which saves a lot of head-scratching: some of it is wiped at the start of every spin(), and some of it survives from spin to spin. The two cards list both; the names are the private fields you will meet in a stack trace.

Per spin, reset by spin()
  • _isSpinning, _spinStartTime, _resultSymbols, _cachedFrames
  • _activePhases: Map<reelIndex, ReelPhase>, _landedReels, _slammedReels, _heldReels
  • _activeSpinSpeed: the profile captured once for this spin
  • every anticipation field: reels, stagger, slowdown, curve, cells, duration, protect, _teasingReels, _anticipatedReels
  • _reelLandedPromises: one landing promise per reel, used by 'sequential' stagger and group barriers
  • skip state for the press: _wasSkipped, _skipMode, _skipCtx, _skipPending, _quickenedReels, _quickenBatches
Persisting across spins
  • _stopDelayOverride and _dropOrder (setStopDelays, setDropOrder)
  • _reelGroups and _groupOfReel (setReelGroups)
  • _minimumSpinTimeOverride (setMinimumSpinTime)
  • defaultSkipMode, public, default 'slam'
  • round-level skip state: _skipStage (0, 1, 2), _skipPreviousSpeedName, _skipBoostedToName, _manualSpeedSinceBoost, _autoSlamRefills
  • promise plumbing: _currentSpinResolve, _currentSpinReject, _pendingAbortError, _spinWatchdogCleanup
  • _spinGeneration: the abort switch, see below

What spin() does before any reel moves

From the player's side, spin() is the instant the columns lurch. Inside, a fair amount of housekeeping happens first, all in the same tick, and the order matters when you are debugging. Here it is as a list.

  1. Refuse to start if a spin is already running. If the abort signal you passed is already aborted, reject at once.
  2. Work out the spin mode. 'cascade' needs the cascade:fall phase to be registered, which .tumble() does; 'standard' needs at least one trailing buffer cell (bufferEnd >= 1) on every reel, because strip scrolling has to have somewhere to pull the next symbol from. Either failure throws.
  3. Close the previous round, unless this spin is a continuation of one (round.continueRound, which expand() steps use). If an earlier skip boosted the speed and you have not called setSpeed() since, the previous profile is put back; the skip stage returns to 0 and the cascade auto-slam flag is cleared.
  4. Reset the per-spin state from the left-hand card above: result, every anticipation setting, the quicken sets, the landed and slammed sets, the active phases. Fresh landing promises are created. A press carried over from the previous expand() step becomes a pending skip. The stop-delay override is deliberately kept.
  5. Tidy holdReels: out-of-range, non-integer and duplicate entries are dropped.
  6. Build the stagger ranking, but only for expand() steps that use stagger: 'spinning'.
  7. Bump the generation counter (explained below) and capture the active speed profile once. Every phase in this spin receives that same object, which is why a speed change always takes effect on the next spin, never mid-spin.
  8. Emit spin:start, create the promise you will await, and arm the watchdog.
  9. If every reel is held, finish on the next microtask with no animation at all.
  10. Otherwise start a chain for every reel that is not held. All chains begin in the same tick; the stagger you see comes from each start phase's delay step, not from the controller starting them late.

Each chain runs inside a small safety net (_runReelTask). If a chain throws, the controller logs a phase-chain-threw notice and slams the spin, so your promise resolves with wasSkipped: trueinstead of hanging forever. Errors that belong to an older spin are dropped.

One reel's chain, from the inside

Now the part that produces what the player sees. This is the chain the controller runs for one reel (_startReel), in order. The player only notices four moments in it: the lurch, the blur, the optional hesitation, and the landing.

  1. Tell the reel its reference speed, the profile's spinSpeed. The reel uses it to normalise its own speed and to bound its drive.
  2. Cascade only: if a MultiWays reshape is already waiting, apply it now so the reel falls at its new height.
  3. Start. The lurch. Create the start phase (or cascade:fall) with a delay of _staggerIndex(i) * spinDelay, so reel 0 goes at once and reel 4 waits four beats.
  4. Spin. The blur. Create the spin phase with a minimum spin time: the per-reel override from setMinimumSpinTime, or 0 if a quicken has already reached this reel. Do not await it yet.
  5. If this reel is the last one to enter its spin phase, emit spin:allStarted and try to open the stop gate (next section).
  6. Now await the spin phase. It completes only after the controller has told it the result is in and its minimum spin time has elapsed.
  7. Adjust (MultiWays only). Commit the reshape, emitting adjust:start and adjust:complete. An actual adjust phase is only created when there are pin overlays to animate.
  8. Group barrier. Keep spinning at full speed until every earlier reel group has landed.
  9. Look up this reel's stop delay, its target frame (the symbols it must land on) and the tease length: the setAnticipation duration if given, else the profile's anticipationDelay.
  10. Tease decision. The hesitation. The reel teases if it is on the anticipation list, the tease length is above zero, and no quicken has touched it. It first waits out its stagger offset at full speed, then joins the teasing set, tells the reel (notifyAnticipationStart, so a symbol can drop its blur), emits anticipation:reel and then spin:stopping, and runs the anticipation phase. Afterwards it joins the "anticipated" set only if the tease played to its end. A reel that does not tease emits spin:stopping and moves on. The anticipation page has the shapes.
  11. Stop. The landing. Standard mode creates the stop phase with the target frame, a delay (0 if the reel was quickened, else its stop delay) and preserveSpeed set when the tease played to the end and nothing quickened it; a quickened reel's phase is primed so its cut steps are skipped from the first one. Cascade mode halts and snaps a teased reel first, then runs cascade:place after the stop delay and cascade:dropIn.
  12. Mark the reel landed.

The generation counter

A chain is a series of awaits, and a lot can change while one is parked: the player can slam, the game can abort, the set can be destroyed. The controller needs a cheap way for a chain to notice, after each await, that the world has moved on and it should stop quietly. That is thegeneration counter, a single integer that goes up on everyspin() and refill(), on a full slam, and ondestroy(). Each chain remembers the value it started with and compares after every await; a mismatch means "stale, stop here".

A partial slam, which lands some reels while others keep spinning, must not bump the counter, or it would strand the reels still running. So the stale check has a second clause: a reel is also stale if it is in the slammed set. The watchdog, the abort callbacks and the safety net check the generation too. One ordering detail worth knowing: destroy() bumps the counter before it force-completes phases, so no chain can start a fresh tween during teardown.

setResult and the stop gate

From the player's seat, the reels blur until the game "knows" the outcome, then start dropping. The thing that connects those two moments is thestop gate. Your setResult(symbols) call does nothing if no spin is running. Otherwise it checks any big-symbol blocks against the pending MultiWays shape (one warning for misaligned wide blocks), stores the grid and tries to open the gate. After that it fires any press that was queued with requestSkip(), and, if an earlier press in a cascade round asked for it, presses a side-effect-free slam. At the ReelSet level the same call first asserts that no nudge is in flight, validates the grid and overlays any pins.

Figure 3 is the gate itself. It is tried from three places, and it only opens when both conditions on the left are true: the result is in, and every live reel has reached its spin phase. Notice the third trigger, a partial slam: without it, a reel that got slammed before it ever reached its spin phase could leave the gate closed for good.

setResult(symbols)your callspin:allStartedthe last reel to enter spinpartial slam_slamTargets, re-check_tryBeginStopSequence()the gateresult set?_resultSymbols is not nullevery live reel in spin?each non-held, non-landed reel is in 'spin'yesclosedreturn, wait forthe next triggernonogate opensbuild and cache one frame per reel,spinPhase.resolve() on every live reelyes
The stop gate. _tryBeginStopSequence() is called from three places and only opens when the result is present and every live reel is inside its spin phase.

Opening the gate does not drop the reels. It builds one frame per reel (the exact symbols each will show, buffers included) and tells every spin phase "you may finish". Figure 4 shows what each reel still has to get through after that before it starts spinning out: its own minimum spin time, its group turn, an optional tease and its stop delay. This is why an early result still produces a staggered landing.

gate opensspinPhase.resolve()min spin timeper reel, from itsown spin entrygroup barrierearlier groupslandedteaseoffset + hold, onlywith setAnticipationstop delaythen spinOut,land, bounce
Even after the gate opens, each reel still waits for its own minimum spin time, its group turn, an optional tease and its stop delay before it spins out.

The minimum spin time is there so a result that comes back instantly does not produce a spin that is over before the player has seen it move. It is counted in ticker deltas, not wall-clock time, so it pauses while the tab is hidden, and the reel caps any single delta at MAX_TICK_MS(100 ms). When the gate opens the spin phase marks itself ready and completes either at once, if the minimum has already passed, or on the first update where it has.

The stop delay is what spreads the landings out. The controller picks it from the first rule that applies, top to bottom.

If you setReel i waits
a drop order, setDropOrder('ltr' | 'rtl' | 'all', step)its position in that order times step; the default step is max(active.stopDelay, 150)
an explicit list, setStopDelays([...])the entry for i; entries past the end give 0
reel groups, setReelGroups([...])its position within its group times the profile stopDelay
nothing_staggerIndex(i) times the profile stopDelay

One note from reading the code: the doc comment onReelSet.setDropOrder describes a different default step than the one the code uses; the code (max(active.stopDelay, 150)) is the source of truth. The timeline page runs these rules with real numbers.

Reel groups and held reels

Reel groups let you say "these reels land together, and only after those". setReelGroups(groups) must list every reel exactly once or it throws, and it throws if any reel has already landed in the current round; pass null to clear. Groups persist across spins. While stopping, a reel waits at the barrier until every earlier group has landed, and its stop delay becomes its position within the group times the profile's stopDelay. A skip press frees only the next group that has not landed. If reels are added or removed later, new reels are appended as one trailing group and removed reels are filtered out.

Held reels (spin({ holdReels })) are the ones a feature keeps still while the others respin. They skip start, spin and stop entirely and keep whatever symbols they show. They count as landed from the beginning, so the spin finishes when the number of landed reels equals the number of live ones. They never emit spin:stoppingor spin:reelLanded, setAnticipation drops them silently, their columns in your result grid are ignored, and their frames are built empty. A big-symbol block may not cross from a held reel into a live one.

Finally, spin({ mode }) overrides the builder's default spin mode for this one spin. The mode decides start versus fall, stop versus place-and-drop-in, which side effect a skip press has, and whether a quicken becomes a slam. refill() always runs in cascade mode.

Inside each phase

A phase is an object that runs a named list of steps and completes when the last one is done. Figures 5 and 6 lay out the lists for the four built-in phases. In both, the tinted steps are the ones marked cut: a quicken skips them and lets the rest play. Look at the spin phase in particular. Its single "wait" step cannot be skipped from inside at all; the controller completes it from outside, and a quicken only drops its minimum to zero.

startStartPhasedelayi * spinDelaycut steplaunchbeginMotion()instantpullspeed to -2over 50 msaccelerateto spinSpeedover 300 msannouncenotifySpinStartinstantspinSpinPhasewaitresolve() from the stop gateand elapsed >= minimumSpinTime
The start and spin step lists. Tinted steps are marked cut: a quicken skips them and lets the rest play. The spin wait is not skippable at all; the controller force-completes it from outside, and a quicken only drops its minimum to 0.

Figure 6 is the stopping half. Notice that only the first step of the stop phase is a cut step: the spin-out, the landing and the bounce always play under a quicken, which is exactly what makes a quicken feel like "hurry up" rather than "stop now".

anticipationAnticipationPhaseteaseduration ?? anticipationDelaycut stepstopStopPhasedelayspeed keptcut stepspinOutsetStopFrame(frame)drain the sequencerlandhaltDrive, snapToGridnotifyLandedbouncebounceDistance overbounceDuration
The anticipation and stop step lists. A quicken skips the tinted cut steps, so spinOut, land and bounce still play. A slam cancels the running step instead: onSkip places the strip on the frame, resets the container and snaps.

Start is the lurch. On entry it gives the reel its spinning mode and halts any leftover drive, then runs its steps. The delay is the stagger. The pull is the small backward tug the player sees before the reel flies: speed goes to -2 over 50 ms with power1.out, and the step only exists when the profile's bounceDistance is above zero (no bounce, no pull). Accelerate then ramps tospinSpeed over 300 ms with power2.in, and announce tells the reel it is spinning. The phase is both skippable and quickenable. Under a slam it forces the reel to full speed and announces; under a quicken it does the same and then completes itself, because "at full speed" is already its natural end pose. A phase registered with a steps editor can rewrite this list.

Spin is the blur, and the odd one out. It has no motion of its own; the reel is already flying, so the phase is really a wait with two conditions: the gate has opened, and at least the minimum spin time (config.minimumSpinTime ?? timing.minimumSpinTime ?? 500) has passed. It is quickenable but not skippable: a slam does nothing in its skip handler because the controller completes it from outside, and a quicken sets its minimum to 0 and completes it if the gate is already open. It emits nothing beyond phase:enter and phase:exit.

Stop is the landing. It records the container's position on entry so the bounce has a home to return to, then walks its four steps. During the delay the reel keeps whatever speed it has, which after a tease is the slow tease speed. The spin-out loads the full target frame into the reel's stop queue; from then on, every time a symbol wraps off the strip, the next result symbol is pulled in, and the step waits until the queue is empty. With preserveSpeed the speed is kept, clamped between 8% and 100% of spinSpeed; otherwise it returns to full speed. The land step halts the drive (never "speed = 0", which a drive would ramp back up), snaps to the grid and raises the reel's landingevent. The bounce is a two-leg timeline: out by bounceDistancein half the time, back in the other half, with bounceEase(default power1.out); a distance of zero is treated as already settled. The slam path halts the drive, places the strip straight onto the frame, resets the container to its recorded home before snapping (snapping mid-bounce used to lock in the overshoot) and marks the phase done.

Adjust only exists on MultiWays boards. The reshape geometry is already applied by the time the phase runs; all it does is tween pin overlays from their old position and scale to the new one overpinMigrationDuration (200 ms, power2.out), or snap when the duration is zero. The three cascade phasesare all skippable and quickenable; their slam pose is their natural end, so a quicken completes them. Fall defaults to 300 ms sine.in, drop-in to 600 ms power2.out with a 60 ms stagger between cells. The cascade page covers them.

The phase base class

Every phase extends ReelPhase. A subclass gives it a name, says whether it is skippable and quickenable, and implements three things: what to do on entry, what to do each update, and what to do when a press arrives. In return it gets the reel, the raw speed profile, a resolvedtiming for this phase (the profile with the phase's section and any whenAnticipated override folded in), and a context that says which reel this is, whether it teased to the end earlier this spin, and whether it has been quickened. The methods the controller calls on it are in the table.

MethodWhat it does
run(config)marks the phase active, stores the config, applies any primed quicken, emits phase:enter, calls onEnter and returns a promise whose resolver emits phase:exit first
_complete()cancels the steps and resolves that promise once; this is how control passes on, the controller awaits run() and then creates the next phase. Phases never create their successor
skip(ctx)does nothing if inactive. Quicken: swaps in ctx.speed if given, marks the phase quickened, calls onSkip only if quickenable, then drops the cut steps; it does not complete the phase. Slam: only if skippable, cancels the steps, calls onSkip, completes
forceComplete(ctx)a slam that ignores skippable; the controller uses it for its own slams
primeQuicken(ctx)marks a phase created after the press, so it starts quickened and its cut steps are skipped from the first one
attachContext(ctx)called once by the factory when the phase is created

The steps system

A step is a tiny object with a name, a run function and an optionalcut flag. Its run function can return one of four things: a GSAP animation (killed on cancel), a promise (stopped through the step's abort signal), a small cancellable such as the bounce, or nothing at all for an instant step. A phase's step list is a plain array, so you can edit it. The editors insertBefore, insertAfter,replaceStep and removeStep each return a copy and throw on an unknown name, listing the names that do exist. You pass an editor when registering a phase, asregister('stop', StopPhase, { steps }).

When a phase runs its list it warns once if the profile configures a step name the list does not have, cancels any previous run, and completes the phase after the last step. Instant steps chain in the same call. The two cards show what a step can see while it runs and what it reports.

StepContext
  • reel, container, main ('x' | 'y'), gsap
  • profile: the phase's timing
  • step: readonly StepTiming[]: this step's entries from profile[phase].steps[name], with whenAnticipated merged over; built-ins read step[0]
  • anticipated, quickened, config, phase, signal
  • wait(ms): a GSAP delayedCall that resolves early on abort
  • until(predicate): checked from tickSteps() each update
phase:step statuses
  • start, end: the step ran normally
  • skipped: a cut step a quicken never started
  • cut: a cut step a quicken stopped while it was running
  • cancelled: stopped by a slam or by destroy()
  • payload { phase, step, status } on reel.events; phase:enter and phase:exit wrap the whole phase
  • StepTiming is { ease?, duration? }

Where phases come from

The controller never constructs a phase directly; it asks thephase factory for one by name. The factory pre-registersstart, spin, stop andanticipation. register(name, PhaseClass, options?)stores a recipe that builds the class with those options;registerFactory(name, fn) is for phases that need extra arguments or should be chosen per reel or per tease state. Asking for an unknown name throws and lists the registered ones; has(name)is what the spin-mode check and refill() use.

Registration order is what lets you override anything. The builder wires the four built-ins first, then .tumble() adds the three cascade phases, then MultiWays adds adjust, and your own.phases(f => ...) configurators run last, so they can replace any default.

Spinning modes

A spinning mode answers exactly one question: how many pixels should the strip move this frame, given the cell pitch, the current speed and the frame's delta. The reel asks it on every update. StandardModecomputes slotPitch * speed * deltaMs / 1000, caps it at half a cell per frame, and lets a negative value through for the start pull. CascadeMode multiplies by gravity (1.5), caps at one cell and never goes negative.ImmediateMode always returns 0 and leaves placement to the phase. Landing, frames and timing never belong to a mode. One thing to note from reading the code: the profile documents spinSpeedas pixels per frame, while StandardMode treats it as cells per second with that half-cell cap; themotion page has the pixel arithmetic.

How the promise resolves

When a reel's chain reaches the end, the controller marks it landed. That call is idempotent and does its work in a fixed order: add the reel to the landed set; resolve the reel's landing promise, which releases anyone waiting at a group barrier or on a 'sequential' tease; emitanticipation:reelEnd if the reel was teasing; emit the reel's own landed and then the set-level spin:reelLanded; settle any quicken batch that has now fully landed. When every live reel is down it finishes the spin.

Finishing has two paths. If the spin was aborted, the promise rejects with the abort reason and no success events fire. Otherwise the controller builds the result, clears its per-spin state, tells the MultiWays hook to clear its target shape, emits spin:allLanded and thenspin:complete, and resolves with the object in the table.

SpinResult fieldValue
symbolsstring[][], one column per reel
wasSkippedtrue after any slam or quicken, including the error-recovery slam
skipMode'slam' | 'quicken' | null
skipContextSkipContext | null; { mode: 'slam' } for engine slams
durationms since spin()

Two safety valves sit around the promise. If you passoptions.signal, aborting it rejects the spin with the signal's reason; if you pass options.timeoutMs (off by default, values of 0 or less ignored), the spin rejects when it expires. Both land the reels on a clean grid through an abort slam before rejecting, so the board is never left mid-motion. Refills have no watchdog and no reject path.

Defaults

The numbers this page mentions, in one place, with the step that reads each.

SettingDefaultRead in
minimumSpinTime500 msSpinPhase, when the profile has none
accelerationDuration / accelerationEase300 ms / 'power2.in'StartPhase accelerate
pull-2 for 50 ms, 'power1.out'StartPhase pull, only if bounceDistance > 0
bounceEase'power1.out'ReelPhase.bounce
preserveSpeed floor / cap0.08 x spinSpeed / 1.0 x spinSpeedStopPhase spinOut
defaultSkipMode'slam'SpinController, builder skipMode()
pinMigrationDuration / Ease200 ms / 'power2.out'AdjustPhase
CascadeMode gravity1.5spin/modes/CascadeMode
MAX_TICK_MS100Reel.update
timeoutMsoffspin() watchdog
StandardMode caphalf a cell per framecomputeDelta
Where this lives
  • packages/pixi-reels/src/spin/SpinController.ts: spin(), _startReel, _runReelTask, _isStale, _tryBeginStopSequence, _stopDelayFor, _markLanded, _finishSpin, _abortSpin
  • packages/pixi-reels/src/spin/phases/ReelPhase.ts, steps.ts, PhaseFactory.ts
  • packages/pixi-reels/src/spin/phases/StartPhase.ts, SpinPhase.ts, AnticipationPhase.ts, StopPhase.ts, AdjustPhase.ts, Cascade*Phase.ts
  • packages/pixi-reels/src/spin/modes/: StandardMode, CascadeMode, ImmediateMode
  • Guide: spin lifecycle. Next: a spin in milliseconds, skipping.