Skip to content

JtotheThree/yew-godot

Repository files navigation

Example of how to use Yew to host Godot 4 HTML 5 export and also send events to Godot from Yew.

Alt text

Until Trunk support setting custom headers, we need to proxy so we can tell the browser we need wasm threading support

Start the nginx proxy (sudo is required for networking host mode) with:

sudo docker-compose up -d

trunk serve

Pull up http://localhost:8000

Ports and configuration can be found in nginx.conf and Trunk.toml

You may need to edit the Trunk.toml pre_build hook to point to your install of godot if you're not using flatpak for it. You may also want to remove the prebuild hook to get rid of the export on reload

Issues: Trunk watch runs twice when godot is saved even with ignoring the export folder

About

Example of Yew hosting and communicating with Godot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published