ebiten/examples
dericmiller 7ee8d1aa5f examples/life: Fix initial world randomization (#1045)
Because golang executes the init function after establishing
the variables in the var block, the random number seed wasn't
initializing until after the initial world state had gotten
established (leading to an identical game of Life on every run).
To fix this, we establish an empty world in the var block,
and then populate it in the init function after the random
number generator has been seeded.
2020-01-06 13:09:51 +09:00
..
2048 Rename IsRunningSlowly to IsDrawingSkipped 2018-07-10 22:31:26 +09:00
additive Rename IsRunningSlowly to IsDrawingSkipped 2018-07-10 22:31:26 +09:00
address graphics: Add Address representing a sampler address mode 2018-12-24 17:29:31 +09:00
airship examples/airship: Show FPS 2019-02-12 13:03:32 +09:00
alphablending ui: Rename TPS -> MaxTPS 2018-07-17 22:41:27 +09:00
animation graphics: Experimental: (*image.Image).SubImage 2018-10-28 02:19:14 +09:00
audio examples/audio: Switchable to MP3 from Ogg 2019-10-30 00:33:29 +09:00
audioinfiniteloop examples/audioinfiniteloop: Fix message 2018-10-13 14:46:13 +09:00
blocks graphics: Experimental: (*image.Image).SubImage 2018-10-28 02:19:14 +09:00
blur examples/blur: Fix comments about #694 2019-01-06 19:22:27 +09:00
chipmunk examples: Fix warnings in the examples 2019-10-07 03:05:26 +09:00
contextlost examples/contextlost: Bug fix: Add 'js' build tag 2019-05-01 17:55:12 +09:00
doomfire examples/doomfile: Skip renderFire when possible 2019-02-15 00:54:11 +09:00
drag Rename IsRunningSlowly to IsDrawingSkipped 2018-07-10 22:31:26 +09:00
filter Rename IsRunningSlowly to IsDrawingSkipped 2018-07-10 22:31:26 +09:00
flappy examples/flappy: Change the spelling: Gameover -> Game over 2019-10-18 02:15:37 +09:00
flood Rename IsRunningSlowly to IsDrawingSkipped 2018-07-10 22:31:26 +09:00
font examples: Use TPS instead of FPS to indicate how fast the app works 2018-09-30 02:27:33 +09:00
fullscreen examples/fullscreen: Fix offset 2018-10-12 01:11:14 +09:00
gamepad Rename IsRunningSlowly to IsDrawingSkipped 2018-07-10 22:31:26 +09:00
highdpi Fix misspelling (again) 2018-12-03 18:25:44 +01:00
hsv Rename IsRunningSlowly to IsDrawingSkipped 2018-07-10 22:31:26 +09:00
hue Rename IsRunningSlowly to IsDrawingSkipped 2018-07-10 22:31:26 +09:00
infinitescroll examples: Use TPS instead of FPS to indicate how fast the app works 2018-09-30 02:27:33 +09:00
keyboard input: driver.Key now distinguishes left/right modifier keys 2019-09-01 23:49:00 +09:00
life examples/life: Fix initial world randomization (#1045) 2020-01-06 13:09:51 +09:00
mandelbrot Rename IsRunningSlowly to IsDrawingSkipped 2018-07-10 22:31:26 +09:00
masking Rename IsRunningSlowly to IsDrawingSkipped 2018-07-10 22:31:26 +09:00
minify examples/minify: Better clipping 2018-11-09 01:08:32 +09:00
moire examples/moire: Make the window resizable 2019-12-23 04:45:49 +09:00
mosaic Rename IsRunningSlowly to IsDrawingSkipped 2018-07-10 22:31:26 +09:00
noise examples: Use TPS instead of FPS to indicate how fast the app works 2018-09-30 02:27:33 +09:00
paint ui: Rename TPS -> MaxTPS 2018-07-17 22:41:27 +09:00
particles examples/sprites: Rotate sprites 2019-02-24 02:09:38 +09:00
pcm examples/pcm: Add intervals between notes 2018-12-17 23:25:52 +09:00
perspective graphics: Experimental: (*image.Image).SubImage 2018-10-28 02:19:14 +09:00
piano examples: Use TPS instead of FPS to indicate how fast the app works 2018-09-30 02:27:33 +09:00
platformer examples: Use TPS instead of FPS to indicate how fast the app works 2018-09-30 02:27:33 +09:00
polygons examples/polygon: Better coloring 2018-08-14 02:14:19 +09:00
raycasting examples: Fix warnings in the examples 2019-10-07 03:05:26 +09:00
resources Add examples/particles 2019-02-24 01:20:06 +09:00
rotate driver: Add interface Window 2019-12-25 00:24:21 +09:00
set examples/set: Add FPS to see the performance 2019-10-04 01:51:26 +09:00
shapes examples: Use TPS instead of FPS to indicate how fast the app works 2018-09-30 02:27:33 +09:00
sinewave examples/sinewave: Bug fix: Sinewave volume was too small 2019-01-20 02:17:10 +09:00
sprites examples/sprites: Accept touches 2019-10-18 01:56:54 +09:00
spriteshd examples/sprites: Add FPS 2018-12-23 01:23:38 +09:00
squiral examples/squiral: Fix title 2019-10-22 23:18:16 +09:00
tiles graphics: Experimental: (*image.Image).SubImage 2018-10-28 02:19:14 +09:00
typewriter Rename IsRunningSlowly to IsDrawingSkipped 2018-07-10 22:31:26 +09:00
ui graphics: Experimental: (*image.Image).SubImage 2018-10-28 02:19:14 +09:00
vector vector: Rename functions 2019-12-30 16:14:49 +09:00
wav Fix misspelling 2018-12-03 18:23:25 +01:00
wheel examples/wheel: Improve message 2018-09-30 17:13:22 +09:00
windowsize ui: Add SetWindowResizable 2019-12-22 19:26:04 +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.