New Features in 1.3.BETA
🧮 Added Calc (Speed Math Race)
A fast-paced, 60-second head-to-head arithmetic race supporting 1 to unlimited players (1–∞) in a black and #F96001 orange theme inspired by calc-icon.svg.
Core Gameplay
- Rapid Equation Generation: Randomly pairs two numbers from
[1–10]with an operator from['*', '+', '-']and generates 4 shuffled answer choices (the correct answer plus 3 distinct nearby distractors). - Instant Progression & Elimination: Answering correctly immediately advances to the next equation; selecting a wrong answer disables your controls (
You lose) and marks you eliminated for the round. - Synced 60-Second Clock:
launchGameinitializes acalc_game_sessionsrecord withtimerEpochset to 1 minute after the launch countdown finishes.
Host TV & Mobile Controller Experience
- Big-Screen Host Arena (
/host/$gameId/game/$selectedGameId/calc):- Live Sorted Bar Graph (
CalcBarGraph): Displays each player's solved equation count sorted from most solved on the left to least on the right, with player avatars and nicknames anchored beneath each bar. - Live Broadcast Popups: Incoming player submissions appear at the top with the player's avatar and equation (
4 × 8 = 32) before fizzling away. - Dedicated Audio: Loops
calc.oggbackground music while triggeringcalc-success.mp3on correct submissions andcalc-failure.wavon wrong answers. - Auto-Finish & Results (
/host/$gameId/game/$selectedGameId/calc/result): Automatically redirects when the timer expires or all players are eliminated, preserving the sorted bar graph layout, assigning tournament points (+3 / +2 / +1), and logginggame_stats.
- Live Sorted Bar Graph (
- Mobile Player Controller (
/room/$roomId/game/$selectedGameId/calc&/calc-test):- Mobile-first full-screen 2×2 answer grid that scales cleanly onto larger screens.
- Non-blocking
submitCalcAnswerposts send the player's full equation history + timestamp/status without slowing down input, while Pusher broadcasts only the compact{ equation, status, totalCorrect }delta to keep payloads well under broadcast size limits. - Player results screen (
/room/$roomId/game/$selectedGameId/calc/result) displays individual placement, equations solved, and tournament points earned.
3 New Calc Unlockable Skins
| Game Track | Skin Name | Requirement | Category |
|---|---|---|---|
| Calc | Calc Yellow | 1 Calc Win | calc |
| Calc | Calc Gold | 3 Calc Wins | calc |
| Calc | Calc Galaxy | 10 Calc Wins | calc |
🌟 Subscribers & Patrons Showcase (/patrons)
Celebrate community supporters across YouTube, Instagram, and TikTok.
- Tabbed Channel Directory (
/patrons): Accessible single-row tablist (YouTube,Instagram,TikTok) with keyboard arrow navigation and a responsive 3-column username list that adapts to 2 columns on tablets and 1 column on mobile. - Hero Scrolling Marquee: Replaced the hero quick-features row with a full-width, randomized scrolling marquee combining subscribers from all three channels (
ChannelIcon+ username) that links directly to/patrons. - Footer Navigation: Added a Patrons link in the site footer.
🔊 Audio & Playback Updates
- Tab-First Audio Control: Removed custom in-app mute buttons and
useSound/localStoragemute state so browser tab muting and system volume act as the single source of truth without unexpected mute resets on refresh. - Seamless Track Continuity (
useAudio): UpgradeduseAudioto a shared singleton controller so navigating across routes sharing the same background track (muzak.wavacross Lobby, Setting, Intermission, and Completed) keeps the music playing continuously without restarting from0:00. - Autoplay Recovery: Automatically attaches a one-time
pointerdown/keydownlistener if the browser's autoplay policy blocks initial playback after a hard refresh.
🐛 Bug Fixes & Improvements
- Waiting Room Unlocked Skins (
joinGame): Player waiting rooms (/room/$roomId) now receiveavailableSkins(including previously unlocked skins for signed-in users) directly fromjoinGamewithout running chest unlock evaluations. - Signed-In Ceremony Rewards (
/room/$roomId/completed): RestrictedSkinChestRewardandgetNewSkinsevaluation strictly to users authenticated with Clerk. - Database Documentation: Added
yao_game_sessionsto the schema ERD inREADME.mdand bumpedGLOBAL_VERSIONtov1.3.BETA.