Hajime Hoshi
|
eb325c9684
|
Update docs
|
2015-01-08 23:45:30 +09:00 |
|
Hajime Hoshi
|
5dade52621
|
Bug fix: Use document.hidden (focus/blue event is not reliable when using <iframe>)
|
2015-01-08 11:56:21 +09:00 |
|
Hajime Hoshi
|
d933c54e20
|
Bug fix: Check window.top's focus in case that game is in <iframe>
|
2015-01-08 02:24:05 +09:00 |
|
Hajime Hoshi
|
a1214ff735
|
Stop the game when the window is not active (#69)
|
2015-01-08 01:35:09 +09:00 |
|
Hajime Hoshi
|
6efb806cc2
|
Stabilize FPS for JS
|
2015-01-08 00:44:41 +09:00 |
|
Hajime Hoshi
|
9915e6764a
|
Bug fix: blurred canvas in Retina display (#68)
|
2015-01-08 00:01:18 +09:00 |
|
Hajime Hoshi
|
27cd0610d1
|
Add 'auto-generated' notices (#66)
|
2015-01-07 23:21:52 +09:00 |
|
Hajime Hoshi
|
4eaa16b8d1
|
Rename mod key names
|
2015-01-07 23:18:40 +09:00 |
|
Hajime Hoshi
|
6bdc875596
|
Bug fix: Ignore unknown keys
|
2015-01-07 23:02:58 +09:00 |
|
Hajime Hoshi
|
f78c79a5dd
|
Bug fix: onkeydown function should return false to prevent browser shortcuts
|
2015-01-07 23:01:23 +09:00 |
|
Hajime Hoshi
|
a710db4c9e
|
Bug fix: invalidate function keys, backspace on browsers
|
2015-01-07 11:22:48 +09:00 |
|
Hajime Hoshi
|
9f40da41fc
|
Add backspace (not tested)
|
2015-01-07 11:22:25 +09:00 |
|
Hajime Hoshi
|
62d1395670
|
Arrange key's order
|
2015-01-07 11:00:15 +09:00 |
|
Hajime Hoshi
|
74e3c40740
|
Yield focus to canvas on clicking body
|
2015-01-07 04:39:33 +09:00 |
|
Hajime Hoshi
|
795e7c8eb2
|
Focus canvas on start (#64)
|
2015-01-07 04:34:47 +09:00 |
|
Hajime Hoshi
|
03cf0a7069
|
Bug fix: glfw.MouseButton should be converted to MouseButton
|
2015-01-07 04:04:04 +09:00 |
|
Hajime Hoshi
|
7677d885a2
|
Remove MouseButtonMax
|
2015-01-07 03:08:33 +09:00 |
|
Hajime Hoshi
|
bc26690b14
|
Add genkey.go
|
2015-01-07 03:05:59 +09:00 |
|
Hajime Hoshi
|
9d12a23172
|
Bug fix: preventDefault may prevent other events
|
2015-01-07 02:24:47 +09:00 |
|
Hajime Hoshi
|
a9f1b4f0e9
|
Add keys_glfw.go and keys_js.go
|
2015-01-07 00:05:46 +09:00 |
|
Hajime Hoshi
|
0ab90197a3
|
Implement IsMouseButtonPressed / CursorPosition in JS (#53)
|
2015-01-06 23:41:03 +09:00 |
|
Hajime Hoshi
|
b85bae38e9
|
Change the way to generate assets not to use unsafe; Unsafe doesn't work in GopherJS at least
|
2015-01-06 22:59:15 +09:00 |
|
Hajime Hoshi
|
c98631a703
|
Add input_glfw.go; Rename ui.go -> ui_glfw.go
|
2015-01-06 21:54:42 +09:00 |
|
Hajime Hoshi
|
324e8653fb
|
Update docs to use GopherJS (#54)
|
2015-01-06 00:44:39 +09:00 |
|
Hajime Hoshi
|
3f45685136
|
Centering <canvas>
|
2015-01-05 22:22:47 +09:00 |
|
Hajime Hoshi
|
1a4b25b23f
|
Change <title> on ui.Start (#56)
|
2015-01-05 22:08:22 +09:00 |
|
Hajime Hoshi
|
cdc29210db
|
Introduce ImageParts
|
2015-01-05 09:32:27 +09:00 |
|
Hajime Hoshi
|
8994ffad9b
|
Avoid copying arrays
|
2015-01-04 22:26:20 +09:00 |
|
Hajime Hoshi
|
265a85e922
|
Update for newer gopherjs
|
2015-01-04 22:25:58 +09:00 |
|
Hajime Hoshi
|
abed162e91
|
Bug fix: initial capacity of vertices
|
2015-01-03 16:25:17 +09:00 |
|
Hajime Hoshi
|
f80850ef14
|
Reduce calling gl.Flush
|
2015-01-03 16:21:09 +09:00 |
|
Hajime Hoshi
|
52e610845b
|
Avoid using struct key
|
2015-01-03 16:16:43 +09:00 |
|
Hajime Hoshi
|
3ad8d8ea2c
|
Use attrib location cache
|
2015-01-03 15:56:54 +09:00 |
|
Hajime Hoshi
|
13a94d3446
|
Avoid type switch
|
2015-01-03 15:52:02 +09:00 |
|
Hajime Hoshi
|
71d463c102
|
Avoid copying for performance; Use location caches
|
2015-01-03 15:21:47 +09:00 |
|
Hajime Hoshi
|
1117862d19
|
Avoid copying for performance
|
2015-01-03 14:23:31 +09:00 |
|
Hajime Hoshi
|
447bda7d68
|
Remove calling gl.checkFramebufferStatus
|
2015-01-03 02:01:30 +09:00 |
|
Hajime Hoshi
|
091cc215fb
|
Remove NextPowerOf2 (for uint64)
|
2015-01-03 01:46:25 +09:00 |
|
Hajime Hoshi
|
62f47ed02f
|
Change the body's background color black
|
2015-01-03 01:19:25 +09:00 |
|
Hajime Hoshi
|
ae04bb17f6
|
Reduce calling glFlush
|
2015-01-03 01:14:36 +09:00 |
|
Hajime Hoshi
|
47227139db
|
Implement keyboard events for js
|
2015-01-03 00:52:49 +09:00 |
|
Hajime Hoshi
|
5c755f2f31
|
Fix BindFramebuffer to pass JS null object explicitly
|
2015-01-02 23:52:40 +09:00 |
|
Hajime Hoshi
|
24c39bcd18
|
Fix shaders for WebGL
|
2015-01-02 23:31:32 +09:00 |
|
Hajime Hoshi
|
bd4434c62c
|
Add loadimage_js.go
|
2015-01-02 16:48:07 +09:00 |
|
Hajime Hoshi
|
cadb3fffdf
|
Add ui_js.go and input_js.go
|
2015-01-02 15:20:05 +09:00 |
|
Hajime Hoshi
|
c95390801a
|
Add keys.go
|
2015-01-02 03:29:51 +09:00 |
|
Hajime Hoshi
|
c4e104a5d2
|
Remove ui.ActualScale()
|
2015-01-02 03:28:43 +09:00 |
|
Hajime Hoshi
|
3d01084a2a
|
Hide structs in internal/ui
|
2015-01-02 03:25:31 +09:00 |
|
Hajime Hoshi
|
a9e323d02c
|
Rename input -> Input
|
2015-01-02 02:44:00 +09:00 |
|
Hajime Hoshi
|
8994bf4fad
|
Rename RealScale -> ActualScale
|
2015-01-02 02:23:47 +09:00 |
|