Hacker News new | ask | show | jobs
by johnfn 1301 days ago
Very cool stuff! I had a lot of fun getting all the powerups and becoming massively overpowered. :)

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...

1 comments

Glad to hear that! :D

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. :)