Skip to content

philoj/go-planes-client

Repository files navigation

The game client.

The server code can be found here

Execute by:

$ go run main.go [id=<clientId>]

This requires game server to be started already.

Preview

go-planes.mov

Repacking assets

Any changes to the asset files requires repacking the embedded statik sub package.

Repacking can be done by running:

$ statik -src=./assets -include=*.jpg,*.png

Webassembly

Copy wasm_exec.js:

cp $GOROOT/misc/wasm/wasm_exec.js build-platforms/js/dist/

Compile by running:

$ GOOS=js GOARCH=wasm go build -o build-platforms/js/dist/main.wasm

And server the folder build-platforms/js via any file server