/uhexen2

Hexen II: Hammer of Thyrion -- Webassembly port

Primary LanguageC

Hexen 2 port to WebAssembly

PLAY HEXEN II IN YOUR BROWSER NOW

Introduction

In 2000, Raven software, the original developer of Hexen 2 released the source code of the game engine into the public domain. Since then, many source ports have been created, the most popular of which seems to be Hexen II: Hammer of Thyrion. The Hexen II: Hammer of Thyrion project has ported the game to Mac, Linux, Amiga, and other platforms, fixing many bugs in the process and bringing new features like OpenGL and SDL support to the game.

This is a fork of the Hexen II: Hammer of Thyrion project to port the game to web Web-Assembly using Emscripten.

Hexen2 Screenshot

Even though the source code is public domain, the game isn't, and therefore the game files of the retail version is not distributed with this release. You can either use the game files of the CD version of the game, or of the Demo version, which is public domain.

How to build

  • Install Emscripten
  • Copy the original game data directory (Data1) to the /engine/hexen2 directory
  • Run build.sh in the /engine/hexen2 directory
  • Serve the contents of /engine/hexen2/em on a webserver

Known issues

  • Mouse movement does not currently work because of a linker issue where the SDL_GetRelativeMouseState symbol cannot be resolved.
  • Networking support has been removed because it doesn't make sense for running in a browser
  • The original game played music from CDROM. Midi/OrgVorbis/CDAudio support has been disabled for now to simplify the build process, but this can be added back at a later point