F048 — Coin Spill Animation
Business Rule
When the player wins (any hand returns a positive payout), a burst of animated gold coins erupts from the win panel and cascades downward across the screen. The coins are displayed in front of the win panel and “YOU WON” overlay. The animation runs for ~2 s of active emission; coins then coast and fade out over their lifespan. The win panel auto-hides after 5 s total.V5 Implementation
V5 uses an animated sprite sheet (coin_anim atlas) rendered in a tight loop. Coins launch from roughly the centre of the win panel and arc downward under gravity, landing across the lower portion of the screen.
The JS client (ShowWinner()) starts the coin animation alongside ramp_loop SFX, and StopWinner() halts both after the display timer expires.
V6 Implementation
The coin spill is a Phaser 3ParticleEmitter (this.coinEmitter), constructed in create() and attached to the ‘coins’ texture atlas.
Emitter Configuration
Emitter Position
panelY + 80 (slightly below panel midpoint).
Timing
Z-Order (depth)
Sound
ramp_loop SFX starts with the coin spill. ramp_loop_end fires after 2 000 ms, overlapping with the coasting-coin phase.