Skip to content

Add Breakout and Minesweeper to the campus arcade - #179

Open
Anuraj-dev wants to merge 2 commits into
mainfrom
feat/arcade-breakout-minesweeper
Open

Anuraj-dev wants to merge 2 commits into
mainfrom
feat/arcade-breakout-minesweeper

Conversation

@Anuraj-dev

Copy link
Copy Markdown
Owner

Problem

The campus arcade only had a few games, and on phone-width screens the game headers overflowed. 38 frontend tests also failed on Node 26, which no longer provides a usable global localStorage for them.

What changes

  • Breakout cabinet at tile (68,96):
    • Paddle, bricks, and lives.
    • The ball serves on a key press only.
    • On mobile, a tall portrait court with a HUD text size of at least 12px.
  • Minesweeper cabinet at tile (85,96):
    • Mines are placed after the first click, so the first click is always safe.
    • A flagged cell can't be revealed.
  • Both games have pure reducers in frontend/src/game/arcade/, UI in frontend/src/ui/arcade/, and entries in ARCADE_GAMES so scores reach the leaderboard.
  • The arcade overlay ignores key auto-repeat. Every game header now wraps on narrow screens.
  • A localStorage shim in frontend/src/vitest.setup.ts makes tests pass on Node 26.

Verification

  • lint, typecheck, build: exit 0.
  • size: 84.2 KB gzip, within the 130 KB budget.
  • Tests: 156, 264, and 1294 passing.
  • Checked with Playwright screenshots at desktop and mobile widths.

Two new arcade games with pure reducers in game/arcade and React UI in ui/arcade, placed at campus tiles (68,96) and (85,96) and registered in ARCADE_GAMES for the leaderboard. Also fixes key auto-repeat in the overlay and lets every game header wrap on narrow screens; Breakout uses a tall portrait court on mobile.
@vercel

vercel Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
2d-metaverse Ready Ready Preview Sep 30, 2026 5:21am UTC

This branch was successfully deployed

1 active deployment
Preview — 690cca96 Deployed Sep 30, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant