Hajime Hoshi
099ce1b3b4
Revert "ui: Add SetInitFocused"
...
This reverts commit bb04fc8a29
.
Reason: glfw.Focused / glfw.FocusOnShow did not work
Updates #769
2020-02-10 01:10:40 +09:00
Hajime Hoshi
bb04fc8a29
ui: Add SetInitFocused
...
Updates #769
2020-02-09 23:45:59 +09:00
Hajime Hoshi
67b166f732
examples/rotate: Revert resizeable window
...
This was accidentally introduced at 9ed8279fc8
.
2020-02-06 03:05:31 +09:00
Hajime Hoshi
d6d17a7e85
uidriver/js: Implement GamepadSDLID
...
Fixes #1053
2020-02-05 00:00:00 +09:00
Sam Oen
69dc54232c
examples/raycasting: fix bug, swap height and width ( #1067 )
2020-02-01 17:28:23 +09:00
Hajime Hoshi
db40554715
examples/windowsize: Add usage of IsForeground
...
Updates #1037
2020-01-21 23:34:03 +09:00
Hajime Hoshi
bfa7e42368
docs: Use pkg.go.dev instead of godoc.org (Go files)
2020-01-19 04:52:12 +09:00
Hajime Hoshi
31482ebbbd
docs: Use pkg.go.dev instead of godoc.org
2020-01-19 04:47:48 +09:00
dericmiller
7ee8d1aa5f
examples/life: Fix initial world randomization ( #1045 )
...
Because golang executes the init function after establishing
the variables in the var block, the random number seed wasn't
initializing until after the initial world state had gotten
established (leading to an identical game of Life on every run).
To fix this, we establish an empty world in the var block,
and then populate it in the init function after the random
number generator has been seeded.
2020-01-06 13:09:51 +09:00
Hajime Hoshi
e725c7ee78
vector: Rename functions
...
Updates #844
2019-12-30 16:14:49 +09:00
Hajime Hoshi
17e16e5759
examples/vector: Add FPS
2019-12-29 23:02:28 +09:00
Hajime Hoshi
cee11bd822
vector: Add BezierCurveTo
...
Updates #844
2019-12-29 00:06:55 +09:00
Hajime Hoshi
6edb586f52
example/vector: Add the logo
...
There is a known issue in the logo rendering.
2019-12-28 18:12:27 +09:00
Hajime Hoshi
f1a788801c
examples/vector: Add letters
2019-12-28 15:20:05 +09:00
Hajime Hoshi
d39dbc6a88
vector: Add QuadraticCurve
...
Updates #741
2019-12-28 14:58:29 +09:00
Hajime Hoshi
18b267fd4f
vector: Add Fill by triangulation
...
Updates #845
2019-12-28 02:51:09 +09:00
Hajime Hoshi
9ed8279fc8
driver: Add interface Window
2019-12-25 00:24:21 +09:00
Hajime Hoshi
f8d47e5c6a
examples/moire: Make the window resizable
2019-12-23 04:45:49 +09:00
Hajime Hoshi
049aa552d4
ui: Add SetWindowResizable
...
This change also fixes example/windowsize.
Fixes #320
2019-12-22 19:26:04 +09:00
Hajime Hoshi
4aa80de34d
examples/windowsize: Bug fix: screenScale can be 0 on browsers
2019-12-22 19:20:31 +09:00
Hajime Hoshi
7d56e4335e
ui: Add RunGame, WindowSize and SetWindowSize
...
This change introduces the new APIs RunGame, WindowSize and
SetWindowSize. These new APIs hides the notion of 'scale', and is
more flexible with the outside size change. This means that we can
introduce a resizable window.
This change also adds -legacy flag to examples/windowsize. If the
flag is off, the new APIs are used.
This change deprecates these functions since the notion of 'scale'
is deprecated:
* ScreenScale
* ScreenSizeInFullscreen
* SetScreenScale
* SetScreenSize
Fixes #943 , #571
Updates #320
2019-12-22 03:35:31 +09:00
Hajime Hoshi
aad5db8939
examples/windowsize: Change the delta of moving the window
2019-12-21 17:08:04 +09:00
Hajime Hoshi
bda11b0e17
driver: Add UI.SetWindowSize and UIContext.Layout
...
This is a preparation to introduce RunGame function.
Updates # 943 (Fix this line before committing)
2019-12-15 02:29:43 +09:00
Hajime Hoshi
0ec447e0d0
ui: Add SetScreenTransparent / IsScreenTransparent
...
Fixes #1001
2019-12-01 03:31:32 +09:00
Hajime Hoshi
d78b4d7ffd
examples/windowsize: Add messages about moving the window
2019-11-30 23:59:45 +09:00
Hajime Hoshi
9b2f864fc8
ui: Add SetWindowPosition(x, y int)
...
Fixes #936
2019-11-30 23:22:39 +09:00
Hajime Hoshi
c021d6be6a
ui: Add WindowPosition()
...
Fixes #936
2019-11-30 22:37:56 +09:00
Hajime Hoshi
e0d780b029
uidriver/glfw: Enable to call SetWindowDecorated after Run
...
Fixes #556
2019-11-26 11:46:18 +09:00
Hajime Hoshi
32c04767da
examples/audio: Switchable to MP3 from Ogg
2019-10-30 00:33:29 +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
f34e94ff2c
examples/squiral: Fix title
2019-10-22 23:18:16 +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
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