So only 'index.html' should be in the folder uploaded to itch.io?
When I did that everything was black.
I'm still having problems.
No.
In the .ZIP you must place all the files that GODOT creates when exporting to HTML, no more, no less.
- Create a new folder.
- In godot you export ONLY to HTML and select the folder you just created.
- After exporting, go to that folder and rename the html file to index.html.
- Compresses ALL the contents of that folder to .zip. (it should be a dozen or so files) and you upload that to Itch.
- Remember to check the shared buffer option in itch for the game to work.
Right clic to HTML folder, compress -> Here as HTML.zip
Now, you have a file called HTML.zip, that file you have to upload to itch.io.
-----------------------------------------------------------------------------------------------------------
ANOTHER question.
I see that all your files are called "index".
Is the godot project called "index" or did you manually rename all the files?
If you manually renamed all the files, then the game will NOT work. You just have to rename the file that ends in .html and leave all the rest as GODOT gives them to you.
It could be many things, for example, that you have the game with opengl 3.0, but the browser only supports 2.x.
Or that you marked an incorrect option at some point.
What I advise you is to create a new project in godot, something very, very simple, for example, displaying just one image.
- Export to HTML (remember to create a clean folder to export)
- Rename ONLY the .html file to index.html
- ZIP the folder where you exported the game.
- When you upload it to Itch.io, remember to check the shared buffer option.
Yeah it works, here it is: https://todashi.itch.io/test?secret=4HBBmQfr9xWdAlejKEtsMmvSpp8
How do I fix the opengl problem?
EDIT: "Do I need to switch it to "Compatibility" and re-export the HTML file and then finally compress it to a ZIP?" I did that, still not working.
Do you know why my actual project won't work?