ebiten/examples
Hajime Hoshi 7d56e4335e ui: Add RunGame, WindowSize and SetWindowSize
This change introduces the new APIs RunGame, WindowSize and
SetWindowSize. These new APIs hides the notion of 'scale', and is
more flexible with the outside size change. This means that we can
introduce a resizable window.

This change also adds -legacy flag to examples/windowsize. If the
flag is off, the new APIs are used.

This change deprecates these functions since the notion of 'scale'
is deprecated:

  * ScreenScale
  * ScreenSizeInFullscreen
  * SetScreenScale
  * SetScreenSize

Fixes #943, #571
Updates #320
2019-12-22 03:35:31 +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 Rename IsRunningSlowly to IsDrawingSkipped 2018-07-10 22:31:26 +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 uidriver/js: Bug fix: Needed to initialize pseudoScale with the given scale 2019-10-27 17:16: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 graphics: Bug fix: wrong for loops in TestImageMipmap* 2019-07-30 19:19:30 +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: Implement miter limit 2019-04-20 23:08:20 +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 RunGame, WindowSize and SetWindowSize 2019-12-22 03:35:31 +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.