Hajime Hoshi
35b9dd0846
internal/ui: give up SetWindowAspectRatioFixed
...
Unfortunately, it is almost impossible to provide a consistent behavior
to keep the aspect ratio of the window on Windows. Instead of having an
incomplete API, let's remove this.
Closes #1988
2022-02-10 18:35:00 +09:00
Hajime Hoshi
891ca2a08d
ebiten: add IsWindowAspectRatioFixed
...
This also updates examples/windowsize.
Closes #1804
2022-02-09 20:06:18 +09:00
Hajime Hoshi
7482cae978
internal/ui: bug fix: the aspect ratio must be updated whenever the window size is forcibly updated
...
This also adds a new flag -aspectratiofixed to examples/windowsize
Updates #1804
2022-02-09 19:56:50 +09:00
Hajime Hoshi
fb3a022327
ebiten: use the DB's name for GamepadName
...
Updates #1949
2022-01-25 21:14:03 +09:00
Hajime Hoshi
210036a5a5
examples/gamepad: do not get an SDL ID from a disconnected gamepad
...
The result of ebiten.GamepadSDLID should not be reliable for a
disconnected gamepad.
2022-01-22 21:27:58 +09:00
Elias Daler
12c144070f
internal/uidriver/glfw: fix window float enable/disable ( #1962 )
...
Closes #1960
2022-01-17 00:28:25 +09:00
Hajime Hoshi
e687865c8c
ebiten: add ColorM.ScaleWithColor
...
Updates #1944
2022-01-10 17:36:46 +09:00
Hajime Hoshi
245cbc2f4d
examples/vibrate: bug fix: compile error
...
Updates #1452
2022-01-10 16:19:33 +09:00
Hajime Hoshi
3b0ce21a56
Revert "internal/graphicsdriver: bug fix: render semi-transparent vectors correctly"
...
This reverts commit 202f642395
.
Reason: TestImageEvenOdd failed
Updates #1933
2022-01-06 03:19:46 +09:00
Hajime Hoshi
202f642395
internal/graphicsdriver: bug fix: render semi-transparent vectors correctly
...
Closes #1933
2022-01-06 03:00:25 +09:00
Hajime Hoshi
583c2cf17e
examples/resources: reorder items
2021-12-31 05:30:37 +09:00
Jacob Salmela
e77985139b
examples/resources: bug fix: add a missing item Spritesheet_png ( #1924 )
...
the Spritesheet_png was not included with go generate so this adds that in
Signed-off-by: Jacob Salmela <me@jacobsalmela.com>
2021-12-31 05:28:41 +09:00
Hajime Hoshi
13c2d38b97
examples/flappy: add main_cbackend.go
2021-12-30 03:02:11 +09:00
ebiiim
4d988b2457
examples/airship: chore: fix typo ( #1907 )
2021-12-20 21:54:24 +09:00
Hajime Hoshi
12b5a6c3d6
examples: update README
2021-12-13 11:55:08 +09:00
Hajime Hoshi
39ef252c2e
ebiten: Add VibrationOptions to specify intensity ( #1891 )
...
Updates #1452
2021-12-04 22:14:02 +09:00
Hajime Hoshi
b4f87f9651
internal/uidriver/mobile: Implement Vibrate for Android
...
This change also adds AndroidManifest.xml for the example. This is
used for `gomobile install` command.
Updates #1452
2021-11-19 01:49:22 +09:00
Hajime Hoshi
732b125349
text: Add AppendGlyphs and Glyphs
...
Closes #1767
Closes #1871
2021-11-12 02:31:53 +09:00
wasedaigo
851733397e
examples/audioinfiniteloop: Use const to represent bytePerSample ( #1867 )
...
Co-authored-by: wasedaigo <daigo@odencat.com>
2021-11-08 15:52:53 +09:00
Hajime Hoshi
2aa232878d
ebiten: Add VibrateGamepad and implement this on browsers
...
Updates #1452
2021-10-25 02:30:42 +09:00
Hajime Hoshi
7c6f2fd799
ebiten: Vibrate takes time durations instead of the options
...
Android and browsers can specify only a time duration for vibration.
VibrateOptions is renamed to GamepadVibrateOptions for gamepads.
Updates #1452
2021-10-24 05:02:49 +09:00
Hajime Hoshi
b8a5ea7bd6
ebiten: Add Vibrate and VibrateOptions, and implement this on browsers
...
Updates #1452
2021-10-24 01:05:33 +09:00
r3vit
57c45a13e4
Remove dot imports from tests - Remove dot imports ( #1837 )
...
Closes #1824
2021-10-02 19:58:48 +09:00
Hajime Hoshi
3c8c17eace
examples/isometric: Recreate the offscreen when the screen size changes
2021-10-02 13:00:33 +09:00
Hajime Hoshi
0f363615b7
examples/isometric: Update the comment
2021-10-02 12:57:33 +09:00
Hajime Hoshi
291f5b89b8
examples/isometrics: Use an offscreen for a better result
2021-10-02 12:53:49 +09:00
Hajime Hoshi
84f2571ee1
examples/isometric: Refactoring
2021-10-02 09:28:18 +09:00
Hajime Hoshi
b78aef480e
examples/isometric: Refactoring
2021-10-01 11:51:25 +09:00
Hajime Hoshi
2f33366f5f
examples/isometric: Simplify the logic
2021-10-01 11:42:31 +09:00
Hajime Hoshi
f3318a2cec
examples/isometric: Do not create an ebiten.Image every frame
2021-10-01 11:36:38 +09:00
Hajime Hoshi
234a3d8d2a
examples/isometric: Remove unused variables
2021-10-01 11:15:52 +09:00
Trevor Slocum
1019e15ccd
Add isometric demo ( #1823 )
...
Based on a prototype by Justin Cichra (@jrcichra).
Closes #1112
2021-10-01 11:10:48 +09:00
Hajime Hoshi
52d917eff0
go generate
2021-09-25 03:45:17 +09:00
Hajime Hoshi
0d673a68ab
examples/blocks/blocks: Support standard gamepad axes
2021-09-24 23:35:01 +09:00
Hajime Hoshi
159bc8dda1
examples/stars: Reduce the window size
2021-09-24 01:55:18 +09:00
Hajime Hoshi
2b6debf960
examples/windowsize: Bug fix: Wrong comment
2021-09-23 21:40:10 +09:00
Hajime Hoshi
f00bdc99f7
examples: Change the sample rate to 48000
...
Closes #1649
2021-09-23 01:36:00 +09:00
Hajime Hoshi
07c8cb0e23
examples: Misspelling (//go:generated -> //go:generate)
2021-09-20 15:23:43 +09:00
Hajime Hoshi
537bdb29f8
examples: Update comments
2021-09-20 15:16:09 +09:00
Hajime Hoshi
39dc58658f
examples/windowsize: Add -autorestore
...
Closes #1610
2021-09-19 17:50:55 +09:00
Hajime Hoshi
69300f0c4e
examples/windowsize: Rename -screentransparent -> -transparent
2021-09-19 17:49:03 +09:00
Hajime Hoshi
42cd923418
ebiten: Add FillRule
...
Closes #1715
2021-09-19 17:17:00 +09:00
Hajime Hoshi
4509f2aee4
text: Add FaceWithLineHeight
...
Closes #1760
2021-09-12 22:56:14 +09:00
Hajime Hoshi
82c41cea39
examples/gamepad: Fix the layout
2021-09-12 21:09:13 +09:00
Hajime Hoshi
ea12ede127
ebiten: Add StandardGamepadButtonValue
...
Closes #1721
2021-09-12 21:00:48 +09:00
Trevor Slocum
ffe9a6f72d
Minor style fixes (early returns) ( #1792 )
2021-09-04 00:22:37 +09:00
Hajime Hoshi
d967f0a591
examples/sprites: Make the window resizable
2021-08-08 15:31:49 +09:00
Hajime Hoshi
14f0fbf844
examples/windowsize: Reset TPS when resetting the Vsync mode
2021-08-05 03:01:11 +09:00
Hajime Hoshi
852c787743
examples/flappy: Bug fix: an audio context was created multiple times
...
Closes #1739
2021-08-04 14:54:06 +09:00
Hajime Hoshi
656d9dccc0
text: Add DrawWithOptions
...
Closes #1461
2021-07-27 17:36:21 +09:00