Underground 2 Revived
Play Need for Speed: Underground 2 (2004) in Chrome and Firefox with WebGPU graphics, Web Audio, up to 120 fps widescreen, controller support, free roam and Online races with friends. Fan project, not
翻译准备中
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证正在加载完整 README。 以下为已保存的摘录。
Turn any image into a jigsaw puzzle and solve it live with a friend. Next.js 16 + React 19 on the front, Supabase (Storage, Postgres, Realtime) on the back — there is no custom server.
Create .env.local with your Supabase project's origin and anon key:
Use the bare origin — not the /rest/v1 URL the dashboard shows. (The client strips any path just in case.)查看完整 README ↗Turn any image into a jigsaw puzzle and solve it live with a friend. Next.js 16 + React 19 on the front, Supabase (Storage, Postgres, Realtime) on the back — there is no custom server.
npm install
npm run dev
Create .env.local with your Supabase project's origin and anon key:
NEXT_PUBLIC_SUPABASE_URL=https://<project-ref>.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=<anon key>
Use the bare origin — not the /rest/v1 URL the dashboard shows. (The client strips any path just in case.)
puzzle-images, with an insert policy for anon. Set a file-size limit on the bucket (the client downsizes to 2048px, but the bucket should enforce its own cap).puzzles table from DESIGN_AND_IMPLEMENTATION.md §4.1, with select and insert policies for anon.| Path | Role |
|---|---|
src/app/page.tsx | Upload + piece count → Storage + puzzles row → redirect to /play/<id> |
src/app/play/[puzzleId]/page.tsx | Loads the puzzle, name prompt, lobby, mounts the game |
src/components/canvas/Stage.tsx | Canvas engine: pieces, drag/pan/zoom, snapping |
src/stores/usePuzzleStore.ts | Zustand state; auto-saves to IndexedDB |
src/hooks/usePuzzleMultiplayer.ts | Supabase Realtime relay (cursors, moves, merges, board sync) |
src/utils/boardGenerator.ts | Deterministic tabs + scatter from the puzzle seed |
Every client generates the same starting board from the seed stored in the puzzles row; afterwards moves are relayed peer-to-peer as absolute positions, and anyone joining late asks the room for a snapshot.