Commit Graph

346 Commits

Author SHA1 Message Date
Hajime Hoshi
73bb576b0e Remove unneeded file 2015-01-18 21:55:17 +09:00
Hajime Hoshi
ff020e8b1c example/keyboard: Add a keyboard image 2015-01-18 21:33:59 +09:00
Hajime Hoshi
a5e335819d Add example/internal and move font rendering into it 2015-01-18 14:31:21 +09:00
Hajime Hoshi
0bd0a4dbc2 Rename image.FillRect -> DrawFilledRect (FillRect is confusing with Fill) 2015-01-18 04:19:38 +09:00
Hajime Hoshi
db22bf6242 Add exp/shape package 2015-01-18 01:26:57 +09:00
Hajime Hoshi
c892f84816 example/blocks: Use FillRect (imageEmpty is no longer needed) 2015-01-18 00:05:15 +09:00
Hajime Hoshi
f0d40b4e1f Revert rectangles' vetices (float64 -> int) 2015-01-17 23:31:09 +09:00
Hajime Hoshi
1659e9abab Bug fix: Line's vertices should be moved by 0.5 2015-01-17 23:04:19 +09:00
Hajime Hoshi
7835f5cb2e Add image.DrawRect / DrawRects (leaving some bugs) 2015-01-17 15:46:56 +09:00
Hajime Hoshi
8c15b57d58 Add image.DrawLine / DrawLines 2015-01-17 14:17:42 +09:00
Hajime Hoshi
887e2fc675 Add image.DrawRect; Change Rects.Points -> Rects.Rect 2015-01-17 03:46:00 +09:00
Hajime Hoshi
f186d1b286 example/sprites: Speed up by caching the image size 2015-01-17 01:48:28 +09:00
Hajime Hoshi
edce4027bd Rename example/server -> example/_server (#93) 2015-01-17 01:32:28 +09:00
Hajime Hoshi
952f6be822 example/sprites: Speed optimization 2015-01-17 00:33:52 +09:00
Hajime Hoshi
155be5a88d Add Rect.Color 2015-01-16 01:57:10 +09:00
Hajime Hoshi
cb26342b3d Bug fix (#85): The limit of the size of vertices was wrong 2015-01-14 23:29:14 +09:00
Hajime Hoshi
665ef46064 Add example/sprites (#83) 2015-01-13 23:03:37 +09:00
Hajime Hoshi
0328b049d0 Add image.DrawRects (experimental) 2015-01-13 10:36:19 +09:00
Hajime Hoshi
243208b849 Rename programColorMatrix -> programFragmentShader 2015-01-12 18:34:02 +09:00
Hajime Hoshi
8987f7a645 Implement Gamepad API for JavaScript (working on Firefox so far) 2015-01-12 14:36:13 +09:00
Hajime Hoshi
a500d3a3f8 Improve example/gamepad 2015-01-12 13:33:21 +09:00
Hajime Hoshi
a6b7eab71b Add Gamepad API 2015-01-12 02:29:56 +09:00
Hajime Hoshi
a220251716 Play music at example/audio 2015-01-11 19:52:11 +09:00
Hajime Hoshi
355da1bcbc Add Experimental Audio API 2015-01-11 18:03:51 +09:00
Hajime Hoshi
fb19f05b83 Improve example/paint 2015-01-09 02:33:26 +09:00
Hajime Hoshi
636ae84ad5 Resolve TODOs 2015-01-09 02:02:56 +09:00
Hajime Hoshi
eb325c9684 Update docs 2015-01-08 23:45:30 +09:00
Hajime Hoshi
5f0bc87402 Implement rotating left (blocks) 2015-01-08 00:50:02 +09:00
Hajime Hoshi
4eaa16b8d1 Rename mod key names 2015-01-07 23:18:40 +09:00
Hajime Hoshi
90ab31a872 Add function keys to example/keyboard 2015-01-07 23:08:06 +09:00
Hajime Hoshi
ba5f613f44 Bug fix: Add 'backspace' to example/keyboard 2015-01-07 11:28:49 +09:00
Hajime Hoshi
2a3d41ba9a Improve keyboard example 2015-01-07 11:23:03 +09:00
Hajime Hoshi
ad3f37ae75 Add example keyboard 2015-01-07 04:27:57 +09:00
Hajime Hoshi
bc26690b14 Add genkey.go 2015-01-07 03:05:59 +09:00
Hajime Hoshi
0ab90197a3 Implement IsMouseButtonPressed / CursorPosition in JS (#53) 2015-01-06 23:41:03 +09:00
Hajime Hoshi
b769e0eb6c Update server/main.go to show GopherJS errors 2015-01-06 22:24:34 +09:00
Hajime Hoshi
324e8653fb Update docs to use GopherJS (#54) 2015-01-06 00:44:39 +09:00
Hajime Hoshi
f631653681 Add example/server to show examples on GopherJS; Update docs 2015-01-05 23:55:25 +09:00
Hajime Hoshi
7b47e37d34 Spped up blocks (#59) 2015-01-05 22:02:56 +09:00
Hajime Hoshi
8145561219 Use new style methods of matrices (ColorM) 2015-01-05 10:31:48 +09:00
Hajime Hoshi
4226354e4a Use new style methods of matrices 2015-01-05 10:30:33 +09:00
Hajime Hoshi
f697501531 Use ImageParts 2015-01-05 10:08:00 +09:00
Hajime Hoshi
cdc29210db Introduce ImageParts 2015-01-05 09:32:27 +09:00
Hajime Hoshi
9bec0cf1c6 Speed up: avoid allocating 2015-01-03 23:42:37 +09:00
Hajime Hoshi
ea98fefc4f Refactoring: matrix initialization 2015-01-03 22:54:01 +09:00
Hajime Hoshi
2eea1afcd1 Optimize ColorM and GeoM 2015-01-03 18:35:44 +09:00
Hajime Hoshi
1117862d19 Avoid copying for performance 2015-01-03 14:23:31 +09:00
Hajime Hoshi
e9527df0f5 Remove calling runtime.LockOSThread (now blocks can be built with gopherjs) 2015-01-02 15:37:36 +09:00
Hajime Hoshi
2d667a399c Bug fix: blocks/main.go 2014-12-29 18:52:56 +09:00
Hajime Hoshi
1e6f51ed23 Add blocks example to index.html 2014-12-29 18:43:35 +09:00
Hajime Hoshi
1c4a652a6d blocks: Change font color 2014-12-29 18:33:57 +09:00
Hajime Hoshi
bb1d168154 blocks: Show background image; Go back to title after gameover 2014-12-29 18:30:36 +09:00
Hajime Hoshi
083dafa627 blocks: Flushing blocks 2014-12-29 17:44:06 +09:00
Hajime Hoshi
9288c9dcc9 blocks: Gameover 2014-12-29 16:41:58 +09:00
Hajime Hoshi
b02bce4876 Add score, level, lines 2014-12-29 16:12:26 +09:00
Hajime Hoshi
0346e81161 blocks: Introduce level and gravity 2014-12-29 15:24:20 +09:00
Hajime Hoshi
bb0dfcfc3e blocks: Show next 2014-12-29 14:27:43 +09:00
Hajime Hoshi
f0277727d1 Refactoring 2014-12-29 13:39:35 +09:00
Hajime Hoshi
47214fb572 Improve animation GIF color 2014-12-29 01:57:39 +09:00
Hajime Hoshi
83d129e674 Remove blocks.Images 2014-12-29 01:07:34 +09:00
Hajime Hoshi
0a2a76be3b Remove imagePaths and renderTargetSizes; Initialize images in init() 2014-12-29 01:04:43 +09:00
Hajime Hoshi
2737b29867 Bug fix: titles of examples 2014-12-28 18:52:16 +09:00
Hajime Hoshi
7c25a4edea Add example 'hue' 2014-12-28 15:09:40 +09:00
Hajime Hoshi
161b3d1316 Simplify rotate/main.go 2014-12-28 14:40:20 +09:00
Hajime Hoshi
89a3297e74 Further optimization for RecordScreenAsGIF 2014-12-28 04:10:47 +09:00
Hajime Hoshi
d17369000c Compress font.png 2014-12-27 23:19:22 +09:00
Hajime Hoshi
325e05259a Introduce ImagePart again 2014-12-27 17:37:31 +09:00
Hajime Hoshi
7849a68cd0 Remove DrawImageAt 2014-12-26 23:01:47 +09:00
Hajime Hoshi
ffab448d40 Rename ColorGeometry -> ColorM, GeometryMatrix -> GeoM (#27) 2014-12-26 22:50:25 +09:00
Hajime Hoshi
ec6dc4b7ec Use value-type values for some of DrawImageOption's members 2014-12-26 11:29:44 +09:00
Hajime Hoshi
843b0d8621 Remove the struct DrawImageAt; Add a method (*Image).DrawImageAt 2014-12-26 03:46:25 +09:00
Hajime Hoshi
cdc84567ca Rename At -> DrawImageAt 2014-12-26 03:00:40 +09:00
Hajime Hoshi
f2fbd991d2 Rename ImageDrawOptions -> DrawImageOptions (#43) 2014-12-26 01:39:48 +09:00
Hajime Hoshi
90665944b9 Rename ImageDrawOption -> ImageDrawOptions 2014-12-24 23:38:04 +09:00
Hajime Hoshi
494d07387d Remove DrawImage.+ function (#41) 2014-12-24 23:17:58 +09:00
Hajime Hoshi
b39df50979 Introduce ImageDrawOption 2014-12-24 22:46:00 +09:00
Hajime Hoshi
373371d1b2 Change license comments style to use magic comments (magic comments like +build should be placed before a general comment) 2014-12-24 11:04:10 +09:00
Hajime Hoshi
6b0ae1cd18 Resize gophers.jpg 2014-12-24 09:52:17 +09:00
Hajime Hoshi
642d77bb11 Rename example/image -> example/rotate 2014-12-24 09:31:23 +09:00
Hajime Hoshi
6cb8dac860 Add DrawImage* functions (#40) 2014-12-24 03:05:45 +09:00
Hajime Hoshi
604c0d095f Remove ImagePart 2014-12-24 02:04:56 +09:00
Hajime Hoshi
84f2e8aad2 Remove ebiten.Rect (#37) 2014-12-24 01:15:16 +09:00
Hajime Hoshi
ddd43370bc Add RecordScreenAsGIF (#23) 2014-12-24 00:08:22 +09:00
Hajime Hoshi
0fe8387a5a Simplify examples 2014-12-23 02:43:26 +09:00
Hajime Hoshi
b3581d1c7a Bug fix: Need to clear the default framebuffer 2014-12-23 02:35:17 +09:00
Hajime Hoshi
cd9efd3932 Implement image.Image at ebiten.Image (#35) 2014-12-23 01:27:11 +09:00
Hajime Hoshi
0f8ac49055 Unify RenderTarget and Image into Image (#34) 2014-12-22 11:10:08 +09:00
Hajime Hoshi
99434fa9d3 Bug fix: Consider color.Color.RGBA returns alpha-premultiplied values 2014-12-22 01:05:21 +09:00
Hajime Hoshi
d34c94aa09 examples: Rename texture -> image 2014-12-21 03:08:01 +09:00
Hajime Hoshi
d774c19581 Rename NewTextureFromFile -> NewImageFromFile 2014-12-21 02:59:00 +09:00
Hajime Hoshi
3a9a7fed87 Rename Texture -> Image (#29) 2014-12-21 02:55:15 +09:00
Hajime Hoshi
146c1db44a Rename RenderTarget.Texture -> .Image 2014-12-21 02:45:50 +09:00
Hajime Hoshi
6a2cfab839 Rename TexturePart -> ImagePart 2014-12-21 02:42:55 +09:00
Hajime Hoshi
40c763724f Rename NewTexture -> NewImage 2014-12-21 02:29:04 +09:00
Hajime Hoshi
ee61db3478 Rename DrawTexture -> DrawImage 2014-12-21 02:24:57 +09:00
Hajime Hoshi
991adb7449 Change RenderTexture to interface 2014-12-21 00:36:27 +09:00
Hajime Hoshi
01e0d42451 Remove GraphicsContext; Add rendering methods to RenderTarget (#26) 2014-12-20 23:24:15 +09:00
Hajime Hoshi
d4cd858eeb Improve alphablending example 2014-12-20 19:11:06 +09:00
Hajime Hoshi
df35a0ce1e Bug fix: the default framebuffer can't bind a texture 2014-12-20 18:57:00 +09:00
Hajime Hoshi
b50e82f49d Add example alphablending 2014-12-20 16:15:21 +09:00