
Half-Life 2 runs in a browser via WebAssembly
A developer team compiled the full Half-Life 2 game to WebAssembly, delivering a browser‑based version that matches native performance. The demo is live at hl2.slqnt.dev.
The Half-Life 2 browser port compiles the game's native C++ code to WebAssembly with Emscripten, allowing it to execute in Chrome, Firefox and Edge without plugins [hn-front]. The resulting module loads in seconds and runs directly in the browser's JavaScript engine.
Performance testing on the public demo at hl2.slqnt.dev shows frame rates that match the original Windows build, with smooth gameplay even in demanding sections such as the Ravenholm level [hl2-slqnt-dev].
The release includes the complete game: all chapters, textures, physics and AI are intact. Rendering is driven by WebGL, while audio is routed through WebAudio, preserving the look and sound of the original title [hl2-slqnt-dev].
This project proves that WebAssembly can sustain the compute‑intensive workloads of a modern 3D shooter, including real‑time lighting, physics simulation and network code. It also provides a concrete example for developers who want to bring heavyweight native applications to the web, reducing the need for separate installers and expanding the reach of browser‑based gaming.
The announcement on Hacker News sparked discussion about the future of browser gaming, with commenters noting the significance of bringing a classic AAA title to the web [hn-front].
Subscribe to the broadcast.
Daily digest of the day's most important tech news. No fluff. Engineering signal only.
// delivered via substack · double-opt-in confirmation


