iakov.dev

Iron Cube in the browser with Emscripten

Iron Cube on the web

· 1 min read

Video

I ported my demo game Iron Cube to the web in a couple of days with Emscripten. Emscripten compiles C++ to code that runs in the browser, so the same engine code that runs on Windows and Android now runs in a web page. The video above shows the result.

You can play the demo here: https://glow3d.com/blog/demos/iron_cube.html. It should work in any modern browser, mobile browsers included.

Iron Cube is my multiplayer tank game in a fully destructible voxel world. The engine already renders with OpenGL and uses SDL2 as its platform layer, and Emscripten supports both.