ebiten/examples
Hajime Hoshi 49582519c1 all: add a compiler directive kage:unit
This change adds a new compiler directive 'kage:unit' to Kage. This
takes one of these two values: 'pixel' and 'texel'. The default value
is 'texel'.

With the pixel-unit mode, all the built-in functions treats pixels
instead of texels, and the texCoord argument of Fragment is in pixels.
This simplifies shader programs as programs no longer have the notion
of texels.

With the texel-unit mode, the behavior is the same as the current
behavior.

Closes #1431
2023-04-23 22:11:57 +09:00
..
2048 ebiten: deprecate (*Image).Size 2023-01-20 01:26:37 +09:00
address examples: remove example build tag (#2433) 2022-11-03 20:24:09 +09:00
airship ebiten: deprecate (*Image).Size 2023-01-20 01:26:37 +09:00
alphablending ebiten: separate a package for ColorM: colorm 2022-11-08 23:50:04 +09:00
animation examples: remove example build tag (#2433) 2022-11-03 20:24:09 +09:00
audio vector: add anti-alias options to the utility functions 2023-03-18 11:01:48 +09:00
audioinfiniteloop examples: bug fix: wrong sample rate 2023-03-13 00:23:57 +09:00
audiopanning examples/audiopanning: fix the initial panning 2023-03-14 21:30:55 +09:00
blend examples/blend: shrink the window for small displays 2023-03-14 22:21:35 +09:00
blocks vector: add anti-alias options to the utility functions 2023-03-18 11:01:48 +09:00
blur ebiten: separate a package for ColorM: colorm 2022-11-08 23:50:04 +09:00
camera examples/camera: fix window title (#2564) 2023-02-06 17:31:23 +09:00
capture example: add a mouse capture example (#2642) 2023-04-19 13:02:02 +09:00
chipmunk ebiten: separate a package for ColorM: colorm 2022-11-08 23:50:04 +09:00
clip ebiten: deprecate (*Image).Size 2023-01-20 01:26:37 +09:00
contextlost internal/graphicsdriver/opengl: drop WebGL 1 support 2023-03-18 22:50:09 +09:00
cursor vector: add anti-alias options to the utility functions 2023-03-18 11:01:48 +09:00
doomfire examples: remove example build tag (#2433) 2022-11-03 20:24:09 +09:00
drag ebiten: deprecate (*Image).Size 2023-01-20 01:26:37 +09:00
dropfile examples/dropfile: bug fix: handle errors correctly 2023-01-25 15:25:06 +09:00
filter examples: remove example build tag (#2433) 2022-11-03 20:24:09 +09:00
flappy ebiten: deprecate (*Image).Size 2023-01-20 01:26:37 +09:00
flood ebiten: separate a package for ColorM: colorm 2022-11-08 23:50:04 +09:00
font text: improve rendering quality with HintingVertical 2022-11-25 16:45:37 +09:00
fontvector examples/fontvector: refactoring 2022-11-25 23:44:48 +09:00
fullscreen ebiten: deprecate (*Image).Size 2023-01-20 01:26:37 +09:00
gamepad examples: remove example build tag (#2433) 2022-11-03 20:24:09 +09:00
highdpi ebiten: deprecate (*Image).Size 2023-01-20 01:26:37 +09:00
hsv ebiten: deprecate (*Image).Size 2023-01-20 01:26:37 +09:00
hue ebiten: deprecate (*Image).Size 2023-01-20 01:26:37 +09:00
infinitescroll ebiten: deprecate (*Image).Size 2023-01-20 01:26:37 +09:00
isometric ebiten: deprecate (*Image).Size 2023-01-20 01:26:37 +09:00
keyboard ebiten: add KeyName for desktops and browsers 2022-12-25 03:37:29 +09:00
lasttouch examples: remove example build tag (#2433) 2022-11-03 20:24:09 +09:00
life examples: remove example build tag (#2433) 2022-11-03 20:24:09 +09:00
lines examples/lines: specify color values explicitly 2023-02-14 19:14:38 +09:00
mandelbrot examples: remove example build tag (#2433) 2022-11-03 20:24:09 +09:00
mascot ebiten: add RunGameOptions.SkipTaskbar 2022-12-13 02:00:44 +09:00
masking ebiten: deprecate (*Image).Size 2023-01-20 01:26:37 +09:00
minify ebiten: deprecate (*Image).Size 2023-01-20 01:26:37 +09:00
moire ebiten: deprecate (*Image).Size 2023-01-20 01:26:37 +09:00
mosaic ebiten: deprecate (*Image).Size 2023-01-20 01:26:37 +09:00
noise examples: remove example build tag (#2433) 2022-11-03 20:24:09 +09:00
paint ebiten: separate a package for ColorM: colorm 2022-11-08 23:50:04 +09:00
particles ebiten: deprecate (*Image).Size 2023-01-20 01:26:37 +09:00
pcm examples: remove example build tag (#2433) 2022-11-03 20:24:09 +09:00
perspective ebiten: deprecate (*Image).Size 2023-01-20 01:26:37 +09:00
piano vector: add anti-alias options to the utility functions 2023-03-18 11:01:48 +09:00
platformer examples: remove example build tag (#2433) 2022-11-03 20:24:09 +09:00
polygons examples: remove example build tag (#2433) 2022-11-03 20:24:09 +09:00
raycasting vector: add anti-alias options to the utility functions 2023-03-18 11:01:48 +09:00
realtimepcm examples: remove example build tag (#2433) 2022-11-03 20:24:09 +09:00
resources add blend modes example (#2563) 2023-02-07 11:59:49 +09:00
rotate ebiten: deprecate (*Image).Size 2023-01-20 01:26:37 +09:00
set ebiten: deprecate (*Image).Size 2023-01-20 01:26:37 +09:00
shader all: add a compiler directive kage:unit 2023-04-23 22:11:57 +09:00
shapes vector: add anti-alias options to the utility functions 2023-03-18 11:01:48 +09:00
sinewave examples: remove example build tag (#2433) 2022-11-03 20:24:09 +09:00
skipdraw ebiten: deprecate (*Image).Size 2023-01-20 01:26:37 +09:00
snake vector: add anti-alias options to the utility functions 2023-03-18 11:01:48 +09:00
sprites ebiten: deprecate (*Image).Size 2023-01-20 01:26:37 +09:00
spriteshd ebiten: deprecate (*Image).Size 2023-01-20 01:26:37 +09:00
squiral examples: remove example build tag (#2433) 2022-11-03 20:24:09 +09:00
stars vector: add anti-alias options to the utility functions 2023-03-18 11:01:48 +09:00
subimage examples/subimage: add a comment 2023-02-17 02:06:40 +09:00
text vector: add anti-alias options to the utility functions 2023-03-18 11:01:48 +09:00
tiles ebiten: deprecate (*Image).Size 2023-01-20 01:26:37 +09:00
touch ebiten: deprecate (*Image).Size 2023-01-20 01:26:37 +09:00
typewriter examples: remove example build tag (#2433) 2022-11-03 20:24:09 +09:00
ui ebiten: deprecate (*Image).Size 2023-01-20 01:26:37 +09:00
vector examples/vector: specify alpha values explicitly 2023-02-14 19:26:14 +09:00
vibrate examples: remove example build tag (#2433) 2022-11-03 20:24:09 +09:00
wav examples: remove example build tag (#2433) 2022-11-03 20:24:09 +09:00
wheel examples: remove example build tag (#2433) 2022-11-03 20:24:09 +09:00
windowclosing examples: remove example build tag (#2433) 2022-11-03 20:24:09 +09:00
windowsize examples/windowsize: add a new flag -runnableonunfocused 2023-04-01 03:13:47 +09:00
README.md examples: remove example build tag (#2433) 2022-11-03 20:24:09 +09:00

How to execute the examples

Desktops

go run github.com/hajimehoshi/ebiten/v2/examples/rotate@latest

Android

Install gomobile first.

gomobile install github.com/hajimehoshi/ebiten/v2/examples/rotate@latest

iOS

gomobile build -target=ios -work github.com/hajimehoshi/ebiten/v2/examples/rotate@latest

Then, open the WORK directory, open main.xcodeproj, add signing, and run the project.