HOME / BLOG / C Game in the Browser
C Game in the Browser
22 days
2025 06
Any game developed in C using MLX42 is playable in any browser using WebAssembly, Emscripten, and GitHub Pages. Try it yourself now!
Try it now:
https://42-course.github.io/dino_game/demo.html
I also created an embed version: (so it can be placed in any website at any size)
https://42-course.github.io/dino_game/embed.html
https://42-course.github.io/dino_game/demo.html
I also created an embed version: (so it can be placed in any website at any size)
https://42-course.github.io/dino_game/embed.html

Soon I'll upload a post showing you how you can do this for any game you have, with a Makefile example that works for both compilation in the web and normally, as well as the whole deployment of the game with Github pages.