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.