ebiten/examples
Hajime Hoshi 56faf34932 examples/text: adjust the rendering position
text/v2's Draw uses the given position as the upper-left position
of the bounds by default, while text (v1) uses the given position
as the origin position. In order to approximate the same result of
the original text version, adjust the Y values.

Updates #2454
2023-11-13 01:37:36 +09:00
..
2048 examples: replace BoundString with MeasureString and Metrics 2023-06-11 04:26:16 +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 audio: rename Seek -> SetPosition and Current -> Position 2023-08-02 01:24:52 +09:00
audioinfiniteloop audio: rename Seek -> SetPosition and Current -> Position 2023-08-02 01:24:52 +09:00
audiopanning audio: rename Seek -> SetPosition and Current -> Position 2023-08-02 01:24:52 +09:00
blend examples/blend: use the face's metrics to calculate the position 2023-06-02 01:58:21 +09:00
blocks examples: replace BoundString with MeasureString and Metrics 2023-06-11 04:26:16 +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 ebiten: add more cursor shapes 2023-07-23 00:49:45 +09:00
doomfire examples: remove example build tag (#2433) 2022-11-03 20:24:09 +09:00
drag examples/drag: refactoring 2023-10-28 00:10:15 +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 all: add files for PlayStation 5 2023-10-16 00:54:08 +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/gamepad: bug fix: correct iteration start button in gamepad example (#2730) 2023-08-24 16:27:35 +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: replace (*Image).Dispose with Deallocate 2023-11-03 17:45:39 +09:00
keyboard all: add text/v2 2023-11-12 17:04:25 +09:00
lasttouch examples: remove example build tag (#2433) 2022-11-03 20:24:09 +09:00
life examples/life: change the license to Apache License 2.0 2023-08-01 23:36:02 +09:00
lines examples/lines: remove duplicated code (#2713) 2023-07-29 13:29:19 +09:00
mandelbrot examples: remove example build tag (#2433) 2022-11-03 20:24:09 +09:00
mascot ebiten: add SetWindowMousePassthrough and IsWindowMousePassthrough 2023-09-18 18:31:22 +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
monitor ebiten: remove (*Monitor).Bounds() 2023-09-23 18:24:03 +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: rename arguments in Fragment 2023-09-21 01:35: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 examples/text: adjust the rendering position 2023-11-13 01:37:36 +09:00
texti18n examples/texti18n: use Jpan as a Japanese script 2023-07-09 15:17:25 +09:00
textinput all: add text/v2 2023-11-12 17:04:25 +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: replace (*Image).Dispose with Deallocate 2023-11-03 17:45:39 +09:00
vector ebiten: add a new FillRule: NonZero 2023-11-06 12:11:38 +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 internal/ui: bug fix: SetWindowIcon(nil) didn't reset the window icon 2023-09-30 02:46:40 +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.