🎰Core FeaturesComing Soon
Gamble System
The pack-opening-inspired gamble mechanic with weighted odds, cooldowns, and animated reveals.
Video coming soon
Add a YouTube video ID to the topics config
Documentation
Overview
The gamble system lets users risk a player position for a random replacement, inspired by NBA 2K MyTeam pack openings. The result is revealed through a multi-phase card animation.
Mechanics
- Weighted odds — probability tables determine which value tier the replacement player falls into
- Daily limit — 5 gambles per lineup per day
- Cooldown — 30-second minimum between gambles
- Streak tracking — consecutive gamble outcomes are tracked
Outcome Tiers
| Tier | Value Change | Animation Level |
|---|---|---|
| Jackpot | +3 or more | Extreme particles, screen shake |
| Big Win | +2 | Heavy confetti |
| Upgrade | +1 | Moderate celebration |
| Neutral | 0 | Subtle swap |
| Downgrade | -1 | Muted reveal |
| Big Loss | -2 | Dark atmosphere |
| Disaster | -3 or worse | Dramatic failure |
Animation Pipeline
The reveal sequence has four phases: Suspense → Reveal → Celebration → Done
- Mystery card with neutral-to-tier color transition
- 3D card flip with perspective transform
- Outcome-appropriate particles, sounds, and screen effects
- Previous vs. new player comparison
Technical Details
<!-- Add details about selectWeightedValue(), animation timing, sound integration -->Content coming soon — add your video and detailed writeup here.