Viewing File:v1.2.BETA.md
v1.2.BETA.md•4.8 KB

New Features in 1.2.BETA

🎴 Added Yao (Arcade Card Battle Game)

A fast-paced, cutthroat multiplayer card game built for high-stakes arcade competition. Based on classic shedding card game mechanics with high-chaos house rules.

Core Gameplay & House Rules

  • Color & Rank Matching: Play matching colors or ranks, or drop Wild cards to change the active color.
  • Stacking Draw Penalties:
    • Draw Two (+2) cards can be stacked on top of an existing Draw Two or Wild Draw 4 to pass and accumulate penalty cards to the next player.
    • Wild Draw 4 (+4) cards can only be countered with another Wild Draw 4, creating explosive hand-size swings.
  • ⚡ Jump-In Rule: Any player holding an identical card (same color AND same rank) can play out of turn to immediately cut the line and take over the active turn.
  • 🌀 Chaos 0s & 7s:
    • 0 Hand Rotation: Playing any 0 forces all players to immediately pass their entire hand to the next player in the current direction of play.
    • 7 Hand Swap: Playing any 7 halts play and prompts the active player to choose an opponent to swap entire hands with in real time.
  • Wild Color Wheel: Quick interactive color selector for Wild and Wild Draw 4 cards.
  • Yao Call Enforcement: Players down to their final card must call "Yao!" before ending their turn or risk penalty draws if caught.

Host TV & Mobile Controller Experience

  • Big-Screen Host View (/room/$roomId/host):
    • Panoramic 3D perspective table showing all player positions, hand counts, active player highlight, draw penalty stacks, and directional turn arrows.
    • Interactive swap overlays, celebratory card play animations, and final podium reveals.
  • Mobile Controller (/room/$roomId/play):
    • Touch-friendly curved card fan layout with smooth haptic-style audio feedback.
    • Actionable Draw, Defer, and Jump-In triggers with clear visual affordances for valid plays.
    • Dynamic Hand Swap modal highlighting target opponents with current card counts.

🎁 Unlockable Skins & Mystery Chest Reward System

Unlock exclusive profile skins through arcade achievements and tournament victories.

12 New Unlockable Skins Across 4 Tracks

Players can earn unique SVG character skins by hitting victory milestones across games:

Game TrackSkin NameRequirementCategory
Watermelon MergeLemon1 Watermelon Winwatermelon
Watermelon MergePineapple3 Watermelon Winswatermelon
Watermelon MergeWatermelon10 Watermelon Winswatermelon
WhiplashSprout Tree1 Whiplash Winwhiplash
WhiplashBranch Tree3 Whiplash Winswhiplash
WhiplashGolden Tree10 Whiplash Winswhiplash
YaoChipmunk1 Yao Winyao
YaoBandit3 Yao Winsyao
YaoChef10 Yao Winsyao
Total WinsGolden Champion1 Tournament WintotalWins
Total WinsCyber Master10 Tournament WinstotalWins
Total WinsGalaxy Legend100 Tournament WinstotalWins

📦 Mystery Chest Opening Ceremony

  • Post-Game Unboxing (/room/$roomId/completed):
    • Players earning new skins after a tournament are greeted with an interactive mystery chest reward stage.
    • Features high-resolution animated vector chests (chest-closed.svg and chest-opened.svg), radial glow particles, and ascension animations.
    • Multi-reward unboxing sequence: tap to pop open each chest, reveal the unlocked skin with celebratory audio, and advance to the next reward.

🛡️ Lazy Claiming & Verified Persistence

  • Anti-Spoiler Architecture: getGameResults calculates pending unlocks without immediately writing them to the database (persist: false), preserving the excitement of unboxing.
  • Server-Side Validation (claimUnlockedSkin): Skin claims are validated against the user's historical gameStats records in Neon Postgres before being permanently saved to users.unlockedSkinIds.
  • Missed Reward Recovery (UserProfileCard):
    • If a player skips the post-game ceremony, uncollected skins appear as interactive mini mystery chests directly inside their profile's 4-column skin grid.
    • Clicking any unopened mini chest launches the unboxing reveal and saves the skin to their collection.

🐛 Bug Fixes & Improvements

  • Stat Tracking Parity: All competitive game modes (Watermelon Merge, Whiplash, and Yao) now consistently invoke logGameStats with player placement ranking on game completion.
  • Profile Card Grid: Enhanced skin grid supporting base skins, unlockable skins, interactive reward chests, and locked milestone placeholders.
  • Audio Preloading: Integrated audio effects for chest unlock fanfare and celebratory card plays.