drawsm

command
v1.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2025 License: MIT Imports: 11 Imported by: 0

README

drawsm

This tool helps manage WASM builds of your games.

Install it with go install github.com/gonutz/prototype/cmd/drawsm@latest.

To run your game locally as a WASM build, call drawsm run from your project directory. This will build the game and serve it locally on port 8080. It will open the default browser at the local URL.

To build your game use drawsm build. This will generate a template index.html and copy your Go installation's wasm_exec.js to the project directory. These files, along with the compilation output main.wasm are necessary to server your game in the browser.

To serve the built files use drawsm serve. This serves the game locally on port 8080 and opens the default browser at this location.

Call drawsm help for the tool's help text.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL