Hajime Hoshi
ed028110cf
ebiten: Allow rendering on a sub-image by scissor test
...
Fixes #1255
2020-11-08 00:58:44 +09:00
Hajime Hoshi
61a8f2c69c
examples/rotate: Update the resolution
2020-11-05 00:37:24 +09:00
Hajime Hoshi
552fbb7ed9
examples/contextlost: Enable to build on non-JS environments
2020-11-05 00:36:07 +09:00
Hajime Hoshi
fa53160e18
mipmap: Stop using negative mipmaps
...
Negative mipmaps tend to allocate extremely big images.
Instead, encourage to use images with explicit padding when enlarging
the image.
Fixes #1400
2020-10-31 02:52:40 +09:00
Hajime Hoshi
19d6f8d20a
examples: Update resolutions
...
Fixes #1408
2020-10-31 02:06:45 +09:00
Hajime Hoshi
fd41042dcb
examples/airship: Update the resolution
...
Updates #1408
2020-10-31 01:56:58 +09:00
Hajime Hoshi
e7d080ca4a
mipmap: Bug fix: Too big scale tried to allocate too big images
...
Fixes #1399
2020-10-21 11:28:05 +09:00
Hajime Hoshi
75158feccf
examples/shader: Add build tags for the generated files
2020-10-17 22:38:45 +09:00
Hajime Hoshi
fe6a2daef4
graphicsdriver/metal: Bug fix: Had to set the vsync state again at resetting
...
Fixes #1364
2020-10-14 01:58:56 +09:00
Hajime Hoshi
dfeb48b154
examples/windowsize: Fix the message
2020-10-10 23:00:49 +09:00
Hajime Hoshi
10f394f72b
examples/wav: Play SE immediately
2020-10-10 05:03:51 +09:00
Hajime Hoshi
b1c67c7661
ebiten: Introduce type TouchID
...
Fixes #604
2020-10-10 03:57:47 +09:00
Hajime Hoshi
809b7a3afa
ebiten: Introduce type GamepadID
...
Updates #604
2020-10-08 01:57:08 +09:00
Hajime Hoshi
bb20e62435
examples/gamepad: Bug fix: Misuse of indices and gamepad IDs
2020-10-08 01:13:51 +09:00
Hajime Hoshi
f1f7b350de
audio, audio/mp3, audio/vorbis, audio/wav: Remove Close functions
...
Fixes #859
2020-10-07 23:39:58 +09:00
Hajime Hoshi
7a0e31a23a
Clean up the 'js' build tags
...
Updates #1129
2020-10-07 01:33:10 +09:00
Hajime Hoshi
47065f5f2c
Remove supporting jsgo
...
Updates #1129
2020-10-07 00:46:07 +09:00
Hajime Hoshi
41cf90a321
ebiten: Change the default value of IsRunningOnUnfocused to be true
...
Fixes #1180
2020-10-07 00:30:49 +09:00
Hajime Hoshi
c777dc6938
examples/contextlost: Bug fix: Compile error
2020-10-06 01:34:07 +09:00
Hajime Hoshi
1b816eb249
ebiten: Remove the error returning value from NewImageFromImage
...
Updates #1380
2020-10-06 01:03:33 +09:00
Hajime Hoshi
c6053bcf14
ebiten: Remove the error returning value from NewImage
...
Updates #1380
2020-10-06 00:48:56 +09:00
Hajime Hoshi
54da0d9763
ebiten: Remove the returning value from (*Image).DrawImage
...
Updates #1380
2020-10-06 00:21:17 +09:00
Hajime Hoshi
944a19c6f7
audio: Remove the error returning value from NewContext
...
Updates #1380
2020-10-05 02:25:13 +09:00
Hajime Hoshi
29b4087ebf
audio: Remove the error returning value from NewPlayerFromBytes
...
Updates #1380
2020-10-05 02:18:27 +09:00
Hajime Hoshi
448a863eb1
ebiten: Remove FilterDefault
...
Fixes #503
2020-10-05 01:48:47 +09:00
Hajime Hoshi
fe97e7b0a5
ebiten: Remove the filter argument from NewImage and NewImageFromImage
...
Updates #503
2020-10-05 01:40:44 +09:00
Hajime Hoshi
8f00c8fbf5
ebiten: Remove the argument from Update
...
Fixes #1260
2020-10-04 19:33:10 +09:00
Hajime Hoshi
e90b5ff277
Update import paths in the documents
2020-10-04 05:07:08 +09:00
Hajime Hoshi
1d4ff9a906
ebiten: Remove the deprecated functions and constants
...
Updates #1127
2020-10-04 04:47:24 +09:00
Hajime Hoshi
bf515bb594
Update version to v2.0.0-alpha
2020-10-04 04:30:40 +09:00
Hajime Hoshi
eb38324021
examples: Use golang.org/x/image/font/opentype
...
Fixes #484
2020-10-03 23:14:09 +09:00
Hajime Hoshi
43734dc1a2
examples/resources/fonts: Remove Arcade_n.ttf
2020-10-03 20:40:33 +09:00
Hajime Hoshi
92c0d8da7e
Revert "examples/font: Use golang.org/x/image/font/opentype"
...
This reverts commit 7b3294064d
.
Reason: #1377
2020-10-03 20:25:57 +09:00
Hajime Hoshi
990ba69d7a
Revert "examples/2048: Use golang.org/x/image/font/opentype"
...
This reverts commit aa9f7f7c19
.
Reason: #1377
2020-10-03 20:25:45 +09:00
Hajime Hoshi
041377a9a2
Revert "examples/fullscreen: Use golang.org/x/image/font/opentype"
...
This reverts commit b264a421ae
.
Reason: #1377
2020-10-03 20:25:02 +09:00
Hajime Hoshi
42fe708263
Revert "examples/text: Use golang.org/x/image/font/opentype"
...
This reverts commit 013a42ddb8
.
Reason: #1377
2020-10-03 20:24:05 +09:00
Hajime Hoshi
584916c694
examples/keyboard: Use golang.org/x/image/font/opentype
...
Updates #484
2020-10-03 15:32:10 +09:00
Hajime Hoshi
3f1d0788f5
examples: Use golang.org/x/image/font/opentype
...
Updates #484
2020-10-03 15:25:39 +09:00
Hajime Hoshi
c9af0e9bd4
examples/blocks: Use golang.org/x/image/font/opentype
...
This change also adds a new font "Press Start 2P".
Updates #484
2020-09-29 22:02:48 +09:00
Hajime Hoshi
b264a421ae
examples/fullscreen: Use golang.org/x/image/font/opentype
...
Updates #484
2020-09-28 02:26:32 +09:00
Hajime Hoshi
013a42ddb8
examples/text: Use golang.org/x/image/font/opentype
...
Updates #484
2020-09-28 02:25:01 +09:00
Hajime Hoshi
aa9f7f7c19
examples/2048: Use golang.org/x/image/font/opentype
...
Updates #484
2020-09-28 02:23:17 +09:00
Hajime Hoshi
7b3294064d
examples/font: Use golang.org/x/image/font/opentype
...
Updates #484
2020-09-28 02:20:14 +09:00
Hajime Hoshi
8cb037e902
examples/gamepad: Sort gamepad ids when showing the states
2020-09-21 17:30:28 +09:00
Hajime Hoshi
9ac7a16333
examples/camera: Add limitations to the zoom factor
2020-09-21 01:13:00 +09:00
Hajime Hoshi
8803138464
examples/airship: Bug fix: Avoid too big scaling
...
Fixes #1353
2020-09-21 00:43:13 +09:00
Hajime Hoshi
9906e4b882
go generate
2020-09-20 23:28:17 +09:00
Hajime Hoshi
e406ebb1aa
ebiten: Rename imageSrcTextureRegion -> imageSrcRegionOnTexture
...
Updates #1325
2020-09-19 19:36:53 +09:00
Hajime Hoshi
9f7d6962ff
ebiten: Rename shader functions to get colors from textures
...
Updates #1325
2020-09-19 19:01:05 +09:00
Hajime Hoshi
850303b770
ebiten: Change the type of Uniforms to map[string]interface{}
...
Fixes #1324
2020-09-06 21:02:30 +09:00
Hajime Hoshi
d2cfed7558
examples/shader: Remove an unused variable
...
Updates #1328
2020-09-01 23:50:19 +09:00
Hajime Hoshi
dd7b0d81ae
ebiten: Rename shader builtin functions
...
* imageSrcTextureSourceRegion -> imageSrcTextureRegion
* image[N]TextureAt -> imageSrc[N]At
* image[N]TextureBoundsAt -> imageSrc[N]BoundsAt
Updates #1325
2020-09-01 21:31:50 +09:00
Hajime Hoshi
77fa0cb9ef
ui: Add SetInitFocused
...
Fixes #769
2020-08-23 02:19:09 +09:00
Tom Lister
65d5b64d29
ebiten: Rename SetClearingScreenSkipped/IsClearingScreenSkipped functions ( #1317 )
...
Fixes #1315
2020-08-20 17:12:22 +09:00
Hajime Hoshi
3060ad96f1
examples/contextlost: Fix comments
2020-08-20 00:45:59 +09:00
Hajime Hoshi
6718cd32a6
examples/contextlost: Skip Draw when the context lost happens
...
Updates #1314
2020-08-19 21:15:49 +09:00
Hajime Hoshi
7ec63acd1d
ebiten: Bug fix: Set the state of being volatile on SetClearingScreenSkipped
...
Fixes #1309
2020-08-19 01:23:30 +09:00
Hajime Hoshi
2acb604260
examples/contextlost: Bug fix: Failed to compile with Go 1.12
2020-08-16 23:05:33 +09:00
Hajime Hoshi
05a1c2faa1
examples/shader: Always use 1 for an alpha
...
This is necessary to keep the color pre-multiplied
2020-08-16 02:34:21 +09:00
Hajime Hoshi
06ed4f5444
shader: Implement len function
...
Fixes #1279
2020-08-16 02:07:39 +09:00
Hajime Hoshi
a1d278b097
examples/shader: Add water.go
...
Updates #1284
2020-08-15 21:36:13 +09:00
Hajime Hoshi
d90edf5826
examples/windowsize: Add an option to skip clearing the screen
...
Updates #1132
2020-08-15 03:14:38 +09:00
Hajime Hoshi
d73472f4f2
Use the library style of file2byteslice
2020-08-14 00:50:09 +09:00
Hajime Hoshi
a1c7c18788
examples/shader: Regenerate files with the latest file2byteslice
2020-08-13 03:03:27 +09:00
Magnus
95022ff1a5
examples/shader: dissolve shader ( #1291 )
...
Updates #1284
2020-08-12 00:43:07 +09:00
Hajime Hoshi
08270ee729
shader: Enable to parse ... in an array type
2020-08-11 23:51:22 +09:00
Hajime Hoshi
70acb9c1f6
shader: Rename shader bultin functions
...
Renamed image0TextureSize to imageSrcTextureSize, and removed the
other texture-size functions.
As texture-coordinates are always in image0's texture texels,
calculations with texels are always done with image0's texture texels.
Then, other texture-size functions are useless. To avoid confusion,
let's remove the functions and leave the necessary funciton.
2020-08-11 05:02:22 +09:00
Hajime Hoshi
b95195ab71
examples/shader: Fix some API usages
2020-08-11 04:25:20 +09:00
Hajime Hoshi
69f87d5fd1
ebiten: Add new shader builtin functions: image[N]TextureBoundAt
...
Fixes #1287
2020-08-11 03:24:54 +09:00
Hajime Hoshi
bc930ed0ec
Revert "examples/shader: Rename ScreenSize -> ImageSize"
...
This reverts commit 3893f9cdbe
.
Reason: The screen size and the image size can be different.
2020-08-11 02:16:16 +09:00
Hajime Hoshi
68ca0c634e
ebiten: Rename builtin shader functions
...
* textureDstSize -> imageDstTextureSize
* texture[N]Size -> image[N]TextureSize
* texture[N]At -> image[N]TextureAt
Updates #1287
2020-08-11 02:07:53 +09:00
Hajime Hoshi
3893f9cdbe
examples/shader: Rename ScreenSize -> ImageSize
2020-08-11 01:52:16 +09:00
Hajime Hoshi
8bfe406470
examples/shader: Make the chromatic berration example more readable
2020-08-10 21:58:49 +09:00
Hajime Hoshi
8aa90e60d2
examples/shader: Regenerate bytes
2020-08-10 21:52:58 +09:00
Hajime Hoshi
f282a57a69
Revert "examples/shader: Merge generate.go and main.go"
...
This reverts commit fec9cae66a
.
Reason: go generate failed without the build tag
2020-08-10 21:52:18 +09:00
Hajime Hoshi
fec9cae66a
examples/shader: Merge generate.go and main.go
2020-08-10 21:12:34 +09:00
Tom Lister
6e5a9a4534
examples/shader: Add the chromatic aberration example ( #1288 )
...
Updates #1284
2020-08-10 21:08:53 +09:00
Hajime Hoshi
8dec91db43
examples/shader: Add the radial blur example
...
Updates #1284
2020-08-10 05:16:44 +09:00
Ishmeet
c352e69689
examples: Add a snake game ( #1276 )
2020-08-01 02:00:45 +09:00
Hajime Hoshi
0b3f846b47
examples/text: Update the title
2020-07-30 03:11:06 +09:00
Hajime Hoshi
481c160c2a
text: Replace MeasureString with BoundString
...
Fixes #1272
2020-07-30 00:51:10 +09:00
Hajime Hoshi
2fb5108bbe
shader: Rename viewportSize to textureDstSize
...
Updates #1239
2020-07-26 00:03:55 +09:00
Hajime Hoshi
c6282e1cfc
examples/polygons: Bug fix: Inserted an experimental code
2020-07-25 23:30:01 +09:00
Hajime Hoshi
2bdbcd724d
ebiten: Rename Draw*WithShader -> Draw*Shader
...
Updates #1168
2020-07-25 23:15:11 +09:00
Hajime Hoshi
a159f55520
examples/airship: Bug fix: z could be a too small number
...
Fixes #1256
2020-07-21 00:34:06 +09:00
Hajime Hoshi
c567a7b507
ebiten: Add DrawRectangleWithShader
...
Updates #1168
2020-07-20 22:48:22 +09:00
Hajime Hoshi
1217db3b1e
ebiten: Remove user-defined vertex shaders
...
Fixes #1253
2020-07-20 10:07:55 +09:00
Hajime Hoshi
a3f62559c6
examples/shader: Add lighting example
...
Fixes #1234
2020-07-19 15:42:35 +09:00
Hajime Hoshi
e0d5763a60
shader: Use the fixed number of images for shaders
...
This changes uses arrays rather than slices in order to avoid heap
allocations.
Updates #1193
2020-07-18 18:27:47 +09:00
Hajime Hoshi
7f70797a6d
ebiten: Rename DrawTriaglesWithShaderOptions.Textures to Images
2020-07-15 03:49:05 +09:00
Hajime Hoshi
d217bc6033
ebiten: Sparate textures from uniforms at DrawTrianglesWithShader
...
Updates #1193
Updates #1239
2020-07-09 01:59:21 +09:00
Hajime Hoshi
4021c24534
shader: Separate uniform variables and texture variabls
...
Textures cannot be treated as a regular variable, then they should
be treated differently from other uniform variables.
Add a new function texture0At replacing texture2D.
Updates #1239
2020-07-08 01:12:07 +09:00
Hajime Hoshi
f7757ae025
ebiten: Add AddressUnsafe
...
Fixes #1219
2020-07-03 00:33:07 +09:00
Hajime Hoshi
dcba380827
examples/audiopanning: Remove intro loop
2020-07-01 23:14:45 +09:00
Gabriel Ochsenhofer
9942d5bac2
example: Stereo audio panning example ( #1227 )
...
This example simulates an audio source (sprite) and an audio listener (camera).
The panning is relative to the sprite's position.
Fixes #1224
2020-07-01 23:03:47 +09:00
Hajime Hoshi
5d092ae022
examples/raycasting: Adjust the position of the message
2020-07-01 01:52:49 +09:00
João Wiciuk
c57e569aea
examples/raycasting: Fixed duplicated points, plotting ray count ( #1225 )
2020-07-01 01:47:42 +09:00
Hajime Hoshi
aee5d6d708
examples/sprites, examples/spriteshd: Misspelling
2020-06-28 22:22:52 +09:00
Hajime Hoshi
ebb3bcfeb5
examples/shader: Refactoring
2020-06-24 02:47:51 +09:00
Hajime Hoshi
545342262f
examples/shader: Show an image
2020-06-24 01:41:27 +09:00
Hajime Hoshi
1f9cc53ce4
examples/keyboard/keyboard: Use RunGame
...
Updates #1111
2020-06-22 03:44:40 +09:00
Hajime Hoshi
841085863b
examples/shader: Embed the shader file
2020-06-22 01:07:00 +09:00
Hajime Hoshi
d0df5950b5
examples/shader: Add mouse cursor
2020-06-22 00:47:53 +09:00
Hajime Hoshi
40e581c19f
shader: Allow to mix an int and a float in a binary expression
...
Updates #1190
2020-06-21 03:34:55 +09:00
Hajime Hoshi
1785b6a670
examples/moire: Add a smaller scale, and remove AdjustTexel function from shaders
...
This can reproduce the bug reported at #669 .
Apparently, the fix (8827520d4a
) is
no longer required after 3550abef7a
.
That's pretty odd, but examples/moire proves this fact.
Updates #669
Updates #759
2020-06-15 00:29:34 +09:00
Hajime Hoshi
d98713728a
uidriver/glfw: Bug fix: SetVsyncEnabled(false) did not work before the main loop
...
Fixes #1197
2020-06-14 11:50:58 +09:00
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
Hajime Hoshi
1fdab58ff5
vector: Add FillOptions
2020-03-16 23:49:55 +09:00
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
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
Hajime Hoshi
d14202ef7b
audio: Add Context.IsReady
...
Fixes #717
2018-10-16 00:02:19 +09:00
Hajime Hoshi
b6f7a0043c
examples/windowsize: Show DeviceScaleFactor
2018-10-14 19:15:26 +09:00
Hajime Hoshi
443e3ae3a4
examples/windowsize: Bug fix: Strange delta of window size
2018-10-14 17:34:02 +09:00
Hajime Hoshi
13174cdb22
examples/flappy: Should use fullscreen on Wasm
2018-10-14 01:21:13 +09:00
Hajime Hoshi
56541a8c0a
examples/blocks: Fix message
2018-10-14 00:55:27 +09:00
Hajime Hoshi
d6e109555d
examples/blocks: Bug fix: multiple gamepad detection
2018-10-13 16:59:52 +09:00
Hajime Hoshi
8ed02efd28
examples/blocks: Improve gameover message
2018-10-13 16:59:52 +09:00
Hajime Hoshi
244e078810
examples/audioinfiniteloop: Fix message
2018-10-13 14:46:13 +09:00
Hajime Hoshi
0fb33e7c36
examples/highdpi: Bug fix: doesn't work well on multiple monitors
2018-10-13 03:59:31 +09:00
Hajime Hoshi
659f3ad8a0
examples/fullscreen: Fix offset
2018-10-12 01:11:14 +09:00
Hajime Hoshi
0509abfab6
examples: Use FilterDefault at NewImage
2018-10-12 00:40:48 +09:00
Hajime Hoshi
c758a1f8c6
ui: Rename MonitorSize -> ScreenSizeInFullscreen ( #708 )
2018-10-09 23:42:03 +09:00
Hajime Hoshi
8ac50a47f9
examples/blur: Fix comments
2018-10-01 02:37:53 +09:00
Hajime Hoshi
502919dea0
examples/blur: Add comments
2018-09-30 23:17:17 +09:00
Hajime Hoshi
66ca53529b
examples: Add blur example
2018-09-30 23:07:33 +09:00
Hajime Hoshi
0224858b7b
examples/wheel: Improve message
2018-09-30 17:13:22 +09:00
Hajime Hoshi
ecef9cab0f
examples: Add wheel example
2018-09-30 17:03:40 +09:00
Hajime Hoshi
2923bec0dc
examples: Use TPS instead of FPS to indicate how fast the app works
2018-09-30 02:27:33 +09:00
Hajime Hoshi
eb0f0e6ced
examples: Adjust samplerate not to cause resampling
...
Fixes #687
2018-09-28 03:55:28 +09:00
Hajime Hoshi
d243957ab1
examples/audioinfiniteloop: Refactoring: Remove magic numbers
2018-09-28 01:52:30 +09:00
Hajime Hoshi
56d8ce9935
examples/audioinfiniteloop: Use NewInfiniteLoopWithIntro
...
Fixes #656
2018-09-28 01:45:40 +09:00
Hajime Hoshi
e1347c58ca
examples/shapes: Use DrawTriangles for rectangles ( #680 )
2018-09-15 19:00:57 +09:00
Hajime Hoshi
76ca296cdd
examples/shapes: Bug fix: correct calculation
2018-09-15 18:15:16 +09:00
Hajime Hoshi
5587af9d7e
examples/shapes: Use DrawTriangles ( #680 )
2018-09-15 17:20:35 +09:00
Hajime Hoshi
3d1d5d4355
examples/audio: Use Ogg again
2018-09-03 00:49:06 +09:00
Hajime Hoshi
864eebbcd9
examples/resources: Add Ragtime_ogg
2018-09-02 23:08:02 +09:00
Hajime Hoshi
f2b4dfd061
examples/polygon: Better coloring
2018-08-14 02:14:19 +09:00
Hajime Hoshi
340a4b4dfa
examples: Rename triangles -> polygons
2018-08-14 01:56:08 +09:00
Hajime Hoshi
7807488cc7
examples/triangles: Fix terms
2018-08-14 01:55:22 +09:00
Hajime Hoshi
1b8cad4e1d
examples/triangles: Draw polygons
2018-08-14 01:49:45 +09:00
Hajime Hoshi
5032546238
examples: Rename triangle -> triangles
2018-08-14 01:30:42 +09:00
Hajime Hoshi
2360b2930f
graphics: Add DrawTriangles
...
Fixes #624
2018-08-14 01:23:14 +09:00
Hajime Hoshi
b02b2de626
examples/minify: Add rotation
2018-07-29 23:24:18 +09:00
Hajime Hoshi
a321155ab5
examples/minify: Improve minifying demonstration
2018-07-29 22:19:22 +09:00
Hajime Hoshi
c39c211d1f
Add examples/minify
2018-07-29 18:58:30 +09:00
Hajime Hoshi
b9265d5120
Enable to go-generate under non-GOPATH directories
2018-07-28 19:21:19 +09:00
Hajime Hoshi
0593b77eb8
ui: Implement CurrentTPS
2018-07-18 02:11:00 +09:00
Hajime Hoshi
e99f2f9f69
ui: Rename TPS -> MaxTPS
2018-07-17 22:41:27 +09:00
Hajime Hoshi
eadbabffd9
examples/windowsize: Use more consts
2018-07-17 22:36:55 +09:00
Hajime Hoshi
a7a1f6b4c6
ui: Rename SetTPS -> SetMaxTPS, Introduce UncappedTPS
2018-07-17 22:33:53 +09:00
Hajime Hoshi
328c5ff7e1
examples/windowsize: Fix message
2018-07-17 21:58:58 +09:00
Hajime Hoshi
16c6ab4d07
ui: Introduce DefaultTPS and deprecate FPS
2018-07-17 02:07:03 +09:00
Hajime Hoshi
3a8ca5ad73
ui: Implement TPS/SetTPS
...
Fixes #605
Fixes #321
2018-07-17 01:58:00 +09:00
Hajime Hoshi
e25c237a01
Add IsVsyncEnabled / SetVsyncEnabled
...
This enables the game to work more efficiently (but consume much
more CPU).
Fixes #405 .
2018-07-14 21:43:55 +09:00
Hajime Hoshi
3cd9dfd800
Rename IsRunningSlowly to IsDrawingSkipped
...
Fixes #643
2018-07-10 22:31:26 +09:00
Hajime Hoshi
4a6faf5505
Add examples/animation
...
Fixes #640
2018-07-09 22:50:34 +09:00
Hajime Hoshi
21fd6a2edc
examples/flappy: Remove println
2018-07-04 00:23:34 +09:00
Hajime Hoshi
6e51d31524
Use new GopherWasm API ( #634 )
...
I plan to merge this right after
https://github.com/gopherjs/gopherwasm/pull/3 is merged.
2018-06-30 00:02:15 +09:00
Hajime Hoshi
a9359e4ef8
Use GopherJS/GopherWasm
2018-06-24 16:10:24 +09:00
Hajime Hoshi
5680ce7f46
examples/sprites: Update only shown sprites
2018-06-17 22:05:34 +09:00
Hajime Hoshi
9f34b79297
examples/sprite: Refactoring
2018-06-17 18:44:32 +09:00
Hajime Hoshi
a54b6060bd
examples/windowsize: Add 0.75 scale
2018-06-03 02:32:42 +09:00
Hajime Hoshi
5f3a42aab9
examples/flappy: Add license comment
2018-05-28 02:38:55 +09:00
Hajime Hoshi
cc748f15e4
examples/contextlost: Use gopherwasm
2018-05-25 02:08:32 +09:00
Hajime Hoshi
569639d485
examples/contextlost: Bug fix: don't crash on Edge
...
Fixes #613
2018-05-14 00:35:40 +09:00
Hajime Hoshi
a92cc0f4b3
examples/drag: Bug fix: nil error
...
Fixes #612
2018-05-14 00:06:03 +09:00
Hajime Hoshi
b69d564d89
examples/life: Refactoring
2018-05-13 00:38:33 +09:00
Hajime Hoshi
f7c19ef517
examples/drag: Put the moving sprites frontend
2018-05-12 23:22:50 +09:00
Hajime Hoshi
07009501f9
examples: Move resource files
2018-05-12 17:09:42 +09:00
Hajime Hoshi
252f4430d8
examples/drag: Add touches ( #506 )
2018-05-11 02:02:33 +09:00
Hajime Hoshi
fbeed96bb5
input: Add TouchIDs and TouchPosition ( #497 )
...
This change deprecates Touch interface and Touches function.
2018-05-07 00:31:46 +09:00
Hajime Hoshi
d8dba69b47
ui: Add MonitorSize
...
Fixes #470
2018-05-05 02:42:45 +09:00
Hajime Hoshi
4d3d407205
graphics: Add comments to At
2018-05-01 18:07:52 +09:00
Hajime Hoshi
b60d549924
Add examples/drag ( #506 )
2018-05-01 01:12:40 +09:00
Hajime Hoshi
db3effe65a
inpututil: Rename JustPressedTouches -> JustPressedTouchIDs
2018-04-30 20:07:27 +09:00
Hajime Hoshi
342551da8d
examples: Add iOS explanation
2018-04-30 19:49:02 +09:00
Hajime Hoshi
1d70ee7988
examples: gomobilebuild build tag is no longer needed
2018-04-30 19:43:29 +09:00
Hajime Hoshi
a355d701ad
inpututil: Replace JustDisconnectedGamepadIDs with IsGamepadJustDisconnected ( #505 )
2018-04-30 04:35:10 +09:00
Hajime Hoshi
52dea245dc
examples/blocks: Use IsGamepadButtonJustPressed
2018-04-30 03:43:50 +09:00
Hajime Hoshi
b1c55f395f
examples/gamepad: Refactoring
2018-04-30 03:07:02 +09:00
Hajime Hoshi
9d57350a42
inpututil: Add JustConnectedGamepadIDs / JustDisconnectedGamepadIDs
...
Fixes #505
2018-04-30 02:51:38 +09:00
Hajime Hoshi
b22cc9d4be
Add periods after 'DO NOT EDIT'
2018-04-28 03:37:19 +09:00
Hajime Hoshi
3fa2beb502
Fix the do-not-edit comment https://golang.org/s/generatedcode
2018-04-20 00:54:33 -07:00
Hajime Hoshi
07545c3706
examples/typewriter: consider repeating state
2018-04-14 05:39:42 +09:00
Hajime Hoshi
54bec7a3eb
examples/typewriter: Refactoring: Use inpututil
2018-04-14 05:32:41 +09:00
Hajime Hoshi
fac7651152
examples/keyboard: Show other keys than 'keyboard' keys
2018-04-14 04:59:06 +09:00
Hajime Hoshi
bf304e6ac8
examples/keyboard: Refactoring: Use ebiten.Key to get the rect
2018-04-14 04:48:07 +09:00
Hajime Hoshi
9fb25693a3
examples/keyboard: Remove the last period from do-not-edit comment
2018-04-14 04:23:34 +09:00
Hajime Hoshi
dbe990a060
Use the latest file2byteslice
2018-04-14 04:19:11 +09:00
Hajime Hoshi
f1fa8804d3
inpututil: Add JustPressedTouches and remove IsJustTouched
...
Fixes #576
2018-04-08 04:59:13 +09:00
Hajime Hoshi
ce2168c0d6
examples/flappy: Bug fix: wrong calculation of rotating
2018-04-08 00:38:52 +09:00
Hajime Hoshi
f2e2f602c5
examples/flappy: Bug fix: first touch ID might not be 0 on iPhone Safari ( #576 )
2018-04-07 23:36:38 +09:00
Hajime Hoshi
35557e845d
examples/flappy: Improve message
2018-04-07 23:26:28 +09:00
Hajime Hoshi
b952cb724f
examples/flappy: Fullscreen on browsers
2018-04-07 22:23:50 +09:00
Hajime Hoshi
2a6672cc8b
examples: Add examples/flappy
2018-04-07 22:15:45 +09:00
Hajime Hoshi
948c1e13fb
examples/chipmunk: Fix styles
2018-04-03 21:47:46 +09:00
Hajime Hoshi
da66866b3a
examples/chipmunk: Fix styles: Create 'dot' image only once
2018-04-03 21:45:27 +09:00
Hajime Hoshi
2f4a51b373
examples: Rename physics -> chipmunk
2018-04-03 11:50:07 +09:00
Jake Coffman
9f02f277ea
examples: Add physics example ( #572 )
2018-04-03 11:47:31 +09:00
Hajime Hoshi
12605be1b0
examples: Clean up README
2018-03-26 01:56:42 +09:00
Hajime Hoshi
5f2cdd7d62
examples: Update README
2018-03-26 01:55:15 +09:00
Hajime Hoshi
a3bf8ebf83
ebitenutil: Add NewImageFromURL
2018-03-22 01:19:57 +09:00
Hajime Hoshi
18113f259a
audio: NewPlayer now accepts io.ReadCloser
...
Fixes #414
2018-03-22 00:33:17 +09:00
Hajime Hoshi
c6cd672536
examples/contextlost: Extend the shared backend texture on purpose
2018-03-19 03:16:52 +09:00
Siim Põder
020ce7b4eb
fix typo ( #557 )
2018-03-17 22:36:53 +09:00
Hajime Hoshi
526fbd3619
ui: Implement SetWindowDecorated and IsWindowDecorated
...
Fixes #430 .
2018-03-17 18:30:55 +09:00
Hajime Hoshi
d8ba49eaab
examples/blocks: Fix initializing fonts not to depend on init() order
...
https://golang.org/ref/spec#Package_initialization
It is expected that init() is executed in file name order,
but this is not 100%.
2018-03-17 01:56:32 +09:00
Hajime Hoshi
530041b4f2
examples: Remove HTMLs
2018-03-17 01:42:48 +09:00
Hajime Hoshi
93b2fab95b
examples: Add comment to explain about files
2018-03-16 12:05:53 +09:00
Hajime Hoshi
e085f511ec
examples: Remove _server
...
Use gopherjs serve --tags=example instead
2018-03-15 01:44:04 +09:00
Hajime Hoshi
eecb04eaea
examples: Add jsgo build tag experimentally
2018-03-15 01:26:21 +09:00
Hajime Hoshi
5fc190013a
examples/airship: Improve z values
2018-03-15 01:17:07 +09:00
Hajime Hoshi
2555e3f226
examples: Use embedded resources ( #552 )
2018-03-15 01:16:41 +09:00
Hajime Hoshi
908ff43d2e
examples/platformer: Use embedded resources ( #552 )
2018-03-15 00:21:16 +09:00
Hajime Hoshi
d5d577c733
examples/blocks: Use embedded resources ( #552 )
2018-03-14 12:19:05 +09:00
Hajime Hoshi
08beed4306
examples/keyboard: Use image.Decode instead of png.Decode
2018-03-14 12:11:11 +09:00
Hajime Hoshi
0ad12e65df
examples: Remove build tags from sub-packages
2018-03-14 04:13:54 +09:00
Hajime Hoshi
420c4306d0
examples/keyboard: Embed keyboard.png ( #552 )
2018-03-14 04:04:29 +09:00
Hajime Hoshi
b08f259674
examples/resources: Add more resources ( #552 )
2018-03-14 03:50:56 +09:00
Hajime Hoshi
cff14cbbd4
example: Embed resources ( #552 )
2018-03-14 03:13:46 +09:00
Hajime Hoshi
7061024ece
examples/keyboard: Use os.Open instead of ebitenutil.OpenFile
2018-03-14 03:13:46 +09:00
Hajime Hoshi
c289b13a91
examples/2048: Bug fix: Tests didn't work
2018-03-14 03:13:46 +09:00
Hajime Hoshi
adf35a4b49
examples: Remove game.ogg
2018-03-14 01:27:01 +09:00
Hajime Hoshi
ccdc049ebb
examples/keyboard/keyboard: Remove unused build tags
2018-03-14 00:53:08 +09:00
Hajime Hoshi
762fcfc2db
examples/airship: Bug fix: stop if z value equals to or is less than 0
2018-03-12 03:23:04 +09:00
Hajime Hoshi
a36ea971b4
examples/airship: Improve z values
2018-03-12 03:18:07 +09:00
Hajime Hoshi
1ff3a0268e
examples/airship: Add comments
2018-03-12 01:45:15 +09:00
Hajime Hoshi
56c4dbf28b
examples/airship: Divide z to calculate scale
...
Fixes #534
2018-03-12 01:02:55 +09:00
Hajime Hoshi
ef5de62780
Follow the standard comment rule
...
See https://golang.org/s/generatedcode
2018-03-08 02:47:59 +09:00
Hajime Hoshi
d1ac0e1857
examples/contextlost: Fix the title
2018-03-02 01:30:55 +09:00
Hajime Hoshi
d05ece2013
Add examples/contextlost
2018-03-02 01:30:18 +09:00
Hajime Hoshi
e6143d0a2b
examples: Add spriteshd
2018-02-23 02:51:43 +09:00
Hajime Hoshi
ed80286431
Use an -http address arguments for servers
...
Fixes #510
2018-02-23 01:44:14 +09:00
Hajime Hoshi
a7fafc74e7
examples/gamepad: Add usage of inpututil
2018-02-17 03:52:16 +09:00
Hajime Hoshi
cf333775f2
Add examples/filter
2018-02-14 03:07:17 +09:00
Hajime Hoshi
5ed5cceb43
examples: Use FilterDefault ( #453 )
2018-02-14 03:00:00 +09:00
Hajime Hoshi
d70e703d5e
examples/blocks: Bug fix: alpha should not be translated
2018-02-12 18:45:12 +09:00
Hajime Hoshi
eaaa714705
examples/block: Remove deprecated API ColorM.Add
2018-02-12 18:42:56 +09:00
Hajime Hoshi
3da09c493a
affine: Remove ebiten.Monochrome usages
2018-02-12 18:20:09 +09:00
Hajime Hoshi
ba53475636
examples: Bug fix: import image/png explicitly ( #500 )
2018-02-11 03:31:30 +09:00
Hajime Hoshi
8f8b37066b
examples/tiles: Import image/png explicitly
2018-02-09 00:55:56 +09:00
Hajime Hoshi
6404d28fe5
Add examples/tiles
2018-02-06 03:52:22 +09:00
Hajime Hoshi
1f1de9763f
examples/ui: Use inpututil ( #415 )
2018-02-04 23:51:15 +09:00
Hajime Hoshi
67ebf848e7
examples/piano: Use inpututil ( #415 )
2018-02-04 23:48:19 +09:00
Hajime Hoshi
2772f8d990
examples/blocks: Remove anyGamepadButtonPressed variable
2018-02-04 23:43:59 +09:00
Hajime Hoshi
ae07488190
examples/blocks: Remove keyStates and use inpututil instead ( #415 )
2018-02-04 23:35:09 +09:00
Hajime Hoshi
7dc36747a6
examples/2048: Use inpututil ( #415 )
2018-02-04 23:28:56 +09:00
Hajime Hoshi
d4d05d12ea
examples/2048: Remove unused consts
2018-02-04 23:27:57 +09:00
Hajime Hoshi
658c7cf452
examples: Use inpututil ( #415 )
2018-02-04 23:27:54 +09:00
Hajime Hoshi
e86972b849
examples/windowsize: Use inpututil ( #415 )
2018-02-04 23:18:40 +09:00
Hajime Hoshi
6abaf41440
examples/airship: Refactoring
2018-01-31 02:20:35 +09:00
Hajime Hoshi
d139b8ad6e
examples/ui: Refactoring
2018-01-31 00:49:49 +09:00
Hajime Hoshi
a2225abcf9
examples/ui: Use event-handler way
2018-01-31 00:45:42 +09:00
Hajime Hoshi
8a26841a88
examples: Add comments
2018-01-31 00:25:01 +09:00
Hajime Hoshi
94f5f35423
examples/sprites: Refactoring
2018-01-30 04:19:16 +09:00
Hajime Hoshi
d754733845
examples/sinewave: Refactoring
2018-01-30 04:12:58 +09:00
Hajime Hoshi
6ba0e6d373
examples/rotate: Refactoring
2018-01-30 04:05:01 +09:00
Hajime Hoshi
52a753a12f
examples/platformer: Refactoring
2018-01-30 03:57:07 +09:00
Hajime Hoshi
13974808a6
examples/noise: Refactoring
2018-01-30 03:50:07 +09:00
Hajime Hoshi
6e5830739f
examples/piano: Refactoring
2018-01-30 03:48:45 +09:00
Hajime Hoshi
531e661f0b
examples/perspective: Refactoring
2018-01-30 01:54:00 +09:00
Hajime Hoshi
c4faf5b12c
examples/pcm: Refactoring
2018-01-30 01:13:39 +09:00
Hajime Hoshi
35b7375e69
examples/paint: Bug fix: paint function ignored the given image
2018-01-30 00:21:05 +09:00
Hajime Hoshi
80e4ee0998
ebitenutil: Remove JoinStringsIntoPath; Always use slash for ebitenutil.OpenFile
...
#428
2018-01-29 23:38:11 +09:00
Hajime Hoshi
f773a33f2e
examples: Refactoring
2018-01-29 23:18:10 +09:00
Hajime Hoshi
19f7f44f1c
examples/highdpi: Async loading
2018-01-29 23:04:11 +09:00
Hajime Hoshi
38013bbc22
examples/moire: Add comments
2018-01-29 03:09:30 +09:00
Hajime Hoshi
d6769659eb
examples/masking: Use source-in instead of source-out for code readability
2018-01-29 02:57:39 +09:00
Hajime Hoshi
023315c256
examples/masking: Rename variables
2018-01-29 02:47:38 +09:00
Hajime Hoshi
9730af7976
examples/masking: Add comments
2018-01-29 02:05:26 +09:00