Hajime Hoshi
87bc2e6f02
examples/sprites: Accept touches
2019-10-18 01:56:54 +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
c30918261b
gofmt -s -w
2019-10-12 01:09:42 +09:00
David Linus Briemann
9082edf03f
Add new example: squirals ( #952 )
2019-10-09 00:54:23 +09:00
Hajime Hoshi
5b22a1218e
examples: Fix warnings in the examples
...
Updates #889
2019-10-07 03:05:26 +09:00
Hajime Hoshi
fcca95dfa8
examples/set: Add FPS to see the performance
2019-10-04 01:51:26 +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
d25d184ed7
graphics: Bug fix: wrong for loops in TestImageMipmap*
2019-07-30 19:19:30 +09:00
Hajime Hoshi
80ae508d29
examples/contextlost: Bug fix: Add 'js' build tag
...
Importing 'syscall/js' requires 'js' environment.
2019-05-01 17:55:12 +09:00
Hajime Hoshi
10fb5e33be
Replace GopherWasm with syscall/js
...
Fixes #857
2019-05-01 17:28:00 +09:00
Hajime Hoshi
020cba22c5
vector: Implement miter limit
...
Fixes #843
2019-04-20 23:08:20 +09:00
Hajime Hoshi
5487dd9ea8
examples/vector: Add rotating points and lines by them
2019-04-14 23:15:03 +09:00
Hajime Hoshi
edbb5b4e0d
vector: Better line joints
...
Bug: #842
2019-04-14 15:48:20 +09:00
Hajime Hoshi
6bd9ef6abd
vector: Bug fix: wrong color value
2019-04-14 02:11:25 +09:00
Hajime Hoshi
8d912a402f
examples/vector: Render more texts
2019-04-14 01:58:20 +09:00
Hajime Hoshi
d7bd89d32b
Add vector package (Work in progress)
2019-04-14 00:37:38 +09:00
Hajime Hoshi
f56c3bd096
ui: Unexport SetWindowResizable ( #320 )
2019-02-25 02:19:47 +09:00
Hajime Hoshi
fc43868f21
examples/sprites: Rotate sprites
2019-02-24 02:09:38 +09:00
Hajime Hoshi
f7e7598567
examples/particles: Reduce emittion
2019-02-24 01:26:07 +09:00
Hajime Hoshi
0a35efbba9
Add examples/particles
...
Fixes #826
2019-02-24 01:20:06 +09:00
Hajime Hoshi
6906ea1c4f
examples/raycasting: Refactoring
2019-02-19 00:03:35 +09:00
Hajime Hoshi
b7c1d8db3c
examples/doomfile: Skip renderFire when possible
2019-02-15 00:54:11 +09:00
Hajime Hoshi
17daf99c3c
examples/airship: Show FPS
2019-02-12 13:03:32 +09:00
Cesar Gimenes
f361bb05dd
examples: Add doom fire algorithm example ( #808 )
2019-02-09 14:39:11 -10:00
Hajime Hoshi
5be567d58f
ui: Implement restoring context lost on browsers correctly
...
Fixes #734
2019-02-01 01:20:40 +09:00
Hajime Hoshi
7dafbb2e4e
examples/sinewave: Bug fix: Sinewave volume was too small
2019-01-20 02:17:10 +09:00
Hajime Hoshi
79b5712410
examples/sinewave: Refactoring (return the copied bytes)
2019-01-19 18:42:39 +09:00
Hajime Hoshi
808f512a7d
examples/sinewave: Refactoring
2019-01-19 18:36:03 +09:00
Hajime Hoshi
5cd66b6d6b
examples/audio: Remove unused functions
2019-01-15 02:13:18 +09:00
Hajime Hoshi
5a612f60b6
examples/audio: Bug fix: Do not close after Run
...
Now Run can return immediately on GopherJS.
In general, graceful shutdown should not be expected since there
is no 'end' phase on some environments.
Fixes #784
2019-01-15 02:11:23 +09:00
Hajime Hoshi
ea29637fda
examples/set: Use color.RGBA
2019-01-14 20:04:58 +09:00
Hajime Hoshi
67ce6c57c4
Add examples/set
2019-01-14 19:31:07 +09:00
Hajime Hoshi
1f277f7a2c
example/raycasting: Refactoring
2019-01-12 23:54:15 +09:00
Magnus
4a4f45ffd7
example/shadow-raycasting ( #780 )
2019-01-12 23:46:03 +09:00
Hajime Hoshi
ae84e79d16
ui: Add IsWindowResizable and SetWindowResizable (again)
...
Fixes #320
2019-01-09 00:24:16 +09:00
Hajime Hoshi
0d4e903b7a
Revert "ui: Add IsWindowResizable and SetWindowResizable"
...
This reverts commit f403e0716f
.
Reason: Compilation error on browsers
2019-01-09 00:12:57 +09:00
Hajime Hoshi
f403e0716f
ui: Add IsWindowResizable and SetWindowResizable
...
Fixes #320
2019-01-08 23:52:53 +09:00
Hajime Hoshi
aadfbc3e70
examples/blur: Fix comments about #694
2019-01-06 19:22:27 +09:00
Hajime Hoshi
348e50c5e7
examples/audio: Show the current volume ( #730 )
2019-01-05 01:43:22 +09:00
Hajime Hoshi
f1582c2d73
graphics: Add Address representing a sampler address mode
...
Fixes #761
2018-12-24 17:29:31 +09:00
Hajime Hoshi
e4d976e964
examples/sprites: Add FPS
2018-12-23 01:23:38 +09:00
Hajime Hoshi
9142a077cf
examples/pcm: Add intervals between notes
2018-12-17 23:25:52 +09:00
Hajime Hoshi
732b036343
Revert "examples/pcm: Bug fix: audio.Player refs should be held not to be GCed"
...
This reverts commit 52f0bd7e21
.
2018-12-17 02:34:10 +09:00
Hajime Hoshi
52f0bd7e21
examples/pcm: Bug fix: audio.Player refs should be held not to be GCed
...
Now audio.Player can be GCed after #746 was fixed.
2018-12-17 02:06:55 +09:00
Hajime Hoshi
a88deb03b5
Fix misspelling (again)
2018-12-03 18:25:44 +01:00
Hajime Hoshi
155ee828b8
Fix misspelling
2018-12-03 18:23:25 +01:00
Hajime Hoshi
ebffaeba3d
examples/minify: Better clipping
2018-11-09 01:08:32 +09:00
Hajime Hoshi
710f56531f
graphics: Experimental: (*image.Image).SubImage
...
Fixes #722
2018-10-28 02:19:14 +09:00
Hajime Hoshi
8b82667df1
graphics: Bug fix: Violating edge pixels with linear filter
...
Fixes #724
2018-10-26 00:48:51 +09:00