ebiten/examples
Hajime Hoshi 6e51d31524
Use new GopherWasm API (#634)
I plan to merge this right after
https://github.com/gopherjs/gopherwasm/pull/3 is merged.
2018-06-30 00:02:15 +09:00
..
2048 input: Add TouchIDs and TouchPosition (#497) 2018-05-07 00:31:46 +09:00
additive examples: Add comment to explain about files 2018-03-16 12:05:53 +09:00
airship examples: Add comment to explain about files 2018-03-16 12:05:53 +09:00
alphablending examples: Add comment to explain about files 2018-03-16 12:05:53 +09:00
audio examples: Add jsgo build tag experimentally 2018-03-15 01:26:21 +09:00
audioinfiniteloop examples: Add jsgo build tag experimentally 2018-03-15 01:26:21 +09:00
blocks examples/blocks: Use IsGamepadButtonJustPressed 2018-04-30 03:43:50 +09:00
chipmunk examples/chipmunk: Fix styles 2018-04-03 21:47:46 +09:00
contextlost Use new GopherWasm API (#634) 2018-06-30 00:02:15 +09:00
drag examples/drag: Bug fix: nil error 2018-05-14 00:06:03 +09:00
filter examples: Add comment to explain about files 2018-03-16 12:05:53 +09:00
flappy examples/flappy: Add license comment 2018-05-28 02:38:55 +09:00
flood examples: Add comment to explain about files 2018-03-16 12:05:53 +09:00
font examples: Add jsgo build tag experimentally 2018-03-15 01:26:21 +09:00
fullscreen ui: Add MonitorSize 2018-05-05 02:42:45 +09:00
gamepad inpututil: Replace JustDisconnectedGamepadIDs with IsGamepadJustDisconnected (#505) 2018-04-30 04:35:10 +09:00
highdpi ebitenutil: Add NewImageFromURL 2018-03-22 01:19:57 +09:00
hsv examples: Add comment to explain about files 2018-03-16 12:05:53 +09:00
hue examples: Add comment to explain about files 2018-03-16 12:05:53 +09:00
infinitescroll examples: Add comment to explain about files 2018-03-16 12:05:53 +09:00
keyboard examples: Move resource files 2018-05-12 17:09:42 +09:00
life examples/life: Refactoring 2018-05-13 00:38:33 +09:00
mandelbrot examples: Add jsgo build tag experimentally 2018-03-15 01:26:21 +09:00
masking examples: Add comment to explain about files 2018-03-16 12:05:53 +09:00
moire examples: Add jsgo build tag experimentally 2018-03-15 01:26:21 +09:00
mosaic examples: Add comment to explain about files 2018-03-16 12:05:53 +09:00
noise examples: Add jsgo build tag experimentally 2018-03-15 01:26:21 +09:00
paint input: Add TouchIDs and TouchPosition (#497) 2018-05-07 00:31:46 +09:00
pcm examples: Add jsgo build tag experimentally 2018-03-15 01:26:21 +09:00
perspective examples: Add comment to explain about files 2018-03-16 12:05:53 +09:00
piano examples: Add jsgo build tag experimentally 2018-03-15 01:26:21 +09:00
platformer examples: Add jsgo build tag experimentally 2018-03-15 01:26:21 +09:00
resources examples: Move resource files 2018-05-12 17:09:42 +09:00
rotate examples: Add comment to explain about files 2018-03-16 12:05:53 +09:00
shapes examples: Add jsgo build tag experimentally 2018-03-15 01:26:21 +09:00
sinewave audio: NewPlayer now accepts io.ReadCloser 2018-03-22 00:33:17 +09:00
sprites examples/sprites: Update only shown sprites 2018-06-17 22:05:34 +09:00
spriteshd examples: Add comment to explain about files 2018-03-16 12:05:53 +09:00
tiles examples: Add comment to explain about files 2018-03-16 12:05:53 +09:00
typewriter examples/typewriter: consider repeating state 2018-04-14 05:39:42 +09:00
ui examples: Add comment to explain about files 2018-03-16 12:05:53 +09:00
wav examples: Add jsgo build tag experimentally 2018-03-15 01:26:21 +09:00
windowsize examples/windowsize: Add 0.75 scale 2018-06-03 02:32:42 +09:00
README.md examples: Add iOS explanation 2018-04-30 19:49:02 +09:00

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.