{"action":"created","comment":{"url":"https://api.github.com/repos/domokit/sky_engine/pulls/comments/35226180","id":35226180,"diff_hunk":"@@ -84,16 +85,18 @@ class GameDemoApp extends App {\n   }\n \n   Widget _buildGameScene(navigator, route) {\n-    return new SpriteWidget(\n-      new GameDemoWorld(_app, navigator, _loader, _spriteSheet)\n-    );\n+    if (_game == null) _game = new GameDemoWorld(_app, navigator, _loader, _spriteSheet);\n+    return new SpriteWidget(_game);\n   }\n \n   Widget _buildMainScene(navigator, route) {\n     return new Center(\n       child: new RaisedButton(\n         child: new Text(\"Play\"),\n-        onPressed: () => navigator.pushNamed('/game')\n+        onPressed: () {\n+          _game = new GameDemoWorld(_app, navigator, _loader, _spriteSheet, _spriteSheetUI);","path":"sky/sdk/example/game/main.dart","position":25,"original_position":25,"commit_id":"6216bc2ee013c7569dc2a5e89e232d116770e48c","original_commit_id":"6216bc2ee013c7569dc2a5e89e232d116770e48c","user":{"login":"Hixie","id":551196,"avatar_url":"https://avatars.githubusercontent.com/u/551196?v=3","gravatar_id":"","url":"https://api.github.com/users/Hixie","html_url":"https://github.com/Hixie","followers_url":"https://api.github.com/users/Hixie/followers","following_url":"https://api.github.com/users/Hixie/following{/other_user}","gists_url":"https://api.github.com/users/Hixie/gists{/gist_id}","starred_url":"https://api.github.com/users/Hixie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hixie/subscriptions","organizations_url":"https://api.github.com/users/Hixie/orgs","repos_url":"https://api.github.com/users/Hixie/repos","events_url":"https://api.github.com/users/Hixie/events{/privacy}","received_events_url":"https://api.github.com/users/Hixie/received_events","type":"User","site_admin":false},"body":"isn't this redundant with _buildGameScene?","created_at":"2015-07-22T15:32:00Z","updated_at":"2015-07-22T15:32:00Z","html_url":"https://github.com/domokit/sky_engine/pull/202#discussion_r35226180","pull_request_url":"https://api.github.com/repos/domokit/sky_engine/pulls/202","_links":{"self":{"href":"https://api.github.com/repos/domokit/sky_engine/pulls/comments/35226180"},"html":{"href":"https://github.com/domokit/sky_engine/pull/202#discussion_r35226180"},"pull_request":{"href":"https://api.github.com/repos/domokit/sky_engine/pulls/202"}}},"pull_request":{"url":"https://api.github.com/repos/domokit/sky_engine/pulls/202","id":40517658,"html_url":"https://github.com/domokit/sky_engine/pull/202","diff_url":"https://github.com/domokit/sky_engine/pull/202.diff","patch_url":"https://github.com/domokit/sky_engine/pull/202.patch","issue_url":"https://api.github.com/repos/domokit/sky_engine/issues/202","number":202,"state":"open","locked":false,"title":"Fixes issues with invalidating matrix for SpriteBox & adds HUD to demo game","user":{"login":"vlidholt","id":1539812,"avatar_url":"https://avatars.githubusercontent.com/u/1539812?v=3","gravatar_id":"","url":"https://api.github.com/users/vlidholt","html_url":"https://github.com/vlidholt","followers_url":"https://api.github.com/users/vlidholt/followers","following_url":"https://api.github.com/users/vlidholt/following{/other_user}","gists_url":"https://api.github.com/users/vlidholt/gists{/gist_id}","starred_url":"https://api.github.com/users/vlidholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlidholt/subscriptions","organizations_url":"https://api.github.com/users/vlidholt/orgs","repos_url":"https://api.github.com/users/vlidholt/repos","events_url":"https://api.github.com/users/vlidholt/events{/privacy}","received_events_url":"https://api.github.com/users/vlidholt/received_events","type":"User","site_admin":false},"body":"Fixes issue in SpriteBox where the visibleArea and transformMatrix properties wasn't always correctly updated.\r\n\r\nAdds HUD to demo game","created_at":"2015-07-21T23:51:50Z","updated_at":"2015-07-22T15:32:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d06f57b8233ac05e4f87b434713c0cf27bd58b69","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/domokit/sky_engine/pulls/202/commits","review_comments_url":"https://api.github.com/repos/domokit/sky_engine/pulls/202/comments","review_comment_url":"https://api.github.com/repos/domokit/sky_engine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/domokit/sky_engine/issues/202/comments","statuses_url":"https://api.github.com/repos/domokit/sky_engine/statuses/6216bc2ee013c7569dc2a5e89e232d116770e48c","head":{"label":"vlidholt:master","ref":"master","sha":"6216bc2ee013c7569dc2a5e89e232d116770e48c","user":{"login":"vlidholt","id":1539812,"avatar_url":"https://avatars.githubusercontent.com/u/1539812?v=3","gravatar_id":"","url":"https://api.github.com/users/vlidholt","html_url":"https://github.com/vlidholt","followers_url":"https://api.github.com/users/vlidholt/followers","following_url":"https://api.github.com/users/vlidholt/following{/other_user}","gists_url":"https://api.github.com/users/vlidholt/gists{/gist_id}","starred_url":"https://api.github.com/users/vlidholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlidholt/subscriptions","organizations_url":"https://api.github.com/users/vlidholt/orgs","repos_url":"https://api.github.com/users/vlidholt/repos","events_url":"https://api.github.com/users/vlidholt/events{/privacy}","received_events_url":"https://api.github.com/users/vlidholt/received_events","type":"User","site_admin":false},"repo":{"id":39393886,"name":"sky_engine","full_name":"vlidholt/sky_engine","owner":{"login":"vlidholt","id":1539812,"avatar_url":"https://avatars.githubusercontent.com/u/1539812?v=3","gravatar_id":"","url":"https://api.github.com/users/vlidholt","html_url":"https://github.com/vlidholt","followers_url":"https://api.github.com/users/vlidholt/followers","following_url":"https://api.github.com/users/vlidholt/following{/other_user}","gists_url":"https://api.github.com/users/vlidholt/gists{/gist_id}","starred_url":"https://api.github.com/users/vlidholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlidholt/subscriptions","organizations_url":"https://api.github.com/users/vlidholt/orgs","repos_url":"https://api.github.com/users/vlidholt/repos","events_url":"https://api.github.com/users/vlidholt/events{/privacy}","received_events_url":"https://api.github.com/users/vlidholt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vlidholt/sky_engine","description":"The Sky engine","fork":true,"url":"https://api.github.com/repos/vlidholt/sky_engine","forks_url":"https://api.github.com/repos/vlidholt/sky_engine/forks","keys_url":"https://api.github.com/repos/vlidholt/sky_engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vlidholt/sky_engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vlidholt/sky_engine/teams","hooks_url":"https://api.github.com/repos/vlidholt/sky_engine/hooks","issue_events_url":"https://api.github.com/repos/vlidholt/sky_engine/issues/events{/number}","events_url":"https://api.github.com/repos/vlidholt/sky_engine/events","assignees_url":"https://api.github.com/repos/vlidholt/sky_engine/assignees{/user}","branches_url":"https://api.github.com/repos/vlidholt/sky_engine/branches{/branch}","tags_url":"https://api.github.com/repos/vlidholt/sky_engine/tags","blobs_url":"https://api.github.com/repos/vlidholt/sky_engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vlidholt/sky_engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vlidholt/sky_engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/vlidholt/sky_engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vlidholt/sky_engine/statuses/{sha}","languages_url":"https://api.github.com/repos/vlidholt/sky_engine/languages","stargazers_url":"https://api.github.com/repos/vlidholt/sky_engine/stargazers","contributors_url":"https://api.github.com/repos/vlidholt/sky_engine/contributors","subscribers_url":"https://api.github.com/repos/vlidholt/sky_engine/subscribers","subscription_url":"https://api.github.com/repos/vlidholt/sky_engine/subscription","commits_url":"https://api.github.com/repos/vlidholt/sky_engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/vlidholt/sky_engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/vlidholt/sky_engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/vlidholt/sky_engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/vlidholt/sky_engine/contents/{+path}","compare_url":"https://api.github.com/repos/vlidholt/sky_engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vlidholt/sky_engine/merges","archive_url":"https://api.github.com/repos/vlidholt/sky_engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vlidholt/sky_engine/downloads","issues_url":"https://api.github.com/repos/vlidholt/sky_engine/issues{/number}","pulls_url":"https://api.github.com/repos/vlidholt/sky_engine/pulls{/number}","milestones_url":"https://api.github.com/repos/vlidholt/sky_engine/milestones{/number}","notifications_url":"https://api.github.com/repos/vlidholt/sky_engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vlidholt/sky_engine/labels{/name}","releases_url":"https://api.github.com/repos/vlidholt/sky_engine/releases{/id}","created_at":"2015-07-20T16:02:35Z","updated_at":"2015-07-20T16:02:54Z","pushed_at":"2015-07-21T23:49:16Z","git_url":"git://github.com/vlidholt/sky_engine.git","ssh_url":"git@github.com:vlidholt/sky_engine.git","clone_url":"https://github.com/vlidholt/sky_engine.git","svn_url":"https://github.com/vlidholt/sky_engine","homepage":null,"size":70950,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"domokit:master","ref":"master","sha":"b30f63a7ebb663bd722a2497ad0c16d2df359e2a","user":{"login":"domokit","id":8664152,"avatar_url":"https://avatars.githubusercontent.com/u/8664152?v=3","gravatar_id":"","url":"https://api.github.com/users/domokit","html_url":"https://github.com/domokit","followers_url":"https://api.github.com/users/domokit/followers","following_url":"https://api.github.com/users/domokit/following{/other_user}","gists_url":"https://api.github.com/users/domokit/gists{/gist_id}","starred_url":"https://api.github.com/users/domokit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domokit/subscriptions","organizations_url":"https://api.github.com/users/domokit/orgs","repos_url":"https://api.github.com/users/domokit/repos","events_url":"https://api.github.com/users/domokit/events{/privacy}","received_events_url":"https://api.github.com/users/domokit/received_events","type":"Organization","site_admin":false},"repo":{"id":39211337,"name":"sky_engine","full_name":"domokit/sky_engine","owner":{"login":"domokit","id":8664152,"avatar_url":"https://avatars.githubusercontent.com/u/8664152?v=3","gravatar_id":"","url":"https://api.github.com/users/domokit","html_url":"https://github.com/domokit","followers_url":"https://api.github.com/users/domokit/followers","following_url":"https://api.github.com/users/domokit/following{/other_user}","gists_url":"https://api.github.com/users/domokit/gists{/gist_id}","starred_url":"https://api.github.com/users/domokit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domokit/subscriptions","organizations_url":"https://api.github.com/users/domokit/orgs","repos_url":"https://api.github.com/users/domokit/repos","events_url":"https://api.github.com/users/domokit/events{/privacy}","received_events_url":"https://api.github.com/users/domokit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/domokit/sky_engine","description":"The Sky engine","fork":false,"url":"https://api.github.com/repos/domokit/sky_engine","forks_url":"https://api.github.com/repos/domokit/sky_engine/forks","keys_url":"https://api.github.com/repos/domokit/sky_engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/domokit/sky_engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/domokit/sky_engine/teams","hooks_url":"https://api.github.com/repos/domokit/sky_engine/hooks","issue_events_url":"https://api.github.com/repos/domokit/sky_engine/issues/events{/number}","events_url":"https://api.github.com/repos/domokit/sky_engine/events","assignees_url":"https://api.github.com/repos/domokit/sky_engine/assignees{/user}","branches_url":"https://api.github.com/repos/domokit/sky_engine/branches{/branch}","tags_url":"https://api.github.com/repos/domokit/sky_engine/tags","blobs_url":"https://api.github.com/repos/domokit/sky_engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/domokit/sky_engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/domokit/sky_engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/domokit/sky_engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/domokit/sky_engine/statuses/{sha}","languages_url":"https://api.github.com/repos/domokit/sky_engine/languages","stargazers_url":"https://api.github.com/repos/domokit/sky_engine/stargazers","contributors_url":"https://api.github.com/repos/domokit/sky_engine/contributors","subscribers_url":"https://api.github.com/repos/domokit/sky_engine/subscribers","subscription_url":"https://api.github.com/repos/domokit/sky_engine/subscription","commits_url":"https://api.github.com/repos/domokit/sky_engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/domokit/sky_engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/domokit/sky_engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/domokit/sky_engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/domokit/sky_engine/contents/{+path}","compare_url":"https://api.github.com/repos/domokit/sky_engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/domokit/sky_engine/merges","archive_url":"https://api.github.com/repos/domokit/sky_engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/domokit/sky_engine/downloads","issues_url":"https://api.github.com/repos/domokit/sky_engine/issues{/number}","pulls_url":"https://api.github.com/repos/domokit/sky_engine/pulls{/number}","milestones_url":"https://api.github.com/repos/domokit/sky_engine/milestones{/number}","notifications_url":"https://api.github.com/repos/domokit/sky_engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/domokit/sky_engine/labels{/name}","releases_url":"https://api.github.com/repos/domokit/sky_engine/releases{/id}","created_at":"2015-07-16T17:39:56Z","updated_at":"2015-07-22T13:52:43Z","pushed_at":"2015-07-22T15:23:55Z","git_url":"git://github.com/domokit/sky_engine.git","ssh_url":"git@github.com:domokit/sky_engine.git","clone_url":"https://github.com/domokit/sky_engine.git","svn_url":"https://github.com/domokit/sky_engine","homepage":null,"size":72240,"stargazers_count":36,"watchers_count":36,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":104,"forks":15,"open_issues":104,"watchers":36,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/domokit/sky_engine/pulls/202"},"html":{"href":"https://github.com/domokit/sky_engine/pull/202"},"issue":{"href":"https://api.github.com/repos/domokit/sky_engine/issues/202"},"comments":{"href":"https://api.github.com/repos/domokit/sky_engine/issues/202/comments"},"review_comments":{"href":"https://api.github.com/repos/domokit/sky_engine/pulls/202/comments"},"review_comment":{"href":"https://api.github.com/repos/domokit/sky_engine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/domokit/sky_engine/pulls/202/commits"},"statuses":{"href":"https://api.github.com/repos/domokit/sky_engine/statuses/6216bc2ee013c7569dc2a5e89e232d116770e48c"}}}}