th0mk/nfsu2-web

★ 406⑂ 87

About th0mk/nfsu2-web

th0mk/nfsu2-web is an open-source project on GitHub, mainly written in C. It currently holds 406 stars and 87 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

Git Homed tracks it on the Today's Trending board.

GitHub Repository Details

Repository th0mk/nfsu2-web · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README

Need for Speed: Underground 2 in the browser

A fan project that runs the PC game Need for Speed: Underground 2 (2004) in Google Chrome and Firefox. The game's x86 code is translated to C ahead of time and compiled to WebAssembly. Direct3D 9 runs on WebGPU and the sound on Web Audio. You bring your own copy of the game.

Not affiliated with or endorsed by Electronic Arts. This repository contains none of the game's code or data.
The start page: Play, the controls, your saves and Online

What you need

will not work): 4,800,512 bytes, SHA-256 f9dd86c054878ce6276beb07c1fd61874f7a1e4bf1f241b084c65b73e24168a7. (rustup), and wasi-sdk 34 for that system unpacked into deps/. On Windows, build in WSL 2 with the clone in the Linux file system (~/nfsu2-web): under /mnt/c it builds much slower.

Build

python3 -m venv .venv && .venv/bin/pip install -r requirements.txt
web/gen.sh "/path/to/Need for Speed Underground 2/SPEED2.EXE"   # translate the game's code to C (into gen/)
web/build.sh                                                    # compile it to out/web/nfsu2.wasm

The generated C and the compiled module are made from the game, so they are never committed (.gitignore).

Play

web/start.sh --data "/path/to/Need for Speed Underground 2"

Open http://localhost:8080/ in Chrome or Firefox and press Play. The start page has the settings, your saves and the controls. The player's guide is docs/web/PLAYING.md. The game plays in any of its thirteen languages, in Brazilian Portuguese, in Polish or in Turkish; the dubbed voices and movies and the Portuguese, Polish and Turkish text come from mods, as language packs (docs/web/VPS.md). The menus and HUD can be redrawn at four times their size, from a mod as a texture pack (docs/web/VPS.md).

To play with friends, run the server behind HTTPS, for example on a small VPS with Docker: docs/web/VPS.md. Everyone who plays from the same server can meet in free roam.

How it works

parts. sound through an AudioWorklet. for multiplayer.

More in docs/web/DESIGN.md. The same tree still builds the native macOS version (./gen.sh, ./build.sh && ./link.sh, ./run.sh).

Credits

Based on Talha Müderrisoğlu's static recompilation of NFSU2 for Apple Silicon, which in turn follows the method of N64: Recompiled and XenonRecomp. The language packs are built from KyoriAsh's Multi 13 languages mod (with Lee-Ryo's Thai support, whose patch runtime/language.c follows), from TraduMix's and MixMods' Brazilian Portuguese translation (Fyro, Beater, Kerlyston F.; Junior_Djjr, SideWinder, Elyzandro), from PLProjekt's Polish translation (Daniel Graszka, MaDeR, Marcin Piech, Nati, Mateusz Wilkowski, alter), from VileStuff's English Subtitles Fixed and from muntazam's Turkish translation. The texture pack is built from LunicAura106's Upscaled HUD. Built with the help of Claude Code.

License

MIT (LICENSE). Need for Speed and Need for Speed: Underground 2 are trademarks of Electronic Arts Inc.

GitHub Stars & Activity

406Stars
87Forks
0Open issues
CLanguage

GitHub Popularity

GitHub stars406
Forks87
Open issues0
Primary languageC
License-
Stars gained today0
Created-
Last pushed-

Trending History

Weekly boardrank #93 · ▲ 0 stars

Related GitHub Projects

1

ossu / computer-science

HTML★ 210,458⑂ 26,030▲ 66 stars
→
2

flutter / flutter

Dart★ 180,510⑂ 33,336▲ 143 stars
→
3

ripienaar / free-for-dev

HTML★ 140,215⑂ 14,895▲ 55 stars
→
4

localsend / localsend

Dart★ 96,154⑂ 5,427▲ 305 stars
→
5

AppFlowy-IO / AppFlowy

Dart★ 77,868⑂ 6,110▲ 42 stars
→
6

twitter / the-algorithm

Scala★ 73,988⑂ 13,254▲ 4 stars
→
7

2dust / v2rayNG

Kotlin★ 64,848⑂ 8,426▲ 74 stars
→
8

topjohnwu / Magisk

Kotlin★ 63,555⑂ 19,062▲ 37 stars
→

More Trending Repositories