I'm working on an SDL c++ game and I've used emscripten to port it for web, If i upload the generated index.html file, it says no file to embed so i generated an index.js file and used this:
<body> <center> <canvas id="canvas"></canvas> <script type='text/javascript'> var Module = { canvas: (function() { return document.getElementById('canvas'); })() }; </script> <script src="index.js"></script> </center> </body>
Is there a general guideline on what i should add here in order to make it accessible to itch.io? Or can someone point me in the proper direction please. I m really lost here.