Hacker News new | ask | show | jobs
by NortySpock 1298 days ago
Beautiful game, thanks for sharing. Koblas's comment caught my eye and I will definitely be poking around the github actions code to learn how to compile Golang to WASM.
1 comments

Thank you!

Go makes it ridiculously easy:

  GOOS=js GOARCH=wasm go build -o web/game.wasm
This is true but the rendering engine has done the heavy lifting to map calls to the gpu correctly.

More build info here: https://ebitengine.org/en/documents/webassembly.html