From ff4f99593ef6dcf495e6670a14b38dd9a5021d1e Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 6 Jul 2018 03:57:35 +0900 Subject: [PATCH] Updated WebAssembly (markdown) --- WebAssembly.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/WebAssembly.md b/WebAssembly.md index ed94e65..307775a 100644 --- a/WebAssembly.md +++ b/WebAssembly.md @@ -5,14 +5,18 @@ As there are differences between the latest Go and Go 1.11 beta, I recommend to 1. Checkout the latest Go (https://go.googlesource.com/go) 2. Compile the compiler by running `./make.bash` -After that, use the compiled `go` binary. - # Compile your game ```sh GOOS=js GOARCH=wasm /path/to/latest/gocode/bin/go build -o yourgame.wasm github.com/yourname/yourgame ``` +# Copy `wasm_exec.js` to execute the Wasm binary + +```sh +cp /path/to/latest/gocode/bin/go/misc/wasm_exec.js . +``` + # Create an HTML ```html