Commit Graph

500 Commits

Author SHA1 Message Date
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