mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
24 lines
513 B
Markdown
24 lines
513 B
Markdown
# How to execute the examples
|
|
|
|
## Desktops
|
|
|
|
```sh
|
|
go run -tags=example github.com/hajimehoshi/ebiten/v2/examples/rotate
|
|
```
|
|
|
|
## Android
|
|
|
|
Install [gomobile](https://pkg.go.dev/golang.org/x/mobile/cmd/gomobile) first.
|
|
|
|
```sh
|
|
gomobile install -tags=example github.com/hajimehoshi/ebiten/v2/examples/rotate
|
|
```
|
|
|
|
## iOS
|
|
|
|
```sh
|
|
gomobile build -target=ios -tags=example -work github.com/hajimehoshi/ebiten/v2/examples/rotate
|
|
```
|
|
|
|
Then, open the `WORK` directory, open `main.xcodeproj`, add signing, and run the project.
|