Here are some of my Godot settings for Web/HTML5 player exports of my games
For those who've made their games with Godot (Version 3.5.1), it's fairly straight forward to get a web player working with some tweaking. I find the Godot engine lends itself well to HTML5 exports and most everyone should be able to increase engagement with web players when using the engine.
If you find this post helpful, click the like button. If you have any advice to share for others not covered here, please leave a comment to help everyone out.
Increase your engagement
HTML5 versions of games are great because 10-100x more players will play your game. Our own game, Calorie Crunch had 150 web plays yesterday on itch.io and only a single download, demonstrating the preference of web players over downloads. Web play is an easy way to get WAY more engagement because it's so convenient for players. We're all trying to play as many games as possible so making it easy helps.
People like myself are afraid of downloading games because of the possibility of viruses so I hope you can get the web view working soon, your game looks interesting. I can't download games at all on my work laptop because of configurations the IT people have made to prevent viruses, so web players make it easier for me to check out games during breaks.
How I do it with Godot 3.5.1:
Don't use the Ludum Dare web player, it's buggy! Use itch.io's web player! Sorry Ludum Dare, I like the effort you're putting into the new feature but players should be aware that Ludum Dare's web player is kinda in an Alpha stage and if you want dependable playback of your games, leverage itch.io for now. Do a lot of testing of your game in Ludum Dare's built in player before depending on it, it's different from game to game.
Here's what I do to get my Godot games working on HTML5 on itch.io
Export Config Settings:- Export Type: GDNative (this is important, my web builds don't work without it, don't know why it's not default)
- Canvas Resize Policy: Adaptive
- Focus Canvas on Start: On
- Export filename:
index.html(this is important for itch.io and others, they expect your root file to be index.html)
- Display: Window: High DPI Support enabled (not enabling this results in ugly pixel resizing, this setting makes it smooth as butter and even nicer on high res 4k screens, ipads, etc)
- display: Window: Mode: 2D
- Display: Window: Aspect: Keep
- Shared Array Buffer Support. Seems to work well with my godot projects
- Run on page load. It says it doesn't work for unity games but I haven't run into issues for godot games with the above settings
- If your game opens up to a splash screen it can look real slick on your itch.io page. Couple it with a big, beautiful "Play" button and it naturally invites your players to click and start playing your game.
- Add full screen button setting in itch.io. I like this, it adds a full screen button to the game. Sometimes the game has to go full screen to work properly and a good number of people participating in the jams know this when rating games.