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。 以下为已保存的摘录。
Cosmos lets you fly a small white starship through a real-scale Solar System in your browser. It is an installable PWA built with Vite, TypeScript and Three.js.查看完整 README ↗Cosmos lets you fly a small white starship through a real-scale Solar System in your browser. It is an installable PWA built with Vite, TypeScript and Three.js.
| Key | Action |
|---|---|
| W / S | Throttle up / down (logarithmic, 10 m/s to 15,000 km/s) |
| A / D, ← → | Yaw |
| ↑ ↓ | Pitch |
| Q / E | Roll |
| Shift | Boost |
| X | Brake |
| Right-click | Mouse flight: the ship turns smoothly to follow the cursor; Esc releases it |
| Left-drag | Look around in the cockpit, or orbit the camera outside |
| V | Switch view: cockpit, chase, far chase |
| M | Solar System map |
| 1–5 | Warp factor 1c, 3c, 10c, 50c, 100c |
| J | Engage warp, or drop out of warp |
| L | Saved locations |
| T | Toggle labels |
| G | Toggle the FPS counter |
| , / . / P | Slower time, faster time, pause |
| F | Fullscreen |
| H | Help |
On touch screens the game shows a stick and throttle, and you can drag to look around.
URL options:
?loc=earth-orbit (or europe-jupiter, earthrise, io-jupiter, saturn-rings) opens a saved location.?view=chase starts in a chase view.?autostart skips the launch screen.npm install
npm run dev # http://localhost:5173
npm run build # type-checks, then builds the static site into dist/
npm run preview # serves dist/ locally
Node 20 or newer is needed.
Import the repository in Vercel. It detects Vite, runs npm run build and serves dist/, so no settings need changing. vercel.json only adds long-lived cache headers for the textures, models and hashed assets.
The service worker precaches about 3 MB: the app shell, the ship, the star catalogue and the small Milky Way map. Planet maps are cached the first time they load, so places you have visited work offline.
The page itself is always fetched from the network when you are online, so a new deploy shows up on the next load, including in the installed app. If a new version is deployed while the game is open, the update button in the top-right toolbar glows; click it to load the new version.
?nodyn to turn it off.src/sim: ephemerides, body data and reference frames.src/render: the universe, planet, sky, environment-map and post-processing shaders.src/ship: the ship model, flight model and camera rig.src/game: warp, input and saved locations.src/ui: HUD, map and cockpit displays.src/audio: the synthesised sound.tools/: Python scripts that build the textures, star catalogue, icons and the ship (Blender).Planet and moon maps come from Solar System Scope (CC BY 4.0), the Celestia project, USGS/NASA, Fourmilab and others. The Milky Way combines ESA/Gaia/DPAC's Gaia EDR3 sky map (CC BY-SA 3.0 IGO) with ESO/S. Brunier's panorama (CC BY 4.0). The star catalogue is Hipparcos via d3-celestial. Full per-file sources and licences are in CREDITS.md.