You can now play Half-Life 2 right inside your browser at over 100 FPS with save states & console support — Ingenious port recreates the entire game campaign using WebGL 2

In a remarkable evolution of technology, the capability of our internet-surfing machines has reached a new zenith, allowing full-length PC games to be played directly within web browsers. A recent highlight in this journey is the unofficial port of Half-Life 2, crafted by developers Slqnt and 98006. This version encompasses the entire main campaign along with two episodic DLCs, all while integrating a variety of features akin to the official release.

This innovative port operates natively on your device, eliminating the need for cloud streaming. At its core, the port utilizes WebGL 2, a JavaScript API that communicates directly with the GPU, bypassing the browser’s standard layout engine to handle graphics-intensive tasks. Additionally, WebAssembly plays a crucial role in translating C++ code from the Source Engine into JavaScript, making it comprehensible for the browser.

Among the notable features of this port is the integration of the Source console, which allows players to access a fully functional developer terminal. This feature enables the input of classic commands, offering the option to utilize cheats for an enhanced gameplay experience or to adjust engine variables to suit personal preferences. While Steam achievements are not available in this version, the game retains its built-in achievements, accessible through the menu.

Testing the game across three different devices—a Windows PC equipped with a Ryzen 7 7700X and RX 6700 XT, a OnePlus 12 smartphone, and a modded Nintendo Switch running Android—revealed that the PC provided the most seamless experience. Given the age and relatively low demands of the game, it was possible to maximize all settings and enjoy gameplay in full screen, achieving over 100 FPS, resulting in a visually stunning experience.

As it stands, the future of this port largely depends on Valve’s response, although the company has a reputation for being supportive of community-driven projects. The swift development by Slqnt and 98006, completed in just three months, coupled with its survival for approximately two weeks online, suggests a promising potential for longevity.

This port is not an isolated case; numerous classic games are available for free on platforms like DOS Zone, including GTA Vice City and Quake III, which exists as a standalone browser project. The primary obstacle for such retro revivals remains copyright issues, yet the abundance of talent among developers and the robust capabilities of modern hardware continue to pave the way for these nostalgic experiences. Should Valve choose not to pursue Half-Life 3, fans may very well continue to explore and enjoy the original titles to their fullest extent.

AppWizard
You can now play Half-Life 2 right inside your browser at over 100 FPS with save states & console support — Ingenious port recreates the entire game campaign using WebGL 2