Hajime Hoshi
f39c591252
shader: Enable more Go syntax
2020-06-11 01:13:03 +09:00
Hajime Hoshi
b64dc627e9
shader: Add a builtin function viewportSize
2020-06-10 23:07:57 +09:00
datosh
f3d0a71eba
Example for an orthogonal 2D camera ( #1188 )
2020-06-10 23:01:25 +09:00
loig
63677e0e50
examples: Use RunGame ( #1183 )
...
Fixes #1111
2020-06-07 21:36:46 +09:00
loig
e117086ca1
examples/wheel: Use RunGame ( #1182 )
...
Updates #1111
2020-06-07 19:23:25 +09:00
Hajime Hoshi
ba36d5a8e9
shader: Reland: Add a predefined uniform variable: __viewportSize
2020-06-07 00:14:09 +09:00
Hajime Hoshi
fe308f1971
Revert "shader: Add a predefined uniform variable: Internal_ViewportSize"
...
This reverts commit 6f411842f0
.
Reason: Test failures on internal/restorable
2020-06-05 04:36:09 +09:00
Hajime Hoshi
6f411842f0
shader: Add a predefined uniform variable: Internal_ViewportSize
2020-06-05 03:00:43 +09:00
Hajime Hoshi
d0aa18ddb9
Add shader public APIs experimentally
...
Updates #1168
2020-06-04 01:40:50 +09:00
Hajime Hoshi
1da6dbcb29
examples: Use RunGame
...
Updates #1111
2020-05-30 21:47:36 +09:00
Hajime Hoshi
bab3288a37
examples: Use RunGame
...
Updates #1111
2020-05-30 21:20:26 +09:00
Hajime Hoshi
47f415fe5a
examples/raycasting: Use RunGame
...
Updates #1111
2020-05-24 00:12:44 +09:00
Hajime Hoshi
0bbf0d5291
examples: Use RunGame
...
Updates #1111
2020-05-23 23:36:53 +09:00
Hajime Hoshi
837f767f45
examples: Use RunGame
...
Updates #1111
2020-05-15 03:55:28 +09:00
Hajime Hoshi
dc3ed76e3e
examples: Use RunGame
...
Updates #1111
2020-05-12 02:35:26 +09:00
Hajime Hoshi
b71fa0b59b
examples: Use RunGame
...
Updates #1111
2020-05-10 05:40:50 +09:00
Hajime Hoshi
a1e65a5e90
examples/hue: Use RunGame
...
Updates #1111
2020-05-10 05:29:18 +09:00
Hajime Hoshi
ce965077d8
examples/hsv: Use Game interface and RunGame
...
Updates #1111
2020-05-07 16:55:42 +09:00
Hajime Hoshi
9c1b99bd26
examples/audioinfiniteloop: Fix a wrong comment
2020-04-22 21:57:15 +09:00
Hajime Hoshi
29ef737413
examples/gamepad: Use RunGame
...
Updates #1111
2020-04-20 01:36:12 +09:00
Hajime Hoshi
ff271493e2
examples/fullscreen: Use RunGame
...
Updates #1111
2020-04-20 01:10:05 +09:00
Hajime Hoshi
de8707f6a1
examples/highdpi: Use RunGame
...
Updates #1111
2020-04-12 20:49:52 +09:00
Hajime Hoshi
6529629d29
examples: Use RunGame
...
Updates #1111
2020-04-12 20:30:51 +09:00
Hajime Hoshi
e16a4cd85c
examples: Use RunGame
...
Updates #1111
2020-04-12 19:03:04 +09:00
Hajime Hoshi
cd4a0ba489
examples/rotate: Use RunGame
...
Updates #1111
2020-04-12 18:05:35 +09:00
Hajime Hoshi
9302160486
examples/flappy: Use RunGame
...
Updates #1111
2020-04-01 15:59:49 +09:00
Hajime Hoshi
01a1334639
examples/blocks: Use RunGame
...
Updates #1111
2020-04-01 15:57:49 +09:00
Hajime Hoshi
a70d6a314e
examples/2048: Use RunGame
...
Updates #1111
2020-04-01 15:51:54 +09:00
Hajime Hoshi
7ac6b0bfa3
Update dependencies
2020-03-31 03:32:38 +09:00
Hajime Hoshi
161d8aae8f
ui: Forbid RestoreWindow when the window is not maximized nor minimized
...
Fixes #1124
2020-03-31 02:48:22 +09:00
Hajime Hoshi
b470dace1a
examples/windowsize: Bug fix: Nothing was rendered with -legacy mode
2020-03-31 02:22:21 +09:00
Hajime Hoshi
f01f5045ba
examples/mascot: Use RunGame
...
Updates #1111
2020-03-31 01:06:47 +09:00
Hajime Hoshi
569f684d9b
examples/windowsize: Improve messages
2020-03-29 02:36:14 +09:00
Hajime Hoshi
b7d555e724
examples/blocks: Bug fix: ESC key caused crashing
2020-03-29 02:35:58 +09:00
Hajime Hoshi
231edfbd3f
example/contextlost: Bug fix: Compilie error on Go 1.14, Should use WebGL2
2020-03-29 02:03:14 +09:00
Hajime Hoshi
4fe5acd711
ui: Panic on MaximizeWindow when the window is not resizable
...
On Windows, the window could be maximized even when the window was
not resizable. This behavior is confusing. Forbid it so that the
behavior will be clearer.
2020-03-28 22:08:48 +09:00
Hajime Hoshi
7b5fb0a0d0
ui: Bug fix: The window was not shown on the secondary monitor on launching
...
This change changes the behavior of WindowPosition /
SetWindowPosition. The window position is now a relative position
and the origin position is the left-upper of the current monitor.
Fixes #1115
2020-03-28 19:51:47 +09:00
Hajime Hoshi
eb5f5485b3
examples/mascot: Add comments
2020-03-28 16:40:00 +09:00
Hajime Hoshi
e9508f8fbd
examples/windowsize: Bug fix: Key I was assigned for multiple purposes
2020-03-28 15:29:02 +09:00
Hajime Hoshi
844dbc4a9b
examples/windowsize: Better instruction message
2020-03-28 15:27:31 +09:00
Hajime Hoshi
237498e51f
ui: Add an optional function Draw function to Game interface ( #1107 )
...
This change adds an optional function Draw to the Game interface.
With Draw function, the game logic and rendering are separate.
There are some benefits:
* The API is clearer and easier to understand.
* When TPS < FPS, smoother rendering can be performed without
changing the game logic depending on TPS.
* Porting to XNA, which has separate functions Update and Draw,
would be a little easier.
Draw is optional due to backward compatibility. Game interface was
already used before v1.11.x in mobile packages, and adding a
function would break existing code unfortunately. Then, we adopted
switching the behavior based on whether Draw is implemented or not
by type assertions.
IsDrawingSkipped will always return false when Draw is implemented.
Fixes #1104
2020-03-24 12:01:37 +09:00
Hajime Hoshi
37a8ae06c5
example/mascot: Use vx16 instead of dir
2020-03-22 17:31:46 +09:00
Hajime Hoshi
77b7e961ff
example/mascot: Remove unused variable 'state'
2020-03-22 16:48:55 +09:00
Hajime Hoshi
4eedeb6ab7
example: Add mascot
...
This change also revert ScreenSizeInFullscree from the deprecated
state.
Fixes #1108
2020-03-22 16:30:48 +09:00
Hajime Hoshi
f317f3b5fd
ui: Add fuctions to maximize or minimize the window
...
This change adds these functions:
* MaximizeWindow
* IsWindowMaximized
* MinimizeWIndow
* IsWindowMinimized
* RestoreWindow
Fixes #994
2020-03-21 22:13:58 +09:00
Hajime Hoshi
978ee26898
ui: Add function aliases *OnUnfocused for *InBackground
...
Now a window can be floating with SetWindowFloating, the functions
that have suffix 'IsBackground' seems misleading. However, we
cannot rename them due to backward compatibility. Then, let's add
aliases and revisit them when updating the major version of Ebiten.
Fixes #1102
2020-03-21 00:42:00 +09:00
Hajime Hoshi
56358fd0c4
ui: Rename IsForeground -> IsFocused
...
Updates #1102
2020-03-21 00:12:47 +09:00
Hajime Hoshi
4ef3b3e804
ui: Add SetWindowFloating / IsWindowFloating
...
Fixes #880
2020-03-20 22:16:27 +09:00
Hajime Hoshi
f272da2980
examples/platformer: Add jumps
...
Fixes #1062
2020-03-19 02:11:03 +09:00
Hajime Hoshi
c6559f4f8e
examples/platformer: Adjust screen size
2020-03-19 01:26:34 +09:00