mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
examples: Update README
This commit is contained in:
parent
e14c05b0fe
commit
5f2cdd7d62
@ -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
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user