Thank you! I’m glad you’ve liked it! @ChrisiaDraws did a great job drawing all of the game!
Compiling C++ code to WebAssembly is not that hard with Emscripten, it is just another compiler. If you use a library as SDL2 for example, it has all the click/press/focus and so on events wrapped so you need a quite a minimal change to make it work. The slow part is that you do not have a debugger, builds are a bit slow, the whole testing cycle is quite irritating. Emscripten also has a wrapper for OpenGL calls, there are mild to mindblowing bugs there to catch, but once it is done it feel like pure magic, seeing your code working native and in browser.
I’ve got a simple CMake based project if you are interested in web builds https://github.com/ongamex/emgame