Half-Life 2 runs in a web browser
Half-Life 2, the 2004 Valve first‑person shooter, has been ported to run inside a web browser. The project compiles the game’s engine to WebAssembly and uses WebGL for
Half-Life 2, the 2004 Valve first‑person shooter, has been ported to run inside a web
browser. The project compiles the game’s engine to WebAssembly and uses WebGL for
graphics. No installation or download is required; users can launch the game from a URL.
The browser version retains the original campaign and multiplayer modes. Developers report
performance comparable to low‑end desktop builds. The effort demonstrates how legacy
titles can be preserved through web technologies. It also offers a convenient way for
newcomers to experience the game without a Windows PC. The code is open source, inviting
further community contributions and optimizations.