ebiten/examples/README.md

32 lines
658 B
Markdown
Raw Normal View History

2018-03-25 18:53:06 +02:00
# How to execute the examples
2016-08-25 18:21:01 +02:00
2018-03-25 18:56:42 +02:00
## Desktops
2016-08-25 18:21:01 +02:00
```sh
2018-03-25 18:53:06 +02:00
go run -tags=example $GOPATH/src/github.com/hajimehoshi/ebiten/examples/rotate/main.go
```
2018-03-25 18:56:42 +02:00
## Web Browsers
2018-03-25 18:53:06 +02:00
```sh
gopherjs serve --tags=example
```
and access `http://127.0.0.1:8080/github.com/hajimehoshi/ebiten/examples`.
2018-03-25 18:56:42 +02:00
## Android
2018-03-25 18:53:06 +02:00
Install [gomobile](https://pkg.go.dev/golang.org/x/mobile/cmd/gomobile) first.
2018-03-25 18:53:06 +02:00
```sh
gomobile install -tags=example github.com/hajimehoshi/ebiten/examples/rotate
2016-08-25 18:21:01 +02:00
```
2018-04-30 12:49:02 +02:00
## iOS
```sh
gomobile build -target=ios -tags=example -work github.com/hajimehoshi/ebiten/examples/rotate
```
Then, open the `WORK` directory, open `main.xcodeproj`, add signing, and run the project.