Commit Graph

344 Commits

Author SHA1 Message Date
Hajime Hoshi
1361383ef4 Use 'localhost' explicitly to avoid warnings on Windows 2017-08-18 02:30:46 +09:00
Hajime Hoshi
4fc4b74cca examples/inputchars: Rename from runes 2017-08-16 00:18:54 +09:00
Hajime Hoshi
193e473381 examples/runes: Trim the text if it has too many lines 2017-08-16 00:17:07 +09:00
Hajime Hoshi
3f52fb951b examples/runes: Refactoring 2017-08-16 00:10:21 +09:00
Hajime Hoshi
78ed445111 examples/runes: Refactoring 2017-08-15 12:14:01 +09:00
Jake
0d703ca3d4 InputChars (#403)
This implements #400
2017-08-15 04:11:51 +09:00
Hajime Hoshi
f08d21866a examples/blocks: Use ebitenutil.DrawRect 2017-08-14 00:33:00 +09:00
Hajime Hoshi
0fc28f6e98 examples/piano: Use ebitenutil.DrawRect 2017-08-14 00:28:10 +09:00
Hajime Hoshi
abd8cb7759 ebitenutil: Add DrawLine and DrawRect
Add new APIs DrawLine and DrawRect mainly for debugging or prototyping purpose. Also add examples/shapes.
2017-08-14 00:16:32 +09:00
Hajime Hoshi
b186bc1e94 ui: Add IsCursorVisible (#377) 2017-08-12 15:45:16 +09:00
Hajime Hoshi
5adfababee examples/audio: Fix comments 2017-08-08 02:09:45 +09:00
Hajime Hoshi
6b8ab59d1f examples/audio: Add comments 2017-08-08 02:06:24 +09:00
Hajime Hoshi
6377ee5006 Add examples/wav 2017-08-08 02:04:37 +09:00
Hajime Hoshi
f0d47312c4 ui: Add IsRunnableInBackground / SetRunnableInBackground (#272) 2017-08-03 03:21:51 +09:00
Hajime Hoshi
3bfb5054af Fix misspelling 2017-07-23 22:50:18 +09:00
Hajime Hoshi
ce126fbcdd examples/ui: Use image.Rectangle as struct members 2017-07-23 03:21:02 +09:00
Hajime Hoshi
ce7dc79697 examples/ui: Adjust text box size 2017-07-23 03:10:45 +09:00
Hajime Hoshi
7607ad1660 Add examples/ui (#367) 2017-07-23 02:38:52 +09:00
Hajime Hoshi
2f6953ff7f examples/font: Refactoring 2017-07-20 02:22:58 +09:00
Hajime Hoshi
b58d8bb996 text: Swap arguments face and text 2017-07-20 02:20:15 +09:00
Hajime Hoshi
20a43a88e8 text: Remove 'lineHeight' argument 2017-07-17 06:42:48 +09:00
Hajime Hoshi
a2adda1ab6 examples/font: Change the import order 2017-07-17 04:58:45 +09:00
Hajime Hoshi
4b4292a856 examples/font: Show more Kanji characters 2017-07-17 01:54:30 +09:00
Hajime Hoshi
1e84e21857 Add 'text' package (#363) 2017-07-17 01:54:24 +09:00
Hajime Hoshi
3cac19d1b8 examples/audio: Remove 'loading' message 2017-07-15 00:55:39 +09:00
Hajime Hoshi
8912563555 examples/audio: Bug fix: Wrong file name 2017-07-09 15:30:21 +09:00
Hajime Hoshi
5cf7b2491a audio: Bug fix: noise on audio 2017-07-09 04:09:21 +09:00
Hajime Hoshi
e596271002 examples/audio: Change the music 2017-07-01 17:04:37 +09:00
Hajime Hoshi
b569eb9c5a ui: Add SetFullscreen / IsFullscreen (#267) 2017-06-30 01:28:00 +09:00
Hajime Hoshi
ba86d37ce8 examples/2048: Add mouse/touch feature (#370) 2017-06-29 01:39:48 +09:00
Hajime Hoshi
9130c490c2 audio: Remove convert.Seeker: mp3.Decoded is now io.Seeker 2017-06-25 23:33:23 +09:00
Hajime Hoshi
1f28c687cf audio: Bug fix: Seeking might block forever when another seeking is not done yet 2017-06-24 23:33:19 +09:00
Hajime Hoshi
09ce575774 audio/mp3: Add sample rate conversion 2017-06-18 22:51:11 +09:00
Hajime Hoshi
bf3f6c9ff6 audio/mp3: Start implementing 2017-06-12 23:32:42 +09:00
Hajime Hoshi
f69639836b examples: List applications when accessing the top page 2017-06-08 00:22:57 +09:00
Hajime Hoshi
d95e2a4437 examples/infinitescroll: Fix the title 2017-06-07 01:59:48 +09:00
Hajime Hoshi
18d23b5931 examples/blocks: gamepad configuration didn't work well with PS4 controllers 2017-06-07 01:38:04 +09:00
Hajime Hoshi
2ec4e31d60 examples/airship: better approximate scaling 2017-06-07 00:41:23 +09:00
Hajime Hoshi
fadbf01826 examples/airship: Refactoring 2017-06-04 19:41:53 +09:00
Hajime Hoshi
5cc7c68698 examples/airship: Refactoring 2017-06-04 19:01:07 +09:00
Hajime Hoshi
3390393014 examples/2048: Improve comments 2017-06-04 18:42:35 +09:00
Hajime Hoshi
242565d629 examples/2048: Bug fix: unneeded imports 2017-06-04 18:03:12 +09:00
Hajime Hoshi
8285950100 examples/2048: Add comments 2017-06-04 18:00:47 +09:00
Hajime Hoshi
4b449bbc75 examples/audio: Change the music 2017-06-04 17:17:32 +09:00
Hajime Hoshi
7f39dc1e8b examples/audio: Improve the seeking message 2017-06-04 17:12:35 +09:00
Hajime Hoshi
ffc6be0c10 examples/2048: Add comments 2017-06-04 16:04:51 +09:00
Hajime Hoshi
e7478b794a audio: Change the spec: Now audio.Player's functions are always concurrent safe 2017-06-04 02:52:11 +09:00
Hajime Hoshi
665e7d5eea examples/life: Refactoring 2017-06-04 01:54:05 +09:00
Hajime Hoshi
035e4d321a examples/audio: Refactoring: Unify channel usages (#302) 2017-06-04 01:34:36 +09:00
Hajime Hoshi
579491afbd audio: Clarify concurrent safety 2017-06-04 01:03:01 +09:00
Hajime Hoshi
250afe97a5 examples/audio: Refactoring: Add Input struct (#302) 2017-06-04 00:01:48 +09:00
Hajime Hoshi
d340a50188 examples/audio: Refactoring: Reduce global variables (#302) 2017-06-03 23:37:00 +09:00
Hajime Hoshi
5ad5b2a8b8 examples/audio: Refactoring (#302) 2017-06-03 23:23:02 +09:00
Hajime Hoshi
91b5d985fe examples: Bug fix: updating audio context should sync with updating logic 2017-06-03 01:46:03 +09:00
Hajime Hoshi
7bb917d4f6 examples/audio: Remove unneeded error handlings 2017-06-03 01:40:22 +09:00
Hajime Hoshi
fb85bcf104 examples: Remove unneeded error handlings 2017-06-03 01:34:17 +09:00
Hajime Hoshi
98c48463d2 audio: NewPlayerFromBytes now never returns errors 2017-06-03 01:12:58 +09:00
Hajime Hoshi
9a4a7fe5ba examples: Remove unneeded error checks 2017-06-03 00:51:15 +09:00
Hajime Hoshi
62b364de2d examples/paint: Refactoring 2017-05-31 00:58:17 +09:00
Hajime Hoshi
5dffe80a1a doc: Update examples/sprites 2017-05-29 22:56:56 +09:00
Hajime Hoshi
8e1d3a151e examples/blocks: Bug fix: applying ColorM (#356) 2017-05-29 22:46:40 +09:00
Hajime Hoshi
3a58bd7f26 examples/sprites: Rotate images (#277) 2017-05-28 04:09:04 +09:00
Hajime Hoshi
7773aff3f7 examples/font: Reimplement DrawTextOnImage for examples/keybaord/keybaord 2017-05-28 03:01:49 +09:00
Hajime Hoshi
522ec0c1bf examples: Temporary compile error fix 2017-05-28 02:43:21 +09:00
Hajime Hoshi
0d1d6cfd85 examples/common: Use SourceRect (#277) 2017-05-28 02:40:23 +09:00
Hajime Hoshi
f88d5ab1ef example: Use SourceRect (#277) 2017-05-28 02:24:23 +09:00
Hajime Hoshi
e84b717c95 examples/sprites: Apply ColorM change only once 2017-05-28 01:02:54 +09:00
Hajime Hoshi
dad427920d affine: Add Reset function 2017-05-28 00:49:44 +09:00
Hajime Hoshi
de7215f3fc graphics: Add DrawImageOptions.SourceRect 2017-05-28 00:49:44 +09:00
Hajime Hoshi
a657cac229 examples: Call IsRunningSlowly (#354) 2017-05-16 10:35:58 +09:00
Hajime Hoshi
e06334c95f examples/keyboard: Add backslash key (#339) 2017-04-14 03:31:13 +09:00
Hajime Hoshi
a6e4cc51a3 examples/keyboard: Add more keys 2017-04-14 03:09:25 +09:00
Hajime Hoshi
b1c0c618b6 examples/pcm: Improve debug messages 2017-03-28 00:56:14 +09:00
Hajime Hoshi
ef8da64680 examples: Remove unnecessary checks of returning values 2017-03-04 23:24:54 +09:00
Hajime Hoshi
6ccd27ee67 graphics: Add TestImageEdge and remove examples/edge instead 2017-02-11 03:32:51 +09:00
Hajime Hoshi
d216a04cb6 examples/edge: Update to use ImageParts 2017-02-06 07:58:14 +09:00
Hajime Hoshi
6929c70c06 examples/edge: Update 2017-02-05 16:05:32 +09:00
Hajime Hoshi
6d2692b0db Add examples/edge to check #315 2017-02-05 05:19:14 +09:00
Hajime Hoshi
71cecea9c9 audio: Auto resampling (#301) 2017-01-15 17:49:57 +09:00
Hajime Hoshi
86966eb22f examples: Fix README to use tag 2016-12-16 17:02:16 +09:00
Hajime Hoshi
fec530ebbc examples/audio: Async seeking 2016-11-29 03:38:08 +09:00
Hajime Hoshi
b3bd0d8596 examples/audio: Change the Ogg file (#270) 2016-11-26 03:48:54 +09:00
Hajime Hoshi
34e85b0041 examples/_server: Don't return map files to make it easier to debug JS 2016-11-02 00:15:12 +09:00
Hajime Hoshi
d93d433514 examples: Add warning for GopherJS building bug 2016-10-31 12:22:18 +09:00
Hajime Hoshi
26e290b2bc examples/spritse: Speed optimization 2016-10-28 00:39:55 +09:00
Hajime Hoshi
bf76e94ad2 examples/sprites: Don't copy receivers 2016-10-27 02:43:43 +09:00
Hajime Hoshi
d66586c890 examples/keyboard: Fix gen.go to use LicenseComment 2016-10-21 00:19:10 +09:00
Hajime Hoshi
7b48ea201c examples/keyboard: Avoid build tags in templates 2016-10-16 03:40:03 +09:00
Hajime Hoshi
908d8aa9f2 examples/keyboard: Add example tags 2016-10-16 01:02:01 +09:00
Hajime Hoshi
237e84d0ea Bug fix: Add example tags 2016-10-16 00:13:31 +09:00
Hajime Hoshi
23b2d086ee example: Add example tags 2016-10-16 00:09:03 +09:00
Hajime Hoshi
417112c586 doc: No need to specify 'example' tag when 'go run' 2016-09-03 18:06:28 +09:00
Hajime Hoshi
7276e47e07 examples: go generate 2016-09-03 16:26:56 +09:00
Hajime Hoshi
730b0d5ff9 input: Add KeyMax 2016-09-03 15:28:37 +09:00
Hajime Hoshi
d62a90dfca input: Add GamepadButtonMax 2016-09-03 15:18:55 +09:00
Hajime Hoshi
12c224c14a examples/blocks: Refactoring 2016-09-03 14:40:40 +09:00
Hajime Hoshi
581fbc4406 examples/blocks: Rename enums and functions 2016-09-03 14:33:45 +09:00
Hajime Hoshi
15a523c42b Remove exp/gamepad 2016-09-03 14:03:41 +09:00
Hajime Hoshi
bb6da8f85c Fix files for 'example' tag 2016-08-26 01:25:28 +09:00
Hajime Hoshi
7410a9d814 Add example tags again
This reverts commit 7a1d63fb02.
2016-08-26 00:40:39 +09:00
Hajime Hoshi
7a1d63fb02 Revert example tags 2016-08-17 23:33:31 +09:00
Hajime Hoshi
12732d3302 examples: Add example tag 2016-08-17 22:52:51 +09:00
Hajime Hoshi
348e11ac1b examples/font: Simplify 2016-08-16 02:42:06 +09:00
Hajime Hoshi
6bab6e1f1d examples/infinitescroll: Remove empty lines 2016-08-13 23:42:45 +09:00
Hajime Hoshi
c685cfb428 examples/infinitescroll: Move the image and add license 2016-08-13 23:38:51 +09:00
Martin Lindhe
41cc17c4da add example/infinitescroll (#255)
This resolved #254
2016-08-13 23:34:25 +09:00
Hajime Hoshi
8f1b7a2d0c examples: Add error checks 2016-08-03 10:57:50 +09:00
Hajime Hoshi
30b521f3b8 Add error checks 2016-08-03 01:02:05 +09:00
Hajime Hoshi
5801bc53df Fix misspellings 2016-08-02 01:49:05 +09:00
Hajime Hoshi
4e329f619f example/2048: Bug fix: Should update the tile when the tile stops 2016-08-01 03:25:03 +09:00
Hajime Hoshi
2c4b9c1dbe examples/2048: Make it smoother 2016-08-01 02:42:20 +09:00
Hajime Hoshi
ced66ff319 examples/2048: Refactoring 2016-08-01 01:23:40 +09:00
Hajime Hoshi
1da3f32715 examples: Embed arcadefont.png 2016-07-31 22:00:45 +09:00
Hajime Hoshi
e5ece83e78 example/2048: Pop tiles when appearing 2016-07-31 20:56:46 +09:00
Hajime Hoshi
1df77c196c examples/4096: Define colors for huge number tiles 2016-07-31 17:55:18 +09:00
Hajime Hoshi
941c24e9fd examples/2048: Pop animation 2016-07-31 17:43:46 +09:00
Hajime Hoshi
c44f2819af examples/2048: Refactoring 2016-07-31 14:57:42 +09:00
Hajime Hoshi
b59649336a examples/2048: Refactoring: Don't animate when all tiles are not to move 2016-07-31 04:25:57 +09:00
Hajime Hoshi
3153720e9a examples/2048: Bug fix: animate tiles correctly 2016-07-31 03:42:59 +09:00
Hajime Hoshi
bdf2919ed0 examples/2048: Animate tiles 2016-07-31 02:49:28 +09:00
Hajime Hoshi
0ec07420f4 examples/2048: Introduce TileData 2016-07-31 01:03:14 +09:00
Hajime Hoshi
3ce0572a81 examples/2048: Add Tile.Draw 2016-07-30 18:15:38 +09:00
Hajime Hoshi
ba8138f69b examples/2048: Refactoring 2016-07-30 17:31:26 +09:00
Hajime Hoshi
ef61e7a568 examples/2048: Bug fix: Should not add a new tile when no tiles are moved 2016-07-29 03:41:55 +09:00
Hajime Hoshi
399d29b1a0 examples/2048: Draw texts 2016-07-29 01:52:21 +09:00
Hajime Hoshi
90b6e3871a examples/2048: Draw colored tiles 2016-07-29 01:26:44 +09:00
Hajime Hoshi
d9ee460b20 examples/2048: Add tests 2016-07-29 00:00:12 +09:00
Hajime Hoshi
0a04ed1c22 examples/2048: Refactoring 2016-07-28 22:34:20 +09:00
Hajime Hoshi
30a16cbcbe examples/2048: Implement the rule 2016-07-28 12:36:31 +09:00
Hajime Hoshi
8daa246da4 Add examples/2048 (#181) 2016-07-28 04:30:10 +09:00
Hajime Hoshi
5e1ed99e2e Use files in examples (#243) 2016-07-28 01:10:40 +09:00
Hajime Hoshi
aa96822ce5 examples/airship: Introduce repeatedGophersImage 2016-07-18 17:44:25 +09:00
Hajime Hoshi
dc159cb37c examples/airship: Remove println 2016-07-18 05:27:56 +09:00
Hajime Hoshi
008b15f61d examples/airship: Add fog 2016-07-18 05:19:22 +09:00
Hajime Hoshi
a3396bd415 examples/airship: Better scaling 2016-07-18 02:53:58 +09:00
Hajime Hoshi
39fd17cdac examples/airship: Adjust parameters 2016-07-17 15:20:57 +09:00
Hajime Hoshi
0933292d30 examples/airship: Better perspective 2016-07-17 07:10:52 +09:00
Hajime Hoshi
6541654746 examples/airship: Remove unexpected blue spots 2016-07-17 06:56:10 +09:00
Hajime Hoshi
847f72f9be Add examples/airship (#246) 2016-07-17 05:36:06 +09:00
Hajime Hoshi
c8ef54ac1d Trivial fixes 2016-07-17 04:41:28 +09:00
Hajime Hoshi
d7c2682c53 examples/sprites: Slower increasing num of sprites 2016-07-16 19:34:36 +09:00
Hajime Hoshi
66f262c80e graphics: Enable to draw unlimited number of sprites (#245) 2016-07-16 19:17:57 +09:00
Hajime Hoshi
87e0948449 examples/sinewave: Add a message 2016-07-10 23:51:16 +09:00
Hajime Hoshi
69497aff41 Remove examples/mobile, which is no longer maintained 2016-07-10 02:59:49 +09:00
Hajime Hoshi
1ec95c896a Add examples/life (#182) 2016-07-08 00:26:38 +09:00
Hajime Hoshi
1fa76b89a3 Make go vet happy 2016-06-28 02:52:06 +09:00
Hajime Hoshi
0ed95031c5 example/audio: More punches 2016-06-27 03:11:10 +09:00
Hajime Hoshi
b02d89cdc3 audio: Add NewPlayerFromBytes (#231) 2016-06-27 02:23:08 +09:00
Hajime Hoshi
bf807799bf examples/windowscale: Use float scale factor 2016-06-25 02:17:08 +09:00
Hajime Hoshi
19d18020ce examples/paint: Fix a float scale to an integer 2016-06-25 01:43:49 +09:00