by johnfn · 4y ago · 0 comments
How was using Go targeting wasm (I presume)? I'm personally concerned about compilation times being super long, but I guess I've never tried...
As mentioned in the other comment, the heavy lifting is done by Ebitengine: https://ebitengine.org/en/documents/webassembly.html
Go supports compiling to wasm, and it's as simple as:
GOOS=js GOARCH=wasm go build -o web/game.wasm
It takes just a few seconds for this project. :)