feat(site): add Prisma Arcade - #8143
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
The latest updates on your projects. Learn more about Argos notifications ↗︎ Awaiting the start of a new Argos build… |
Restyle /arcade on the Eclipse design system with the standard site nav and footer, feature Comet Cat in the hero next to a top-ten leaderboard with initials entry and the $500-Prisma-credits prize callout, and move the other five games into a compact dialog grid. Extract the shared game scaffolding (phase machine, score banking, clamped rAF loop, held keys, HUD/overlay shell) into game-kit.tsx and fix the input, cleanup, and timing bugs found in review. Scores stay in localStorage until the global leaderboard backend lands. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Bring back the original neon takeover look (starfield, grid floor, CRT scanlines, pixel type, ticker, no site chrome) on top of the polished structure: Comet Cat stays the featured game beside the hall-of-fame leaderboard with initials entry and the $500-Prisma-credits prize callout, and the other games remain in the cabinet grid opening into retro-styled dialogs. The game kit and gameplay fixes are unchanged. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Add a fullscreen toggle to the shared game shell so every game, led by Comet Cat, can be played full screen with the canvas scaling to the display. Make the hall of fame compact: top three by default with a top-ten expander that auto-opens when a claim lands below the fold, and move its storage behind async fetch/submit functions that become the global leaderboard API calls when the backend lands. Quiet the landing view down so Comet Cat is the single focal point: static title, one line of hero copy, slower ambient animation, no CRT flicker, dimmer ticker and leaderboard chrome, plus an explicit back-row link so the other five games are still discoverable. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
What this is
Prisma Arcade is a playful
/arcadepage for prisma.io: six tiny retro games built by the Prisma team, with Comet Cat as the featured game and a high-score leaderboard wired for a $500 in Prisma credits contest.This PR takes the original experimental arcade and makes it merge-ready. The page keeps its full retro CRT takeover aesthetic, and underneath it the six games now share one engine kit, the leaderboard and prize messaging are in place, and the input, cleanup, and timing bugs are fixed.
Page structure
/arcadeintentionally hides the site nav and footer and brings its own look: starfield, synthwave grid floor, CRT scanlines and vignette, glitch title, bottom ticker, and an "exit to prisma.io" link. Pixel type (Press Start 2P and VT323) is loaded only on this page. The landing view follows a strict hierarchy so nothing competes with the game: static title, one line of copy, Comet Cat as the sole focal point, and slow, dim ambient motion.Leaderboard and prize
The leaderboard is designed to become global: the panel says "global leaderboard coming soon", and its storage sits behind async
fetchLeaderboard/submitScorefunctions that are the exact seam for the future API. Until that backend lands (apps/sitehas no database today) they are backed bylocalStorage, and the panel is honest that scores live on the device. Prize copy commits to $500 in Prisma credits, awarded as Prisma Data Platform credit, and deliberately leaves the fulfilment mechanics open.Engineering changes
game-kit.tsxextracts what all six games previously duplicated: the phase state machine, score refs with banking on mid-game quit, hi-score tracking, the clamped-delta rAF loop, held-key tracking that clears on window blur, and the shared HUD/overlay shell. Each game file now contains only its own simulation, drawing, and input.prefers-reduced-motion.Testing
pnpm --filter site checkandtypes:checkpass, and a productionnext buildsucceeds with/arcadeprerendered.Notes for reviewers
/arcadeOG asset can follow separately.