Commit Graph

4801 Commits

Author SHA1 Message Date
Hajime Hoshi
32c04767da examples/audio: Switchable to MP3 from Ogg 2019-10-30 00:33:29 +09:00
Hajime Hoshi
43b37a0ca5 Update go.sum 2019-10-28 02:01:58 +09:00
Hajime Hoshi
31f56efd75 jsutil: Add doc.go
This is to avoid no-Go-files error on TravisCI.

https://travis-ci.org/hajimehoshi/ebiten/builds/603539948
2019-10-28 01:28:50 +09:00
Hajime Hoshi
fe805d7fd1 audio/vorbis/internal/stb: Bug fix: Forbid to use it from Wasm 2019-10-28 00:07:38 +09:00
Hajime Hoshi
f50875ff4b Change the build tag strategy: GopehrJS or not GopherJS 2019-10-27 23:33:22 +09:00
Hajime Hoshi
15ebf9bdb5 Update version to v1.11.0-alpha 2019-10-27 17:48:52 +09:00
Hajime Hoshi
49a5a2bf4e uidriver/js: Bug fix: Needed to initialize pseudoScale with the given scale
Updates #960, #973
2019-10-27 17:16:49 +09:00
Hajime Hoshi
b8da9cf041 examples/moire: Bug fix: Crash on browsers
Fixes #973
2019-10-27 17:00:14 +09:00
Hajime Hoshi
93792a6386 Update dependencies 2019-10-27 03:06:09 +09:00
Hajime Hoshi
3112619f00 Update Oto version to 0.5.1 2019-10-27 03:00:36 +09:00
Hajime Hoshi
06bbc08e9b web: Bug fix: IsAndroidChrome always returned true 2019-10-24 00:20:33 +09:00
Hajime Hoshi
124389561c audio: Bug fix: The dummy player should have long enough buffer
In the current implementation, the audio context will be ready
when a player's Write is finished. If the buffer is too short,
Write finishes immediately without accessing the low audio layer
and the audio context would be ready without playing anything.

This change changes the dummy buffer to have a long enough buffer
so that Write will be wait for acutual audio playing.

Fixes #970
2019-10-23 02:41:12 +09:00
Hajime Hoshi
b78f678700 audio: Bug fix: (*Context).IsReady never returned true unless there is a player
The audio context is never ready unless there is a player. This is
problematic when a user tries to play audio after the context is
ready. Play a dummy player to avoid the blocking.

Fixes #969
2019-10-22 23:45:13 +09:00
Hajime Hoshi
f34e94ff2c examples/squiral: Fix title 2019-10-22 23:18:16 +09:00
Hajime Hoshi
be449ea430 Bug fix: Remove replace from go.mod 2019-10-22 14:36:09 +09:00
Hajime Hoshi
a117486da7 Update Go versions in .travis.yml 2019-10-22 14:32:34 +09:00
Hajime Hoshi
2f7ccf17f5 docs: Fix comments 2019-10-22 04:15:15 +09:00
Hajime Hoshi
e391d7241d docs: Add backward compatibility notes 2019-10-22 04:07:14 +09:00
Hajime Hoshi
e7611139c3 uidriver/js: Bug fix: Watch the state regularly instead of events
visibilitystate is sometimes not called and in this case the app
does not come back.

This fix creates another goroutine to watch the state, and remove
event handlers.

Fixes #961
2019-10-21 00:04:07 +09:00
Hajime Hoshi
016a9a6923 Update Oto version for more efficent memory usage
Updates #828
2019-10-20 17:00:45 +09:00
Hajime Hoshi
230616a23b Use the latest Oto to use Web Worklet
Fixes #828
2019-10-20 05:37:32 +09:00
Hajime Hoshi
e578b0bd49 graphicscommand: Bug fix: Needed to adjust vertices when highp is not available
Fixes #962
2019-10-19 17:05:04 +09:00
Hajime Hoshi
15dc4bc647 cmd/ebitenmobile: Refactoring 2019-10-19 02:28:55 +09:00
Hajime Hoshi
6f6cceb42c cmd/ebitenmobile: Do not call addView in onLayout
In onLayout, addViewInLayout is safer.

