Commit Graph

226 Commits

Author SHA1 Message Date
Hajime Hoshi
ee23301538 Use signal to catch SIGINT and SIGTERM 2014-01-11 15:14:47 +09:00
Hajime Hoshi
2b4dc28d91 go fmt 2014-01-07 23:29:24 +09:00
Hajime Hoshi
5d2e2476b6 Refactoring: lazy initializing the application 2014-01-07 02:14:53 +09:00
Hajime Hoshi
1f1c5cba95 Add methods to ui/cocoa/texture_factory.go 2014-01-07 00:10:46 +09:00
Hajime Hoshi
cc14882cb2 Remove void* 2013-12-31 03:17:39 +09:00
Hajime Hoshi
51fa65bf2f Flush lines 2013-12-27 00:37:36 +09:00
Hajime Hoshi
ce97070f66 Implement landing 2013-12-20 03:21:10 +09:00
Hajime Hoshi
14994d57f2 Landing a piece 2013-12-20 03:03:35 +09:00
Hajime Hoshi
2ac027c452 Drop a piece 2013-12-20 01:23:00 +09:00
Hajime Hoshi
631b226b5b Move a piece 2013-12-20 01:08:32 +09:00
Hajime Hoshi
bc7dd51adf Show a piece 2013-12-19 03:21:25 +09:00
Hajime Hoshi
71e08bca41 Add images/README.md 2013-12-18 18:09:56 +09:00
Hajime Hoshi
c35d0f85ec Title for blocks 2013-12-18 18:05:28 +09:00
Hajime Hoshi
72ce849fbd Key events 2013-12-16 10:02:15 +09:00
Hajime Hoshi
94ecfbba9c Refactoring event handling 2013-12-16 09:39:49 +09:00
Hajime Hoshi
0a3ec197ff Rename InputStateUpdated -> MouseStateUpdated 2013-12-15 23:45:50 +09:00
Hajime Hoshi
f61d9280e4 Rename: Canvas -> Context 2013-12-14 06:10:24 +09:00
Hajime Hoshi
b1062a80bf Refactoring 2013-12-14 05:34:27 +09:00
Hajime Hoshi
5aa0b5f5c2 Avoid a busy loop 2013-12-13 01:27:02 +09:00
Hajime Hoshi
d087333e48 Refactoring 2013-12-13 00:45:24 +09:00
Hajime Hoshi
82e8849e01 Refactoring 2013-12-11 22:31:13 +09:00
Hajime Hoshi
0c51a7a362 Remove ebiten_controller.c 2013-12-11 00:54:00 +09:00
Hajime Hoshi
54557aadf2 Add WindowClosedEvent 2013-12-11 00:49:30 +09:00
Hajime Hoshi
2e17c366ca Add and use cocoa.Window 2013-12-11 00:18:08 +09:00
Hajime Hoshi
a0cf1e5d55 Remove GOMAXPROCS 2013-12-10 21:17:39 +09:00
Hajime Hoshi
2bd77e949a Refactoring 2013-12-09 09:45:40 +09:00
Hajime Hoshi
894dd71d35 Change the background color 2013-12-09 02:00:17 +09:00
Hajime Hoshi
2ea00ec8a9 Add a transparent screen 2013-12-08 23:49:48 +09:00
Hajime Hoshi
698d176ec3 Refactoring 2013-12-08 23:03:00 +09:00
Hajime Hoshi
63abfb2c13 Bug fix: the initial state of a ebiten 2013-12-08 22:14:52 +09:00
Hajime Hoshi
e10bac5a8a Rotate ebiten 2013-12-08 21:03:30 +09:00
Hajime Hoshi
cdb511b08b Add matrix.Color.Scale 2013-12-08 19:38:22 +09:00
Hajime Hoshi
b14684804f Draggin ebiten 2013-12-08 17:02:35 +09:00
Hajime Hoshi
a25a2df6b4 gofmt 2013-12-08 16:28:56 +09:00
Hajime Hoshi
8fbd818f28 Async loading textures 2013-12-08 16:28:18 +09:00
Hajime Hoshi
cbc5c38db6 Remove games 2013-12-08 16:19:24 +09:00
Hajime Hoshi
4489557c84 UnuseGLContext 2013-12-08 01:35:24 +09:00
Hajime Hoshi
e55060c239 Add cocoa.textureFactory 2013-12-07 02:20:53 +09:00
Hajime Hoshi
24a735dd0b Use runtime.LockOSThread at main 2013-12-04 21:51:39 +09:00
Hajime Hoshi
dd979ac4d6 Add 'Tag' to the methods of TextureFactory 2013-12-03 23:24:34 +09:00
Hajime Hoshi
79c74273f5 Fix the event handling model 2013-12-03 22:15:00 +09:00
Hajime Hoshi
f9e5e754b2 Move some definitions to the ui package 2013-12-03 00:15:01 +09:00
Hajime Hoshi
add743572c Add LazyCanvas 2013-12-02 21:47:41 +09:00
Hajime Hoshi
3e5d58ef85 Close the observing channel 2013-12-01 21:42:41 +09:00
Hajime Hoshi
e2a8b07a94 Event handling 2013-12-01 21:23:03 +09:00
Hajime Hoshi
da30a83491 Remove ebiten.GameContext 2013-11-30 04:24:52 +09:00
Hajime Hoshi
2a8af24518 Remove InputState 2013-11-30 03:21:10 +09:00
Hajime Hoshi
7c91b03678 Bug fix: rects 2013-11-29 23:18:44 +09:00
Hajime Hoshi
89c33eac85 Remove Canvas.ToTexture 2013-11-29 22:45:18 +09:00
Hajime Hoshi
e8c518735b Rename graphics.Context -> graphics.Canvas 2013-11-29 22:06:22 +09:00
Hajime Hoshi
f0ef3384cb Refactoring 2013-11-29 02:38:18 +09:00
Hajime Hoshi
0a16107cd6 Refactoring 2013-11-24 01:17:22 +09:00
Hajime Hoshi
bcb8c0d45a Remove ebiten.FPS 2013-11-23 19:51:29 +09:00
Hajime Hoshi
cc7b78bb9a Refactoring 2013-11-23 19:31:10 +09:00
Hajime Hoshi
75a362d5b1 Clean up 2013-11-23 18:10:15 +09:00
Hajime Hoshi
170ed689fa Stop using [NSApp run] 2013-11-23 02:56:18 +09:00
Hajime Hoshi
f72076641a Refactoring 2013-11-17 22:42:12 +09:00
Hajime Hoshi
9aded38cc2 Refactoring 2013-10-23 01:08:29 +09:00
Hajime Hoshi
a0f17a4971 Rename ID -> Id 2013-10-21 22:18:10 +09:00
Hajime Hoshi
3a383b3078 Change TextureFactory.NewRenderTarget 2013-10-21 01:23:44 +09:00
Hajime Hoshi
ba931902b9 Refactoring: Any images are acceptable 2013-10-21 00:17:05 +09:00
Hajime Hoshi
801688f511 Rename Game.Init -> Game.InitTextures 2013-10-20 15:51:26 +09:00
Hajime Hoshi
d360f0effe Add TestPattern 2013-10-19 02:58:00 +09:00
Hajime Hoshi
8ae31a35dc Bug fix: a rect's size 2013-10-19 00:57:43 +09:00
Hajime Hoshi
e2509e3439 Rename Context.TextureID -> ToTexture 2013-10-18 00:45:12 +09:00
Hajime Hoshi
db4e3fdc03 Remove Texture/RenderTarget 2013-10-17 00:14:32 +09:00
Hajime Hoshi
fd0ba69f0b Remove Texture.Width()/Height() 2013-10-16 23:20:07 +09:00
Hajime Hoshi
5679120f29 Remove RenderTarget.Width/Height 2013-10-16 23:06:35 +09:00
Hajime Hoshi
20f9a990ac Replace Screen/ResetOffscreen 2013-10-16 22:18:46 +09:00
Hajime Hoshi
319d1bfc74 Refactoring: glut.UI implements ui.UI 2013-10-15 09:12:43 +09:00
Hajime Hoshi
9d83ae1cfa Add ui.UI 2013-10-15 00:49:30 +09:00
Hajime Hoshi
ef932bd5ae Rename the project name 2013-10-14 11:34:58 +09:00
Hajime Hoshi
983aeec03b Implement ui.cocoa 2013-10-13 23:06:05 +09:00
Hajime Hoshi
54893c3031 Remove GameContext.Terminate() 2013-10-13 17:43:56 +09:00
Hajime Hoshi
38af973461 Remove licenses on each files 2013-10-12 22:33:55 +09:00
Hajime Hoshi
531b24dd9b CHange Context.Fill 2013-10-12 03:21:10 +09:00
Hajime Hoshi
86eb30c650 Add graphics.RenderTarget 2013-10-12 01:29:19 +09:00
Hajime Hoshi
e6680eeda9 Refactoring 2013-10-11 22:20:36 +09:00
Hajime Hoshi
59921c5a34 Remove graphics.Context.DrawRect 2013-10-11 22:17:38 +09:00
Hajime Hoshi
62e8755b64 Remove Game.ScreenWidth/Height 2013-10-09 23:34:11 +09:00
Hajime Hoshi
129532692d Refactoring 2013-10-09 22:35:08 +09:00
Hajime Hoshi
55331e2453 Remove Game.Fps() 2013-10-06 18:44:15 +09:00
Hajime Hoshi
d6cd54eba7 Implement GameContext.Terminate 2013-07-17 01:43:01 +09:00
Hajime Hoshi
15c76624f1 Change Texture 2013-07-13 01:36:01 +09:00
Hajime Hoshi
b443cb7ebe Crop the image 2013-07-08 00:03:17 +09:00
Hajime Hoshi
239f008045 Add title 2013-07-07 01:45:19 +09:00
Hajime Hoshi
1826db6f2e Refactoring 2013-07-06 00:27:36 +09:00
Hajime Hoshi
0c8ba5fef6 Add ui/glut 2013-07-05 22:25:45 +09:00
Hajime Hoshi
55ae4a6855 Bug fix: input 2013-07-05 21:46:52 +09:00
Hajime Hoshi
50f335d0e9 Bug fix: input 2013-07-05 21:39:50 +09:00
Hajime Hoshi
572f4057a8 Change Game.Update 2013-07-05 21:02:17 +09:00
Hajime Hoshi
508e5150de Modify Game.Draw 2013-07-04 23:57:53 +09:00
Hajime Hoshi
1a1bc9f0b3 Add game/text 2013-07-03 01:27:04 +09:00
Hajime Hoshi
b969c15ecf Change Game.Update 2013-07-02 00:42:47 +09:00
Hajime Hoshi
86b2157b68 Add license descriptions 2013-07-01 22:25:41 +09:00
Hajime Hoshi
997668a0db Remove unneeded functions 2013-06-28 00:33:41 +09:00
Hajime Hoshi
f06e541f48 Refactoring 2013-06-28 00:33:03 +09:00
Hajime Hoshi
b0de4acaf4 Refactoring Input 2013-06-27 02:10:56 +09:00
Hajime Hoshi
ef6d643438 Refactoring 2013-06-27 01:46:13 +09:00
Hajime Hoshi
9dd6fff9ab Refactoring 2013-06-27 01:13:09 +09:00
Hajime Hoshi
6e584eb642 Add ebiten.InputState 2013-06-25 10:27:32 +09:00
Hajime Hoshi
fe11e23286 Add Blank 2013-06-24 22:27:51 +09:00
Hajime Hoshi
dfc07f9a44 go fmt 2013-06-24 00:43:41 +09:00
Hajime Hoshi
809f889631 Implement Monochrome 2013-06-24 00:43:19 +09:00
Hajime Hoshi
8860d315ca Add Monochrome 2013-06-23 23:43:44 +09:00
Hajime Hoshi
97550279ee Add Game.Fps 2013-06-23 22:38:41 +09:00
Hajime Hoshi
92ac4b97ea Change the signiture of GraphicsContext.DrawTexture 2013-06-23 21:51:23 +09:00
Hajime Hoshi
81a7d4c4fd Define textureError 2013-06-23 16:06:32 +09:00
Hajime Hoshi
edceec9220 Rename TextureLocation to TexturePart 2013-06-23 02:16:22 +09:00
Hajime Hoshi
2b04f74614 Add Rects 2013-06-23 02:01:26 +09:00
Hajime Hoshi
99f17c418b Create packages for games 2013-06-22 23:16:01 +09:00
Hajime Hoshi
532528037a Changed the size of the rectangle 2013-06-22 16:00:42 +09:00
Hajime Hoshi
215df5d190 Implement DrawRect 2013-06-22 15:56:25 +09:00
Hajime Hoshi
4fc359e08f Remove an unneeded variable 2013-06-22 02:45:10 +09:00
Hajime Hoshi
a3c07b1d36 go fmt 2013-06-22 02:44:17 +09:00
Hajime Hoshi
03fae7032a Renamed methods 2013-06-22 02:42:14 +09:00
Hajime Hoshi
71606b78a9 Refactoring 2013-06-22 02:03:16 +09:00
Hajime Hoshi
79a68a425b Remove graphics.Point and graphics.Size 2013-06-22 01:52:10 +09:00
Hajime Hoshi
fad8fb7a98 Add graphics.DrawTextures (which I want to rename later) 2013-06-22 00:50:55 +09:00
Hajime Hoshi
a374565e37 Add graphics.Rectangle 2013-06-22 00:03:45 +09:00
Hajime Hoshi
88eeb6d65d Refactoring 2013-06-21 23:22:46 +09:00
Hajime Hoshi
b84cc9a57b Add game.Sprites 2013-06-21 23:16:52 +09:00
Hajime Hoshi
faa9c1bfe8 go fmt 2013-06-21 11:16:19 +09:00
Hajime Hoshi
970b087035 Run Sprites 2013-06-21 11:02:49 +09:00
Hajime Hoshi
5e2e0a0760 Add game files 2013-06-21 11:02:38 +09:00
Hajime Hoshi
d87df4979c Create game package 2013-06-21 10:45:00 +09:00