Hajime Hoshi
cda6fa156f
examples/flappy: reorder build tags
2022-09-20 23:56:27 +09:00
Hajime Hoshi
67400d242b
examples/resource: use go:embed for images
...
Closes #1258
2022-09-17 23:27:45 +09:00
Hajime Hoshi
5305735055
examples/resource: use go:embed for audio and fonts
...
Updates #1258
2022-09-17 22:15:40 +09:00
Hajime Hoshi
289129c9e5
examples/shader: use go:embed
...
Updates #1258
2022-09-15 23:18:49 +09:00
Hajime Hoshi
d57cd39bb9
examples/resources/images/keyboard: fix comment
2022-09-15 23:18:49 +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
Terra Brown
a1cc44833d
add errcheck static analysis ( #2293 )
...
Closes #2287
2022-09-10 01:52:46 +09:00
Hajime Hoshi
6b1502ee71
examples/audio: handle errors
...
Updates #2287
2022-09-09 16:52:03 +09:00
Hajime Hoshi
f7c44f086f
replace Ebiten with Ebitengine in comments
2022-08-29 11:17:17 +09:00
Hajime Hoshi
610e9ce14c
gofmt -s -w
2022-08-28 00:04:32 +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
4d03b9fd98
examples/audio: use ebitenutil.DrawCircle
...
Updates #2250
2022-08-18 15:42:45 +09:00
Hajime Hoshi
bcba362e7e
inpututil: add AppendJustReleasedTouchIDs and TouchPreviousPosition
...
Closes #2057
2022-08-16 02:21:55 +09:00
Hajime Hoshi
e21c881644
examples/paint: refactoring: avoid calling input functions in Draw
2022-08-16 01:06:22 +09:00
Hajime Hoshi
1c548c0641
examples/keyboard: refactoring
2022-08-13 13:37:01 +09:00
Hajime Hoshi
e7c0a121c4
all: remove the build tag 'ebitencbackend'
...
This also automatically enables 'egl' when 'nintendosdk' is specified.
Updates #2242
2022-08-12 13:15:39 +09:00
Hajime Hoshi
05baee51d2
examples/highdpi: remove an old comment
2022-08-12 00:16:08 +09:00
Hajime Hoshi
094726915b
ebiten: add IsStandardGamepadAxisAvailable and IsStandardGamepadButtonAvailable ( #2241 )
...
Closes #2040
2022-08-11 12:35:20 +09:00
Hajime Hoshi
0217ed0544
ebiten: add WritePixels replacing ReplacePixels
...
Closes #2236
2022-08-08 03:50:27 +09:00
Hajime Hoshi
05dd36ec7b
examples/fullscreen: enable to test on mobile browsers
...
Closes #2060
2022-08-07 19:31:56 +09:00
mattn
2bacecca24
fix typos ( #2227 )
2022-08-03 22:40:39 +09:00
mattn
3cd0daac67
go generate ./... with Go 1.19 ( #2228 )
2022-08-03 20:48:02 +09:00
Hajime Hoshi
e41a8be9e4
add tools.go
2022-07-30 02:16:53 +09:00
divVerent
21207f827c
do not require installing file2byteslice to update go generate'd files. ( #2221 )
...
The tool is already referenced in go.mod, so it is trivial to just go run it -
that way, go generate can use it without the user explicitly installing it first.
2022-07-29 20:43:23 +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
0f52381580
ebiten: rename TPS functions
...
* SetMaxTPS() -> SetTPS()
* MaxTPS() -> TPS()
* CurrentTPS() -> ActualTPS()
* CurrentFPS() -> ActualFPS()
Closes #2071
2022-07-17 11:30:12 +09:00
Hajime Hoshi
36b7b85477
examples: change the name convention: Num -> Count
2022-07-13 02:02:48 +09:00
Hajime Hoshi
5f17264c74
ebiten: rename Gamepad(Axis|Button)Num -> Gamepad(Axis|Button)Count
2022-07-13 01:27:14 +09:00
Hajime Hoshi
bd72ca971e
examples/shader: bug fix: the CRT example crashed
2022-07-09 22:29:59 +09:00
Hajime Hoshi
be356390e0
examples/gamepad: add vibrations
2022-07-09 16:58:54 +09:00
Hajime Hoshi
75e84f6eda
audio/mp3, audio/vorbis, audio/wav: add DecodeWithoutResampling
...
Updates #2055
2022-07-01 01:46:37 +09:00
Hajime Hoshi
4836266c2b
examples/tiles: improve readability by calculating tileXNum on the fly
2022-06-10 23:54:45 +09:00
Hajime Hoshi
2c4ac5625b
examples/flappy: add GoMain when Windows+Cgo
...
This is a hack to compile the example with -buildmode=c-archive (.a).
Updates #2084
2022-05-02 22:46:26 +09:00
Hajime Hoshi
b1bcbbeeea
ebiten: add comments at DrawTriangles
2022-04-26 23:23:31 +09:00
Julian Merkle
d68f770561
examples/stars: refactor ( #2070 )
...
Minor adjustments because of:
* Function abs(int) is unused.
* Color fields are assigned without explicit names
* Color variable shadows the color package name
2022-04-13 18:42:04 +09:00
Hajime Hoshi
8f524b5c23
examples/vibrate: refactoring
2022-04-12 00:11:11 +09:00
Hajime Hoshi
55447679ee
examples/vibrate: bug fix: touches didn't work correctly
2022-04-12 00:05:55 +09:00
Hajime Hoshi
699b58c02b
examples/flappy: bug fix: touches didn't work
...
Closes #2067
2022-04-11 10:44:41 +09:00
Hajime Hoshi
b53f93c614
examples/windowclosing: update the message
2022-04-11 01:10:48 +09:00
Hajime Hoshi
e4d6381452
examples/fullscreen: forbid quiting on browsers
2022-04-10 20:04:52 +09:00
Hajime Hoshi
535e64f2bf
examples/audioinfiniteloop, examples/audiopanning: avoid resamplings
2022-04-10 19:41:44 +09:00
Hajime Hoshi
a65631bccc
examples/spriteshd: remove a call of SetWindowSize
2022-04-10 19:15:39 +09:00
Hajime Hoshi
648c8ed1f9
examples/flappy: use DecodeWithSampleRate instead of Decode
2022-04-10 14:55:48 +09:00
Hajime Hoshi
9b7328442b
examples/minify: reorder renderings
2022-04-09 23:27:58 +09:00
Hajime Hoshi
d6fe8ed694
examples/fullscreen: handle F key to enter fullscreen
...
On browsers, fullscreen requires an explicit user input.
2022-04-09 16:23:23 +09:00
Hajime Hoshi
063960c9bd
examples/font: simplify the logic
2022-04-09 16:08:20 +09:00
Hajime Hoshi
d58ef294b2
examples/text: add leading space characters
2022-04-04 00:18:35 +09:00
Hajime Hoshi
7a33837ed7
audio: change the type of SetBufferSize to time.Duration
...
Updates #2026
2022-03-25 20:47:01 +09:00