Skip to content
EA
Back to projects
RetroPlay
Featured
1 / 3

ehsan-0801/RetroPlay

Private

Browser arcade games for desktop and mobile. Next.js 16 portal + Phaser 4 game packages in a pnpm monorepo.

0 stars0 forks0 watchingUpdated 23 days ago
README

RetroPlay Arcade

Browser arcade games for desktop and mobile. Next.js 16 portal + Phaser 4 game packages in a pnpm monorepo.

  • Requirements: retroplay_arcade_requirements.md
  • Plan: docs/PLAN.md · Carrom rules: docs/GAME_RULES.md
  • Agent skills: .claude/skills/ (retroplay-architecture first)

Commands

pnpm install
pnpm dev          # http://localhost:3000
pnpm test         # Vitest unit tests (packages/**)
pnpm lint
pnpm typecheck    # run `pnpm build` once first so Next route types exist
pnpm test:e2e     # Playwright: desktop Chrome, Pixel 7, iPhone 15 (builds with NEXT_PUBLIC_TEST_HOOKS=1)

To test on a real phone: pnpm --filter web dev -H 0.0.0.0 and open http://<your-lan-ip>:3000.

Layout

apps/web               Next.js app: library, /play/[slug], overlays, settings store
packages/game-core     GameModule contract, seeded RNG, fixed-step, createPhaserGame()
packages/street-rivals  Street Rivals: pseudo-3D motorbike racing (race + time attack)
packages/pocket-carrom  Pocket Carrom: rules engine, headless matter-js sim, practice CPU
packages/test-scene    "Lifecycle Lab" engine spike (unlisted, /play/test-scene; used by e2e)