Porting Commander Keen to WebAssembly

Programming, Projects, Retrogaming, Videogames, WebAssembly

Commander Keen

Porting Commander Keen to WebAssembly

Status Completed November 2019
Goal Port Commander Keen to WebAssembly, making it playable in the Browser

I’ve wanted to find a creative outlet for my recently-acquired WebAssembly skills. I’m also passionate about bringing classic retro games to a new audience.

I used Emscripten to port Chocolate Keen to WebAssembly. The initial goal was to refactor the entire code base to Emscripten Loops but this proved too much effort. In the end I found a working (but slower) solution using Emterpreter.

I’m happy with the end result. Play Commander Keen in the browser right here, find instructions here and source code on GitHub.

In future, I could refactor towards Emscripten Loops to improve performance and add on-screen controls for mobile devices.

Posts:


Other Posts