VCOP2
Bringing Virtua Cop 2 to the browser with a custom C++ runtime and WebAssembly.
- My role
- Builder
- Built with
- C++20 · WebAssembly · JavaScript · Web Audio
The idea
A childhood game, one browser tab away. VCOP2 brings the original PC release of Virtua Cop 2 to the web, with mouse controls, sound, and a player that preserves the game’s 4:3 display.
The build
I built a portable C++20 runtime compiled to WebAssembly. It provides an x86 interpreter, checked guest memory, Windows API adapters, a software renderer, and audio support. The original executable still supplies the camera paths, encounters, aiming, scoring, and stage logic.
The runtime executes in a browser worker while the page presents frames and handles input and Web Audio. The player also includes room creation and joining for multiplayer sessions.
The outcome
The port supports the complete single-player Arcade campaign: all three stages, the final encounter, ending, name entry, and return to the title screen. It is available to play at vcop2.lol.
This is an independent, unofficial project. The original game and artwork belong to SEGA and AM2.
