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
|
2022-11-03 12:24:09 +01:00
|
|
|
go run github.com/hajimehoshi/ebiten/v2/examples/rotate@latest
|
2018-03-25 18:53:06 +02:00
|
|
|
```
|
|
|
|
|
2018-03-25 18:56:42 +02:00
|
|
|
## Android
|
2018-03-25 18:53:06 +02:00
|
|
|
|
2020-01-18 20:47:48 +01:00
|
|
|
Install [gomobile](https://pkg.go.dev/golang.org/x/mobile/cmd/gomobile) first.
|
2018-03-25 18:53:06 +02:00
|
|
|
|
|
|
|
```sh
|
2022-11-03 12:24:09 +01:00
|
|
|
gomobile install github.com/hajimehoshi/ebiten/v2/examples/rotate@latest
|
2016-08-25 18:21:01 +02:00
|
|
|
```
|
2018-04-30 12:49:02 +02:00
|
|
|
|
|
|
|
## iOS
|
|
|
|
|
|
|
|
```sh
|
2022-11-03 12:24:09 +01:00
|
|
|
gomobile build -target=ios -work github.com/hajimehoshi/ebiten/v2/examples/rotate@latest
|
2018-04-30 12:49:02 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
Then, open the `WORK` directory, open `main.xcodeproj`, add signing, and run the project.
|