iliya
b262191c79
examples: Refactor loops to use range in example files ( #3294 )
...
Replaces traditional for-loop constructs with 'for range' syntax in several example files for improved readability and idiomatic Go style. Affects contextlost, keyboard, mandelbrot, masking, moire, and noise examples.
2025-08-10 17:30:54 +09:00
Hajime Hoshi
f978dddfff
all: update bitmapfont to v4
2025-05-10 20:34:41 +09:00
Hajime Hoshi
0281ac7bd2
all: use bufio.NewWriter to improve writing speed
2024-07-29 16:29:57 +09:00
Hajime Hoshi
cd90f083bc
text/v2: rename StdFace to GoXFace
...
Closes #2925
2024-03-20 02:42:31 +09:00
Hajime Hoshi
f57703175e
text/v2: rename LineSpaceInPixels -> LineSpace for consistency
...
Updates #2454
2023-12-24 15:06:19 +09:00
Hajime Hoshi
a444f2dd40
text/v2: replace Metrics.Height/Width with HLineGap and VLineGap
...
Updates #2454
2023-12-02 14:33:41 +09:00
Hajime Hoshi
ecb1ac03d6
examples/keyboard/keyboard: use text/v2
...
Updates #2454
2023-11-19 16:47:08 +09:00
Hajime Hoshi
147175d400
text/v2: rename LineHeight -> LineSpacingInPixels
...
Updates #2454
2023-11-17 01:19:05 +09:00
Hajime Hoshi
b2c45a369a
text/v2: remove the suffix 'InPixels'
...
Now all the units are pixels, the suffix is redundant.
Updates #2454
2023-11-15 21:53:58 +09:00
Hajime Hoshi
b8b8b16098
all: add text/v2
...
This change adds some basic APIs incuding StdFace.
GoTextFace will be added later.
Updates #2454
2023-11-12 17:04:25 +09:00
Hajime Hoshi
f446288e0c
update bitmapfont to v3
2023-05-30 11:17:36 +09:00
Hajime Hoshi
dd7e125d9c
ebiten: add KeyName for desktops and browsers
...
Updates #1904
2022-12-25 03:37:29 +09:00
Hajime Hoshi
156c34a316
ebiten: separate a package for ColorM: colorm
...
Closes #2171
2022-11-08 23:50:04 +09:00
Artem Yadelskyi
86e694941f
examples: remove example build tag ( #2433 )
...
Closes #1462
2022-11-03 20:24:09 +09:00
Artem Yadelskyi
10415d417a
all: replace interface{} with any ( #2430 )
...
Closes #2429
2022-11-03 15:33:09 +09:00
Artem Yadelskyi
5b53cef59e
all: remove old // +build comments ( #2431 )
...
Closes #2325
2022-11-03 12:55:14 +09:00
Hajime Hoshi
6e6145541d
examples/keyboard/keyboard: use go:embed
...
Updates #1258
2022-09-15 22:58:57 +09:00
Hajime Hoshi
5404e4d68a
all: replace io/ioutil with io and os
...
Closes #1770
2022-09-15 02:54:25 +09:00
Hajime Hoshi
f7c44f086f
replace Ebiten with Ebitengine in comments
2022-08-29 11:17:17 +09:00
Terra Brown
de35a5a6f1
ebiten: add Termination for a regular termination ( #2272 )
...
Closes #2266
2022-08-27 21:33:40 +09:00
Hajime Hoshi
b858f36d54
remove the dependency on file2byteslice
...
Specify the version explicitly instead.
2022-08-23 16:34:55 +09:00
Hajime Hoshi
1c548c0641
examples/keyboard: refactoring
2022-08-13 13:37:01 +09:00
Hajime Hoshi
0217ed0544
ebiten: add WritePixels replacing ReplacePixels
...
Closes #2236
2022-08-08 03:50:27 +09:00
Hajime Hoshi
ca8c36499d
ebiten: recommend errors.Is instead of comparing the returned value directly
...
Closes #2152
2022-07-24 23:25:48 +09:00
Hajime Hoshi
a79c287bb7
inpututil: Add AppendPressedKeys
...
Updates #1705
2021-07-10 22:18:15 +09:00
Hajime Hoshi
a615be69c7
examples: Add //go:build
2021-06-24 21:49:37 +09:00
Hajime Hoshi
b54ad73a2b
Add go:build comments with go1.17beta1 fmt
2021-06-11 01:11:46 +09:00
Hajime Hoshi
c8ed6ec12e
examples/keyboard/keyboard: go generate
2021-04-17 19:30:04 +09:00
Hajime Hoshi
0300be7d9e
examples/keyboard: Use inpututil functions in Update rather than Draw
...
This is not a strict rule, but it is preferrable to use input functions
in Update rather than Draw.
2021-04-07 01:54:53 +09:00
Hajime Hoshi
0fcf5c8470
inpututil: Add PressedKeys
...
Closes #770
2021-04-07 01:50:39 +09:00
Chris S. Kim
3d5733f693
examples/keyboard: Minor typo fix ( #1436 )
2020-12-15 11:55:17 +09:00
Hajime Hoshi
47065f5f2c
Remove supporting jsgo
...
Updates #1129
2020-10-07 00:46:07 +09:00
Hajime Hoshi
1b816eb249
ebiten: Remove the error returning value from NewImageFromImage
...
Updates #1380
2020-10-06 01:03:33 +09:00
Hajime Hoshi
fe97e7b0a5
ebiten: Remove the filter argument from NewImage and NewImageFromImage
...
Updates #503
2020-10-05 01:40:44 +09:00
Hajime Hoshi
8f00c8fbf5
ebiten: Remove the argument from Update
...
Fixes #1260
2020-10-04 19:33:10 +09:00
Hajime Hoshi
bf515bb594
Update version to v2.0.0-alpha
2020-10-04 04:30:40 +09:00
Hajime Hoshi
584916c694
examples/keyboard: Use golang.org/x/image/font/opentype
...
Updates #484
2020-10-03 15:32:10 +09:00
Hajime Hoshi
d73472f4f2
Use the library style of file2byteslice
2020-08-14 00:50:09 +09:00
Hajime Hoshi
1f9cc53ce4
examples/keyboard/keyboard: Use RunGame
...
Updates #1111
2020-06-22 03:44:40 +09:00
Hajime Hoshi
b71fa0b59b
examples: Use RunGame
...
Updates #1111
2020-05-10 05:40:50 +09:00
Hajime Hoshi
7ac6b0bfa3
Update dependencies
2020-03-31 03:32:38 +09:00
Hajime Hoshi
83b2d4b112
input: driver.Key now distinguishes left/right modifier keys
...
This is a preparation for event package, that will have key enum.
Updates #926
2019-09-01 23:49:00 +09:00
Hajime Hoshi
710f56531f
graphics: Experimental: (*image.Image).SubImage
...
Fixes #722
2018-10-28 02:19:14 +09:00
Hajime Hoshi
b9265d5120
Enable to go-generate under non-GOPATH directories
2018-07-28 19:21:19 +09:00
Hajime Hoshi
3cd9dfd800
Rename IsRunningSlowly to IsDrawingSkipped
...
Fixes #643
2018-07-10 22:31:26 +09:00
Hajime Hoshi
07009501f9
examples: Move resource files
2018-05-12 17:09:42 +09:00
Hajime Hoshi
b22cc9d4be
Add periods after 'DO NOT EDIT'
2018-04-28 03:37:19 +09:00
Hajime Hoshi
fac7651152
examples/keyboard: Show other keys than 'keyboard' keys
2018-04-14 04:59:06 +09:00
Hajime Hoshi
bf304e6ac8
examples/keyboard: Refactoring: Use ebiten.Key to get the rect
2018-04-14 04:48:07 +09:00
Hajime Hoshi
9fb25693a3
examples/keyboard: Remove the last period from do-not-edit comment
2018-04-14 04:23:34 +09:00