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。 以下為已儲存的摘錄。
Private online poker for you and your friends, styled after GGPoker. Fake chips, real drama.檢視完整 README ↗Private online poker for you and your friends, styled after GGPoker. Fake chips, real drama.
client/public/audio/CREDITS.mdRequires Node 18+.
npm run install:all # installs root, server and client deps
npm run dev # server on :3001, client on :5173
Open http://localhost:5173, create a table, and share the 5-letter code. To try it alone, open a second tab with ?p=2 in the URL (each p value keeps its own session) or seat some bots:
cd server
node test/bots.js <TABLECODE> 3 # 3 bots that mostly call
node test/bots.js <TABLECODE> 4 http://localhost:3001 maniac
Run the engine tests with npm test.
Vercel can't host the game server (it needs a long-lived Socket.io process with in-memory tables and timers), so split it:
render.yaml sets everything up (root server/, node index.js). Copy the service URL, e.g. https://pokerapp-server.onrender.com.client. Add the environment variable VITE_SERVER_URL=https://pokerapp-server.onrender.com and deploy.Free Render services sleep after 15 minutes idle and take ~30–60 s to wake; the site shows "Connecting to server…" until then. A free uptime pinger (e.g. cron-job.org hitting /health every 10 minutes) keeps it awake during game nights.
The server serves the built client, so a single deployment is enough (Railway, Render, Fly.io, a VPS…). The included Dockerfile and nixpacks.toml build the client and start the server on $PORT.
Manual equivalent:
npm run build # builds client/dist
npm start # node server/index.js (serves the API, sockets and the built client)
If you'd rather host the client separately (e.g. Vercel), set VITE_SERVER_URL to the server URL before building.
server/
index.js Express + Socket.io, sessions, host commands
engine/table.js Table state machine (seats, hands, betting, run-outs, showdown, timers)
engine/evaluator.js Hand evaluation (Hold'em + Omaha)
engine/pots.js Side pots
test/ node:test suite and the bot script
client/src/
App.jsx Session + screens
lib/useGame.js Socket state, animation timeline
lib/audio.js Music playlist + sample player (assets in client/public/audio)
lib/layout.js Stage geometry and seat positions
components/ Lobby, TableView, Seat, Card, Chips, ActionBar, SidePanel
styles/ Design tokens and table/panel styles
TIMING='{"showdownHold":20000}' on the server to slow down run-outs/showdowns while debugging.