It reminds me: a decade ago, I had the idea of porting Baldur's Gate 2 to the web: <a href="http://lumakey.net/labs/battleground/demo1/" rel="nofollow">http://lumakey.net/labs/battleground/demo1/</a><p>I initially played with EMSCRIPTEN as well, starting from GemRB, an open-source reimplementation of the engine. But that was boring, as I wasn't really getting any sense of how things were working under the hood.<p>So I started reverse-engineering the various file formats (a website called IESDP had most things figured out already) and converting them to PNG, JSON and other web formats. At that point I only knew PHP which made it a pain to work with binary data. Then, I started rebuilding the game from scratch: pathfinding, streaming huge maps using small tiles, animations...<p>10 years later, there's still that one single room and single character that were implemented, but it was still fun times.