
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:
- Porting Commander Keen / CloneKeen to the web browser with #Emscripten. Great progress so far! - 20 Oct 2019
- Commander Keen in a Web Browser? - 28 Oct 2019
- The Commander Keen WebAssembly port is done! - 02 Nov 2019