GameTest
Golang RPG game - For the WEB (using WASM)
Setup
- Clone this repo
- Install dependencies:
go get ./...
- Install image process executable:
go install github.com/hajimehoshi/file2byteslice
- Install Go command line tool to execute Go code (a webserver in this case):
go install github.com/shurcooL/goexec
Run
Local machine (native)
Will run the game in a window natively on your computer
$> make assets && make run
Local web
Build and run the game via a local webserver for you to play in the web. The Go is converted in to WebAssembly (a binary) that can be run in the browser.
$> make assets && make buildweb && make runweb
Then navigate to https://localhost:8080
to play the game