{"action":"created","comment":{"url":"https://api.github.com/repos/ToniRib/game_time/pulls/comments/57994620","id":57994620,"diff_hunk":"@@ -66,3 +65,17 @@ requestAnimationFrame(function gameLoop() {\n \n   requestAnimationFrame(gameLoop);\n });\n+\n+function selectTile(event) {\n+  currentTile = board.getClickedTile(event.clientX, event.clientY);\n+}\n+\n+function assignSimpleTower() {\n+  if (currentTile) {\n+    currentTile.addTower('simple');","path":"lib/engine.js","position":26,"original_position":26,"commit_id":"728e4d07cd67c9835770b0ba1a71e5e17e53afb5","original_commit_id":"728e4d07cd67c9835770b0ba1a71e5e17e53afb5","user":{"login":"ToniRib","id":10429574,"avatar_url":"https://avatars.githubusercontent.com/u/10429574?v=3","gravatar_id":"","url":"https://api.github.com/users/ToniRib","html_url":"https://github.com/ToniRib","followers_url":"https://api.github.com/users/ToniRib/followers","following_url":"https://api.github.com/users/ToniRib/following{/other_user}","gists_url":"https://api.github.com/users/ToniRib/gists{/gist_id}","starred_url":"https://api.github.com/users/ToniRib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ToniRib/subscriptions","organizations_url":"https://api.github.com/users/ToniRib/orgs","repos_url":"https://api.github.com/users/ToniRib/repos","events_url":"https://api.github.com/users/ToniRib/events{/privacy}","received_events_url":"https://api.github.com/users/ToniRib/received_events","type":"User","site_admin":false},"body":"Actually I tried it and answered my own question. Looks like it throws an error in the console. I'm going to see if I can fix this so it doesn't throw an error, but just does nothing.","created_at":"2016-03-31T02:43:32Z","updated_at":"2016-03-31T02:43:32Z","html_url":"https://github.com/ToniRib/game_time/pull/11#discussion_r57994620","pull_request_url":"https://api.github.com/repos/ToniRib/game_time/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/ToniRib/game_time/pulls/comments/57994620"},"html":{"href":"https://github.com/ToniRib/game_time/pull/11#discussion_r57994620"},"pull_request":{"href":"https://api.github.com/repos/ToniRib/game_time/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/ToniRib/game_time/pulls/11","id":64720815,"html_url":"https://github.com/ToniRib/game_time/pull/11","diff_url":"https://github.com/ToniRib/game_time/pull/11.diff","patch_url":"https://github.com/ToniRib/game_time/pull/11.patch","issue_url":"https://api.github.com/repos/ToniRib/game_time/issues/11","number":11,"state":"open","locked":false,"title":"Menu","user":{"login":"Jlawlzz","id":11199673,"avatar_url":"https://avatars.githubusercontent.com/u/11199673?v=3","gravatar_id":"","url":"https://api.github.com/users/Jlawlzz","html_url":"https://github.com/Jlawlzz","followers_url":"https://api.github.com/users/Jlawlzz/followers","following_url":"https://api.github.com/users/Jlawlzz/following{/other_user}","gists_url":"https://api.github.com/users/Jlawlzz/gists{/gist_id}","starred_url":"https://api.github.com/users/Jlawlzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jlawlzz/subscriptions","organizations_url":"https://api.github.com/users/Jlawlzz/orgs","repos_url":"https://api.github.com/users/Jlawlzz/repos","events_url":"https://api.github.com/users/Jlawlzz/events{/privacy}","received_events_url":"https://api.github.com/users/Jlawlzz/received_events","type":"User","site_admin":false},"body":"Finished point and click functionality for adding towers (click first on build site, then on tower from menu).\r\n\r\nLet me know what you think about the event listeners, they should be refactored out of engine.js at some point.","created_at":"2016-03-31T01:01:53Z","updated_at":"2016-03-31T02:43:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"738d4b26246e9697430a0007c10243ea0573c7ec","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ToniRib/game_time/pulls/11/commits","review_comments_url":"https://api.github.com/repos/ToniRib/game_time/pulls/11/comments","review_comment_url":"https://api.github.com/repos/ToniRib/game_time/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ToniRib/game_time/issues/11/comments","statuses_url":"https://api.github.com/repos/ToniRib/game_time/statuses/728e4d07cd67c9835770b0ba1a71e5e17e53afb5","head":{"label":"ToniRib:menu","ref":"menu","sha":"728e4d07cd67c9835770b0ba1a71e5e17e53afb5","user":{"login":"ToniRib","id":10429574,"avatar_url":"https://avatars.githubusercontent.com/u/10429574?v=3","gravatar_id":"","url":"https://api.github.com/users/ToniRib","html_url":"https://github.com/ToniRib","followers_url":"https://api.github.com/users/ToniRib/followers","following_url":"https://api.github.com/users/ToniRib/following{/other_user}","gists_url":"https://api.github.com/users/ToniRib/gists{/gist_id}","starred_url":"https://api.github.com/users/ToniRib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ToniRib/subscriptions","organizations_url":"https://api.github.com/users/ToniRib/orgs","repos_url":"https://api.github.com/users/ToniRib/repos","events_url":"https://api.github.com/users/ToniRib/events{/privacy}","received_events_url":"https://api.github.com/users/ToniRib/received_events","type":"User","site_admin":false},"repo":{"id":54920320,"name":"game_time","full_name":"ToniRib/game_time","owner":{"login":"ToniRib","id":10429574,"avatar_url":"https://avatars.githubusercontent.com/u/10429574?v=3","gravatar_id":"","url":"https://api.github.com/users/ToniRib","html_url":"https://github.com/ToniRib","followers_url":"https://api.github.com/users/ToniRib/followers","following_url":"https://api.github.com/users/ToniRib/following{/other_user}","gists_url":"https://api.github.com/users/ToniRib/gists{/gist_id}","starred_url":"https://api.github.com/users/ToniRib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ToniRib/subscriptions","organizations_url":"https://api.github.com/users/ToniRib/orgs","repos_url":"https://api.github.com/users/ToniRib/repos","events_url":"https://api.github.com/users/ToniRib/events{/privacy}","received_events_url":"https://api.github.com/users/ToniRib/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ToniRib/game_time","description":"Jordan and Toni's tower defense game for Turing School","fork":false,"url":"https://api.github.com/repos/ToniRib/game_time","forks_url":"https://api.github.com/repos/ToniRib/game_time/forks","keys_url":"https://api.github.com/repos/ToniRib/game_time/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ToniRib/game_time/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ToniRib/game_time/teams","hooks_url":"https://api.github.com/repos/ToniRib/game_time/hooks","issue_events_url":"https://api.github.com/repos/ToniRib/game_time/issues/events{/number}","events_url":"https://api.github.com/repos/ToniRib/game_time/events","assignees_url":"https://api.github.com/repos/ToniRib/game_time/assignees{/user}","branches_url":"https://api.github.com/repos/ToniRib/game_time/branches{/branch}","tags_url":"https://api.github.com/repos/ToniRib/game_time/tags","blobs_url":"https://api.github.com/repos/ToniRib/game_time/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ToniRib/game_time/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ToniRib/game_time/git/refs{/sha}","trees_url":"https://api.github.com/repos/ToniRib/game_time/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ToniRib/game_time/statuses/{sha}","languages_url":"https://api.github.com/repos/ToniRib/game_time/languages","stargazers_url":"https://api.github.com/repos/ToniRib/game_time/stargazers","contributors_url":"https://api.github.com/repos/ToniRib/game_time/contributors","subscribers_url":"https://api.github.com/repos/ToniRib/game_time/subscribers","subscription_url":"https://api.github.com/repos/ToniRib/game_time/subscription","commits_url":"https://api.github.com/repos/ToniRib/game_time/commits{/sha}","git_commits_url":"https://api.github.com/repos/ToniRib/game_time/git/commits{/sha}","comments_url":"https://api.github.com/repos/ToniRib/game_time/comments{/number}","issue_comment_url":"https://api.github.com/repos/ToniRib/game_time/issues/comments{/number}","contents_url":"https://api.github.com/repos/ToniRib/game_time/contents/{+path}","compare_url":"https://api.github.com/repos/ToniRib/game_time/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ToniRib/game_time/merges","archive_url":"https://api.github.com/repos/ToniRib/game_time/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ToniRib/game_time/downloads","issues_url":"https://api.github.com/repos/ToniRib/game_time/issues{/number}","pulls_url":"https://api.github.com/repos/ToniRib/game_time/pulls{/number}","milestones_url":"https://api.github.com/repos/ToniRib/game_time/milestones{/number}","notifications_url":"https://api.github.com/repos/ToniRib/game_time/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ToniRib/game_time/labels{/name}","releases_url":"https://api.github.com/repos/ToniRib/game_time/releases{/id}","deployments_url":"https://api.github.com/repos/ToniRib/game_time/deployments","created_at":"2016-03-28T20:09:15Z","updated_at":"2016-03-28T20:10:58Z","pushed_at":"2016-03-31T01:31:32Z","git_url":"git://github.com/ToniRib/game_time.git","ssh_url":"git@github.com:ToniRib/game_time.git","clone_url":"https://github.com/ToniRib/game_time.git","svn_url":"https://github.com/ToniRib/game_time","homepage":null,"size":1020,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"ToniRib:master","ref":"master","sha":"d3c55d0dc35b081efe9b914bd710a4c9bbbfe2b4","user":{"login":"ToniRib","id":10429574,"avatar_url":"https://avatars.githubusercontent.com/u/10429574?v=3","gravatar_id":"","url":"https://api.github.com/users/ToniRib","html_url":"https://github.com/ToniRib","followers_url":"https://api.github.com/users/ToniRib/followers","following_url":"https://api.github.com/users/ToniRib/following{/other_user}","gists_url":"https://api.github.com/users/ToniRib/gists{/gist_id}","starred_url":"https://api.github.com/users/ToniRib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ToniRib/subscriptions","organizations_url":"https://api.github.com/users/ToniRib/orgs","repos_url":"https://api.github.com/users/ToniRib/repos","events_url":"https://api.github.com/users/ToniRib/events{/privacy}","received_events_url":"https://api.github.com/users/ToniRib/received_events","type":"User","site_admin":false},"repo":{"id":54920320,"name":"game_time","full_name":"ToniRib/game_time","owner":{"login":"ToniRib","id":10429574,"avatar_url":"https://avatars.githubusercontent.com/u/10429574?v=3","gravatar_id":"","url":"https://api.github.com/users/ToniRib","html_url":"https://github.com/ToniRib","followers_url":"https://api.github.com/users/ToniRib/followers","following_url":"https://api.github.com/users/ToniRib/following{/other_user}","gists_url":"https://api.github.com/users/ToniRib/gists{/gist_id}","starred_url":"https://api.github.com/users/ToniRib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ToniRib/subscriptions","organizations_url":"https://api.github.com/users/ToniRib/orgs","repos_url":"https://api.github.com/users/ToniRib/repos","events_url":"https://api.github.com/users/ToniRib/events{/privacy}","received_events_url":"https://api.github.com/users/ToniRib/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ToniRib/game_time","description":"Jordan and Toni's tower defense game for Turing School","fork":false,"url":"https://api.github.com/repos/ToniRib/game_time","forks_url":"https://api.github.com/repos/ToniRib/game_time/forks","keys_url":"https://api.github.com/repos/ToniRib/game_time/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ToniRib/game_time/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ToniRib/game_time/teams","hooks_url":"https://api.github.com/repos/ToniRib/game_time/hooks","issue_events_url":"https://api.github.com/repos/ToniRib/game_time/issues/events{/number}","events_url":"https://api.github.com/repos/ToniRib/game_time/events","assignees_url":"https://api.github.com/repos/ToniRib/game_time/assignees{/user}","branches_url":"https://api.github.com/repos/ToniRib/game_time/branches{/branch}","tags_url":"https://api.github.com/repos/ToniRib/game_time/tags","blobs_url":"https://api.github.com/repos/ToniRib/game_time/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ToniRib/game_time/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ToniRib/game_time/git/refs{/sha}","trees_url":"https://api.github.com/repos/ToniRib/game_time/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ToniRib/game_time/statuses/{sha}","languages_url":"https://api.github.com/repos/ToniRib/game_time/languages","stargazers_url":"https://api.github.com/repos/ToniRib/game_time/stargazers","contributors_url":"https://api.github.com/repos/ToniRib/game_time/contributors","subscribers_url":"https://api.github.com/repos/ToniRib/game_time/subscribers","subscription_url":"https://api.github.com/repos/ToniRib/game_time/subscription","commits_url":"https://api.github.com/repos/ToniRib/game_time/commits{/sha}","git_commits_url":"https://api.github.com/repos/ToniRib/game_time/git/commits{/sha}","comments_url":"https://api.github.com/repos/ToniRib/game_time/comments{/number}","issue_comment_url":"https://api.github.com/repos/ToniRib/game_time/issues/comments{/number}","contents_url":"https://api.github.com/repos/ToniRib/game_time/contents/{+path}","compare_url":"https://api.github.com/repos/ToniRib/game_time/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ToniRib/game_time/merges","archive_url":"https://api.github.com/repos/ToniRib/game_time/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ToniRib/game_time/downloads","issues_url":"https://api.github.com/repos/ToniRib/game_time/issues{/number}","pulls_url":"https://api.github.com/repos/ToniRib/game_time/pulls{/number}","milestones_url":"https://api.github.com/repos/ToniRib/game_time/milestones{/number}","notifications_url":"https://api.github.com/repos/ToniRib/game_time/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ToniRib/game_time/labels{/name}","releases_url":"https://api.github.com/repos/ToniRib/game_time/releases{/id}","deployments_url":"https://api.github.com/repos/ToniRib/game_time/deployments","created_at":"2016-03-28T20:09:15Z","updated_at":"2016-03-28T20:10:58Z","pushed_at":"2016-03-31T01:31:32Z","git_url":"git://github.com/ToniRib/game_time.git","ssh_url":"git@github.com:ToniRib/game_time.git","clone_url":"https://github.com/ToniRib/game_time.git","svn_url":"https://github.com/ToniRib/game_time","homepage":null,"size":1020,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ToniRib/game_time/pulls/11"},"html":{"href":"https://github.com/ToniRib/game_time/pull/11"},"issue":{"href":"https://api.github.com/repos/ToniRib/game_time/issues/11"},"comments":{"href":"https://api.github.com/repos/ToniRib/game_time/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/ToniRib/game_time/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/ToniRib/game_time/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ToniRib/game_time/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/ToniRib/game_time/statuses/728e4d07cd67c9835770b0ba1a71e5e17e53afb5"}}}}