How can I export my C++ raylib game from Code::Blocks (.exe) to HTML5 for itch.io?
Hi everyone,
I'm making a small game in C++ using raylib. I created it in Code::Blocks and currently I have a working Windows .exe file.
I would like to upload a browser version to itch.io, but I don't know how to convert/export my project to HTML5.
From what I understand, raylib supports Web builds using Emscripten, but I have never used it before. My project is currently set up in Code::Blocks with MinGW.
Could someone explain the correct workflow for converting a raylib C++ game into an HTML5 build for itch.io?
Some things I would like to know:
- Do I need to move my project from Code::Blocks to another IDE?
- How do I set up Emscripten with raylib?
- How do I compile my
.cppfiles into.html,.js, and.wasmfiles? - Are there any changes needed in the code for the web version?
Thanks for any help!