A friend’s request, run as a test of how fast a browser is today: Tony Hawk’s Underground 2 for PC, running in the browser as the game’s own code, not under an emulator. The community decompilation’s C++ is compiled to WebAssembly with Emscripten, and the game’s Direct3D 9 renderer is redrawn on WebGPU.
What it is
- The game, compiled for the web. The decomp’s C++ built for wasm32, which keeps the original’s 32-bit layout.
- Direct3D 9 on WebGPU, sound through an AudioWorklet, touch controls for the phone.
- The copy-protected parts rebuilt. The retail exe’s data is encrypted by SafeDisc, so its tables were rebuilt from the source.
How it was built
Claude wrote the code, starting from the community’s C++ decompilation of the game. João set the method (no emulation), steered with high-level instructions and tested on the Mac, the PC and his iPhone. The repository holds no game files: it runs from your own copy of the game.
Status
Active. The Training level plays with sound in Chrome and on an iPhone 17 at 60 fps. A few small bugs are left. The benchmark against the original is still to come. Open source.

