Half-Life 2 runs in a browser via WebAssembly and WebGL
Tags OSS · Consumer
A developer known as panza demonstrated Half-Life 2 running entirely in a web browser using WebAssembly and WebGL, without native installation. The project, hosted at hl2.slqnt.dev, uses Emscripten to compile the game's Source engine to WASM, with graphics rendered through WebGL. The demo achieved 256 points and 96 comments on Hacker News within hours, making it the top story of the day. It demonstrates the increasing capability of browser-based computing to handle complex native applications.
Technical significance
Running a complex 2004 game engine in the browser via WASM demonstrates how far browser-based computing has advanced. This has implications for game distribution (no-install gaming), legacy software preservation, and the broader viability of WASM as a universal runtime for compute-intensive native applications. It also raises questions about how game publishers will respond to unauthorized browser-based execution of their titles.