118 points · by dulvui · 3y ago · 33 comments
godot --export-release HTML5 web/index.html
butler push web <itch_account>/<project_name>:<channel>
Used those with GitLab CI for ages:)Parent action: https://github.com/North-Street-Games/nutshells/blob/main/.g... (attach this as a main.yml file in your GitHub actions workflow folder, and change the in-file variables and your secret itch.io butler key as needed!)
Child Godot export action: (for ref) https://github.com/Kwpa/godot-html-export/tree/main
Child itch upload action: (for ref - no different to original) https://github.com/Kwpa/itchio-butler-upload
Note that 4.x Web builds currently do not run well on MacOS browser apps :/ See this: https://github.com/godotengine/godot/issues/70691
- name: Godot HTML5 export
uses: dulvui/godot-html-export@v0.0.2
with:
godot-version: 4.1
Probably I also need to improve the documentation.Unity is great. Unity is also horrible, especially on devx. It takes anywhere from 10-30 seconds to recompile code or changes on each save. Making a unity html game takes 5-30 minutes. There are things that can be done to reduce these times but requires knowing a bunch of info (usage of asset database, dividing code into assemblies, etc). Writing a container image to run Unity CLI commands requires you deal with license. Ugghh I wish Unity was just better to use.
I may scope out godot again. I’m working on a multiplayer game and it’d be interesting to evaluate how I’d plug a godot game into AWS gamelift.
In what format the artist sends the assets that get into the game?
Is there any trick you had to do to make the graphics look this sharp? Does adapting to different viewport size required a lot of work?
The hardest part in the beginning is to not get dropped in the water :P
Note that we are running a multithreaded Godot 3 game on the web. It only uses threads when sharedarraybuffer is available, otherwise uses single threaded mode. Mostly just affects the latency of audio.
Another problem is that SharedArrayBuffer was disabled by default after Spectre and in order to enable it you need to send certain headers from the server (Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy). I don't know if itch.io has support for that, but maybe.
I haven't used Godot but I'm thinking that the multithreaded models game engines are using don't convert very well to SharedArrayBuffers. It's a very crippled form if you're used to say C#.
https://itch.io/t/2025776/experimental-sharedarraybuffer-sup...