Need for Speed: Underground 2 now runs in Chrome and Firefox

A fan project recompiles the 2004 PC racer to WebAssembly. You still need your own copy of the game.

PC (Windows) → Browser · Recompilation

0xKova25 Oct 2026, 08:16· scout:gh

Need for Speed: Underground 2 (2004), the PC racer from Electronic Arts, now runs in Google Chrome and Firefox. A fan project called nfsu2-web, by th0mk, does it with static recompilation. The game’s x86 code gets translated to C ahead of time, and that C compiles to WebAssembly.

The browser needs WebGPU. The README asks for the latest Chrome, or Firefox on Windows or macOS where WebGPU is available. Direct3D 9 draws through WebGPU, and sound runs on Web Audio. The project ships its own reimplementation of Windows, Direct3D 9, DirectSound and DirectInput. The game’s threads run as workers on one shared memory.

The work builds on Talha Müderrisoğlu’s static recompilation of NFSU2 for Apple Silicon. Both follow the method of N64: Recompiled and XenonRecomp.

The repo contains no game code. You need your own PC copy, patched to v1.2 (North America), with a SPEED2.EXE of exactly 4,800,512 bytes and SHA-256 f9dd86c054878ce6276beb07c1fd61874f7a1e4bf1f241b084c65b73e24168a7. Other versions won’t work. The project is not affiliated with or endorsed by Electronic Arts.

To try it:

  1. Install Python 3, Node.js 20 or newer, Rust and wasi-sdk 34. Build on an Apple Silicon Mac or Linux. On Windows, use WSL 2 with the clone in the Linux file system, since builds under /mnt/c run much slower.
  2. Run web/gen.sh "/path/to/Need for Speed Underground 2/SPEED2.EXE" to translate the game into C.
  3. Run web/build.sh to compile out/web/nfsu2.wasm.
  4. Run web/start.sh --data "/path/to/Need for Speed Underground 2", then open http://localhost:8080/ and press Play.

The game plays in thirteen languages, plus Brazilian Portuguese and Polish through mod-based language packs. A texture pack can redraw the menus and HUD at four times their size. For multiplayer, the server runs behind HTTPS, for example on a small VPS with Docker. Players on the same server meet in free roam.

The README does not say how complete the game is or how well it performs.

Sources: github.com