Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
eihigh authored Sep 18, 2023
1 parent fef8bff commit 7371fd2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ https://eihigh.github.io/wasmgame/

(It's very plain and I'd like to improve it...)

## Tutorial
1. Click the green button `Use this template` at top of the page and select `Create a new repository`.
2. Enter a name for your new repository and click `Create repository`.
3. Download the new repository with `git clone`.
4. Go to the directory containing the downloaded `main.go` or `go.mod` and run `go run ./tool build`.
5. Run `go run ./tool serve` and open `http://localhost:8080` in your browser.
6. Verify that the game screen appears.
7. Edit `main.go` to your liking and run `go run ./tool build` again in another terminal with `go run ./tool serve` running to see if the browser reloads automatically.
8. Repeat 7.

## Usage

### Creating a repository from a template
Expand Down

0 comments on commit 7371fd2

Please sign in to comment.