This change fixes the potential issue by moving addView to
constructors.
2019-10-19 02:15:31 +09:00
Hajime Hoshi
00ae15082d examples/flappy: Change the spelling: Gameover -> Game over 2019-10-18 02:15:37 +09:00
Hajime Hoshi
87bc2e6f02 examples/sprites: Accept touches 2019-10-18 01:56:54 +09:00
Hajime Hoshi
bf07ead6ae mobile/ebitenmobileview: Bug fix: Use Math.floor to shrink the size a little bit
Fixes #956
2019-10-17 12:21:06 +09:00
Hajime Hoshi
43a8881ab8 uidriver/ui: Reduce calls of syscall/js 2019-10-16 02:56:58 +09:00
Hajime Hoshi
72248fa3ef ui: Bug fix: Focus canvas explicitly on input
Fixes #961
2019-10-15 23:57:16 +09:00
Hajime Hoshi
75721e6fc1 ui: Auto scaling on browsers
This change forces Ebiten apps on browsers 'fullscreen' mode.
After this change, 'scale' value is no longer used on browsers.

Note that this breaks backward compatibility, but as long as the
game works in an iframe, this should not be problematic.

Fixes #960
2019-10-15 00:02:02 +09:00
Hajime Hoshi
726de29f36 examples/windowsize: Remove Q key to terminate
Not having a way to terminate the app is more portable. Browsers
and mobiles don't have the notion of 'termination'.
2019-10-14 23:49:42 +09:00
Hajime Hoshi
30c185f254 uidriver/js: Bug fix: context must not be accessed before loop 2019-10-14 02:41:04 +09:00
Hajime Hoshi
4907cee128 Update documents 2019-10-13 17:33:10 +09:00
Hajime Hoshi
83f93df78b Add 'ebitengl' build tag to force to use GL
Fixes #958
2019-10-13 16:58:33 +09:00
Hajime Hoshi
5027bc1af5 buffered: Allow Set before the game runs
Fixes #949
2019-10-12 03:13:29 +09:00
Hajime Hoshi
1b011e3864 graphics: Bug fix: unexpected panic at Set with an out-of-range position 2019-10-12 02:28:55 +09:00
Hajime Hoshi
cbe4844fa0 Fix misspellings 2019-10-12 01:10:53 +09:00
Hajime Hoshi
c30918261b gofmt -s -w 2019-10-12 01:09:42 +09:00
Hajime Hoshi
d488fd7fcb mobile/ebitenmobileview: Refactoring: touches 2019-10-11 23:12:05 +09:00
Hajime Hoshi
5973833274 mobile/ebitenmobileview: Refactoring 2019-10-11 22:49:28 +09:00
Hajime Hoshi
12d0f273ec mobile/ebitenmobileview: Allow to call update before start
This fixes an issue that Update on another thread returns error
when SetGame is not called. As SetGame is permitted to be called
later, Update should not return error.
2019-10-11 22:14:19 +09:00
Hajime Hoshi
1f56266027 cmd/ebitenmobile: Bug fix: Use even numbers for the position/size
Fixes #956
2019-10-11 10:53:42 +09:00
Hajime Hoshi
4bfe60fb8a graphicsdriver/metal: Bug fix: SetFragmentBytes must be called anytime
Fixes #954
2019-10-10 03:13:55 +09:00
Hajime Hoshi
01cb6e67b8 mobile/ebitenmobileview: Bug fix: Compile error on Android 2019-10-09 23:03:22 +09:00
Hajime Hoshi
3c976eae02 cmd/ebitenmobile: Use Metal on iOS
The emulators still use OpenGL.

Fixes #737
2019-10-09 02:13:47 +09:00
Hajime Hoshi
17d7a33676 Add David Linus Briemann to AUTHORS 2019-10-09 00:56:48 +09:00
David Linus Briemann
9082edf03f Add new example: squirals (#952) 2019-10-09 00:54:23 +09:00
Hajime Hoshi
de7ae1aee8 Add go vet to .travis.yml
Updates #889
2019-10-07 03:12:19 +09:00
Hajime Hoshi
5b22a1218e examples: Fix warnings in the examples
Updates #889
2019-10-07 03:05:26 +09:00
Hajime Hoshi
4088de5349 graphicsdriver/opengl/gl: Fix go-vet errors on Windows
Updates #889
2019-10-06 23:19:59 +09:00