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.