feat(game): rewards, shop, profile and settings feel like a game; coin payouts fixed
- Daily reward is a moment: a treasure chest on spinning light rays that
wiggles when ready, a gold "open" button, the chest bursts with the reward
jingle and coins fly to the purse; the week is a grid of reward cards with
the chest on day seven.
- Shop: loot cards framed and ribboned by rarity (grey, green, blue, purple,
gold), drawn previews per item type (mini boards in their colours, piece
sets, framed avatars, effects), coin and gem price tags; Arabic item names
(api/shop.php now sends name_ar).
- Achievements as sticker badges, grey with a lock until earned, gold when
done; chunky gold progress bars. Leaderboard podium medals with ribbons.
Settings: sticker tiles, a green game switch, the delete button is red, and
a credits sheet for the CC BY artists. Profile: framed avatar, crown level,
sticker stats and game marks; the Challenge button pushed a scene that does
not exist and did nothing.
- Signed out there is no HUD or tab bar; login sits in a framed tray with a
big gold "play as guest" button.
- HUD/tab crown uses the optimised crown.webp; wood and crown are preloaded.
- Server: no game had paid coins or XP since 2026-06-18 because award_coins
wrote a transaction type the table's check constraint rejects; fixed in the
database (migrations/2026-10-19-award-coins-type.sql). Online backgammon had
no tables at all; created (migrations/2026-10-19-backgammon-online.sql), and
the backgammon friend invite now writes the same shape as matchmaking.
Co-Authored-By:
Claude Opus 5.5 <noreply@anthropic.com>
Showing
docs/game-ui-brief.md
0 → 100644
Please register or sign in to comment