ebiten/examples
Hajime Hoshi 80ae508d29 examples/contextlost: Bug fix: Add 'js' build tag
Importing 'syscall/js' requires 'js' environment.
2019-05-01 17:55:12 +09:00
..
2048
additive
address
airship
alphablending
animation
audio
audioinfiniteloop
blocks
blur
chipmunk
contextlost examples/contextlost: Bug fix: Add 'js' build tag 2019-05-01 17:55:12 +09:00
doomfire
drag
filter
flappy
flood
font
fullscreen
gamepad
highdpi
hsv
hue
infinitescroll
keyboard
life
mandelbrot
masking
minify
moire
mosaic
noise
paint
particles
pcm
perspective
piano
platformer
polygons
raycasting
resources
rotate
set
shapes
sinewave
sprites
spriteshd
tiles
typewriter
ui
vector
wav
wheel
windowsize
README.md

How to execute the examples

Desktops

go run -tags=example $GOPATH/src/github.com/hajimehoshi/ebiten/examples/rotate/main.go

Web Browsers

gopherjs serve --tags=example

and access http://127.0.0.1:8080/github.com/hajimehoshi/ebiten/examples.

Android

Install gomobile first.

gomobile install -tags=example github.com/hajimehoshi/ebiten/examples/rotate

iOS

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.