Prince of Persia: The Two Thrones now runs in a Chrome tab
Developer Md. Mobin (djsmk123) published a detailed write-up on 1 November 2026: he managed to run Prince of Persia: The Two Thrones (Ubisoft, 2005, Windows) directly in a browser tab. The method: Ghidra identifies about 29,000 functions in the x86 executable, a Python translator converts them to C, and Emscripten builds a WebAssembly version with threads. A reimplementation layer reproduces the Windows APIs, Direct3D 9 is replayed as WebGPU passes, and audio goes through Web Audio.
The game is not shipped with the project: you need your own legitimate copy. The files (about 1.5 GB) stay on your computer, stored in the browser's OPFS and read in 1 MB chunks, and roughly 100 MB are enough to reach level 1. The author states the repository contains no game files or code and that the experiment is independent, non-commercial and unaffiliated with Ubisoft.
Where does the project stand, and who else is doing this?
The game boots, shows its menus, plays the intro and loads level 1, with keyboard and sound, at roughly 20-30 fps at 1080p on a laptop (tested in Chrome). Combat, gamepad support and real Bink video are not done yet. The code is on the project GitHub repository, which also holds the setup instructions.
It is not alone: Virtual-On-Web (v0.1.0, 18 October) recompiles the Sega Model 2 arcade game to WebAssembly with WebGPU rendering, from your own ROMs, with an online demo; and WebCompiled does the same for Mario Kart Wii (see our dedicated tutorial). These ports need a WebGPU-capable browser, preferably a recent Chrome or Edge.
Source: DEV Community