examples: Update README

This commit is contained in:
Hajime Hoshi 2018-03-26 01:53:06 +09:00
parent e14c05b0fe
commit 5f2cdd7d62

View File

@ -1,6 +1,21 @@
# Execute the examples
# How to execute the examples
```sh
:; cd $GOPATH/src/github.com/hajimehoshi/ebiten/examples
:; go run -tags=example rotate/main.go
go run -tags=example $GOPATH/src/github.com/hajimehoshi/ebiten/examples/rotate/main.go
```
## How to execute the examples on browsers
```sh
gopherjs serve --tags=example
```
and access `http://127.0.0.1:8080/github.com/hajimehoshi/ebiten/examples`.
## How to execute the examples on Android
Install [gomobile](https://godoc.org/golang.org/x/mobile/cmd/gomobile) first.
```sh
gomobile install -tags="gomobilebuild example" github.com/hajimehoshi/ebiten/examples/rotate
```