mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-14 15:07:26 +01:00
32 lines
658 B
Markdown
32 lines
658 B
Markdown
# How to execute the examples
|
|
|
|
## Desktops
|
|
|
|
```sh
|
|
go run -tags=example $GOPATH/src/github.com/hajimehoshi/ebiten/examples/rotate/main.go
|
|
```
|
|
|
|
## Web Browsers
|
|
|
|
```sh
|
|
gopherjs serve --tags=example
|
|
```
|
|
|
|
and access `http://127.0.0.1:8080/github.com/hajimehoshi/ebiten/examples`.
|
|
|
|
## Android
|
|
|
|
Install [gomobile](https://pkg.go.dev/golang.org/x/mobile/cmd/gomobile) first.
|
|
|
|
```sh
|
|
gomobile install -tags=example github.com/hajimehoshi/ebiten/examples/rotate
|
|
```
|
|
|
|
## 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.
|