Viewing File:v1.3.BETA.md
v1.3.BETA.md•4.5 KBLatest Release

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: launchGame initializes a calc_game_sessions record with timerEpoch set 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.ogg background music while triggering calc-success.mp3 on correct submissions and calc-failure.wav on 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 logging game_stats.
  • 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 submitCalcAnswer posts 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 TrackSkin NameRequirementCategory
CalcCalc Yellow1 Calc Wincalc
CalcCalc Gold3 Calc Winscalc
CalcCalc Galaxy10 Calc Winscalc

🌟 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 / localStorage mute 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): Upgraded useAudio to a shared singleton controller so navigating across routes sharing the same background track (muzak.wav across Lobby, Setting, Intermission, and Completed) keeps the music playing continuously without restarting from 0:00.
  • Autoplay Recovery: Automatically attaches a one-time pointerdown / keydown listener 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 receive availableSkins (including previously unlocked skins for signed-in users) directly from joinGame without running chest unlock evaluations.
  • Signed-In Ceremony Rewards (/room/$roomId/completed): Restricted SkinChestReward and getNewSkins evaluation strictly to users authenticated with Clerk.
  • Database Documentation: Added yao_game_sessions to the schema ERD in README.md and bumped GLOBAL_VERSION to v1.3.BETA.