{"action":"created","comment":{"url":"https://api.github.com/repos/dvdfu/hop-potato/pulls/comments/27835362","id":27835362,"diff_hunk":"@@ -0,0 +1,27 @@\n+class = require 'lib.middleclass'\n+Timer = class('Timer')\n+\n+function Timer:initialize()\n+\tfont = love.graphics.newFont(14)\n+\tlove.graphics.setFont(font)\n+\n+\ttime = 30\n+end\n+\n+function Timer:update(dt)\n+\tif time - dt <= 0 then \n+\t\ttime = 0\n+\telse \n+\t\ttime = time - dt\n+\tend\n+end\n+\n+function Timer:draw()\n+\tlove.graphics.printf(string.format(\"%.1f\", time), love.graphics.getWidth() - 34, 10, 25, 'right')","path":"timer.lua","position":20,"original_position":20,"commit_id":"24b9de03035d0fa6704a339467bb139ce6cc6046","original_commit_id":"24b9de03035d0fa6704a339467bb139ce6cc6046","user":{"login":"dvdfu","id":6414395,"avatar_url":"https://avatars.githubusercontent.com/u/6414395?v=3","gravatar_id":"","url":"https://api.github.com/users/dvdfu","html_url":"https://github.com/dvdfu","followers_url":"https://api.github.com/users/dvdfu/followers","following_url":"https://api.github.com/users/dvdfu/following{/other_user}","gists_url":"https://api.github.com/users/dvdfu/gists{/gist_id}","starred_url":"https://api.github.com/users/dvdfu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvdfu/subscriptions","organizations_url":"https://api.github.com/users/dvdfu/orgs","repos_url":"https://api.github.com/users/dvdfu/repos","events_url":"https://api.github.com/users/dvdfu/events{/privacy}","received_events_url":"https://api.github.com/users/dvdfu/received_events","type":"User","site_admin":false},"body":"I think the timer would look best centered at top","created_at":"2015-04-06T22:05:38Z","updated_at":"2015-04-06T22:05:38Z","html_url":"https://github.com/dvdfu/hop-potato/pull/3#discussion_r27835362","pull_request_url":"https://api.github.com/repos/dvdfu/hop-potato/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/dvdfu/hop-potato/pulls/comments/27835362"},"html":{"href":"https://github.com/dvdfu/hop-potato/pull/3#discussion_r27835362"},"pull_request":{"href":"https://api.github.com/repos/dvdfu/hop-potato/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/dvdfu/hop-potato/pulls/3","id":32714048,"html_url":"https://github.com/dvdfu/hop-potato/pull/3","diff_url":"https://github.com/dvdfu/hop-potato/pull/3.diff","patch_url":"https://github.com/dvdfu/hop-potato/pull/3.patch","issue_url":"https://api.github.com/repos/dvdfu/hop-potato/issues/3","number":3,"state":"open","locked":false,"title":"timer and music","user":{"login":"akwpark","id":6004383,"avatar_url":"https://avatars.githubusercontent.com/u/6004383?v=3","gravatar_id":"","url":"https://api.github.com/users/akwpark","html_url":"https://github.com/akwpark","followers_url":"https://api.github.com/users/akwpark/followers","following_url":"https://api.github.com/users/akwpark/following{/other_user}","gists_url":"https://api.github.com/users/akwpark/gists{/gist_id}","starred_url":"https://api.github.com/users/akwpark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akwpark/subscriptions","organizations_url":"https://api.github.com/users/akwpark/orgs","repos_url":"https://api.github.com/users/akwpark/repos","events_url":"https://api.github.com/users/akwpark/events{/privacy}","received_events_url":"https://api.github.com/users/akwpark/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-06T21:37:18Z","updated_at":"2015-04-06T22:05:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cb7a0a274934f92e3bb6f7f3ae600c2a75dbf366","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dvdfu/hop-potato/pulls/3/commits","review_comments_url":"https://api.github.com/repos/dvdfu/hop-potato/pulls/3/comments","review_comment_url":"https://api.github.com/repos/dvdfu/hop-potato/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dvdfu/hop-potato/issues/3/comments","statuses_url":"https://api.github.com/repos/dvdfu/hop-potato/statuses/24b9de03035d0fa6704a339467bb139ce6cc6046","head":{"label":"dvdfu:apark","ref":"apark","sha":"24b9de03035d0fa6704a339467bb139ce6cc6046","user":{"login":"dvdfu","id":6414395,"avatar_url":"https://avatars.githubusercontent.com/u/6414395?v=3","gravatar_id":"","url":"https://api.github.com/users/dvdfu","html_url":"https://github.com/dvdfu","followers_url":"https://api.github.com/users/dvdfu/followers","following_url":"https://api.github.com/users/dvdfu/following{/other_user}","gists_url":"https://api.github.com/users/dvdfu/gists{/gist_id}","starred_url":"https://api.github.com/users/dvdfu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvdfu/subscriptions","organizations_url":"https://api.github.com/users/dvdfu/orgs","repos_url":"https://api.github.com/users/dvdfu/repos","events_url":"https://api.github.com/users/dvdfu/events{/privacy}","received_events_url":"https://api.github.com/users/dvdfu/received_events","type":"User","site_admin":false},"repo":{"id":33499661,"name":"hop-potato","full_name":"dvdfu/hop-potato","owner":{"login":"dvdfu","id":6414395,"avatar_url":"https://avatars.githubusercontent.com/u/6414395?v=3","gravatar_id":"","url":"https://api.github.com/users/dvdfu","html_url":"https://github.com/dvdfu","followers_url":"https://api.github.com/users/dvdfu/followers","following_url":"https://api.github.com/users/dvdfu/following{/other_user}","gists_url":"https://api.github.com/users/dvdfu/gists{/gist_id}","starred_url":"https://api.github.com/users/dvdfu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvdfu/subscriptions","organizations_url":"https://api.github.com/users/dvdfu/orgs","repos_url":"https://api.github.com/users/dvdfu/repos","events_url":"https://api.github.com/users/dvdfu/events{/privacy}","received_events_url":"https://api.github.com/users/dvdfu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dvdfu/hop-potato","description":"","fork":false,"url":"https://api.github.com/repos/dvdfu/hop-potato","forks_url":"https://api.github.com/repos/dvdfu/hop-potato/forks","keys_url":"https://api.github.com/repos/dvdfu/hop-potato/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dvdfu/hop-potato/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dvdfu/hop-potato/teams","hooks_url":"https://api.github.com/repos/dvdfu/hop-potato/hooks","issue_events_url":"https://api.github.com/repos/dvdfu/hop-potato/issues/events{/number}","events_url":"https://api.github.com/repos/dvdfu/hop-potato/events","assignees_url":"https://api.github.com/repos/dvdfu/hop-potato/assignees{/user}","branches_url":"https://api.github.com/repos/dvdfu/hop-potato/branches{/branch}","tags_url":"https://api.github.com/repos/dvdfu/hop-potato/tags","blobs_url":"https://api.github.com/repos/dvdfu/hop-potato/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dvdfu/hop-potato/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dvdfu/hop-potato/git/refs{/sha}","trees_url":"https://api.github.com/repos/dvdfu/hop-potato/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dvdfu/hop-potato/statuses/{sha}","languages_url":"https://api.github.com/repos/dvdfu/hop-potato/languages","stargazers_url":"https://api.github.com/repos/dvdfu/hop-potato/stargazers","contributors_url":"https://api.github.com/repos/dvdfu/hop-potato/contributors","subscribers_url":"https://api.github.com/repos/dvdfu/hop-potato/subscribers","subscription_url":"https://api.github.com/repos/dvdfu/hop-potato/subscription","commits_url":"https://api.github.com/repos/dvdfu/hop-potato/commits{/sha}","git_commits_url":"https://api.github.com/repos/dvdfu/hop-potato/git/commits{/sha}","comments_url":"https://api.github.com/repos/dvdfu/hop-potato/comments{/number}","issue_comment_url":"https://api.github.com/repos/dvdfu/hop-potato/issues/comments{/number}","contents_url":"https://api.github.com/repos/dvdfu/hop-potato/contents/{+path}","compare_url":"https://api.github.com/repos/dvdfu/hop-potato/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dvdfu/hop-potato/merges","archive_url":"https://api.github.com/repos/dvdfu/hop-potato/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dvdfu/hop-potato/downloads","issues_url":"https://api.github.com/repos/dvdfu/hop-potato/issues{/number}","pulls_url":"https://api.github.com/repos/dvdfu/hop-potato/pulls{/number}","milestones_url":"https://api.github.com/repos/dvdfu/hop-potato/milestones{/number}","notifications_url":"https://api.github.com/repos/dvdfu/hop-potato/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dvdfu/hop-potato/labels{/name}","releases_url":"https://api.github.com/repos/dvdfu/hop-potato/releases{/id}","created_at":"2015-04-06T19:01:12Z","updated_at":"2015-04-06T21:20:04Z","pushed_at":"2015-04-06T22:00:56Z","git_url":"git://github.com/dvdfu/hop-potato.git","ssh_url":"git@github.com:dvdfu/hop-potato.git","clone_url":"https://github.com/dvdfu/hop-potato.git","svn_url":"https://github.com/dvdfu/hop-potato","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Lua","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"dvdfu:master","ref":"master","sha":"db021eaa95796230d7c9b922c0acc40af74f52ff","user":{"login":"dvdfu","id":6414395,"avatar_url":"https://avatars.githubusercontent.com/u/6414395?v=3","gravatar_id":"","url":"https://api.github.com/users/dvdfu","html_url":"https://github.com/dvdfu","followers_url":"https://api.github.com/users/dvdfu/followers","following_url":"https://api.github.com/users/dvdfu/following{/other_user}","gists_url":"https://api.github.com/users/dvdfu/gists{/gist_id}","starred_url":"https://api.github.com/users/dvdfu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvdfu/subscriptions","organizations_url":"https://api.github.com/users/dvdfu/orgs","repos_url":"https://api.github.com/users/dvdfu/repos","events_url":"https://api.github.com/users/dvdfu/events{/privacy}","received_events_url":"https://api.github.com/users/dvdfu/received_events","type":"User","site_admin":false},"repo":{"id":33499661,"name":"hop-potato","full_name":"dvdfu/hop-potato","owner":{"login":"dvdfu","id":6414395,"avatar_url":"https://avatars.githubusercontent.com/u/6414395?v=3","gravatar_id":"","url":"https://api.github.com/users/dvdfu","html_url":"https://github.com/dvdfu","followers_url":"https://api.github.com/users/dvdfu/followers","following_url":"https://api.github.com/users/dvdfu/following{/other_user}","gists_url":"https://api.github.com/users/dvdfu/gists{/gist_id}","starred_url":"https://api.github.com/users/dvdfu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvdfu/subscriptions","organizations_url":"https://api.github.com/users/dvdfu/orgs","repos_url":"https://api.github.com/users/dvdfu/repos","events_url":"https://api.github.com/users/dvdfu/events{/privacy}","received_events_url":"https://api.github.com/users/dvdfu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dvdfu/hop-potato","description":"","fork":false,"url":"https://api.github.com/repos/dvdfu/hop-potato","forks_url":"https://api.github.com/repos/dvdfu/hop-potato/forks","keys_url":"https://api.github.com/repos/dvdfu/hop-potato/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dvdfu/hop-potato/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dvdfu/hop-potato/teams","hooks_url":"https://api.github.com/repos/dvdfu/hop-potato/hooks","issue_events_url":"https://api.github.com/repos/dvdfu/hop-potato/issues/events{/number}","events_url":"https://api.github.com/repos/dvdfu/hop-potato/events","assignees_url":"https://api.github.com/repos/dvdfu/hop-potato/assignees{/user}","branches_url":"https://api.github.com/repos/dvdfu/hop-potato/branches{/branch}","tags_url":"https://api.github.com/repos/dvdfu/hop-potato/tags","blobs_url":"https://api.github.com/repos/dvdfu/hop-potato/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dvdfu/hop-potato/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dvdfu/hop-potato/git/refs{/sha}","trees_url":"https://api.github.com/repos/dvdfu/hop-potato/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dvdfu/hop-potato/statuses/{sha}","languages_url":"https://api.github.com/repos/dvdfu/hop-potato/languages","stargazers_url":"https://api.github.com/repos/dvdfu/hop-potato/stargazers","contributors_url":"https://api.github.com/repos/dvdfu/hop-potato/contributors","subscribers_url":"https://api.github.com/repos/dvdfu/hop-potato/subscribers","subscription_url":"https://api.github.com/repos/dvdfu/hop-potato/subscription","commits_url":"https://api.github.com/repos/dvdfu/hop-potato/commits{/sha}","git_commits_url":"https://api.github.com/repos/dvdfu/hop-potato/git/commits{/sha}","comments_url":"https://api.github.com/repos/dvdfu/hop-potato/comments{/number}","issue_comment_url":"https://api.github.com/repos/dvdfu/hop-potato/issues/comments{/number}","contents_url":"https://api.github.com/repos/dvdfu/hop-potato/contents/{+path}","compare_url":"https://api.github.com/repos/dvdfu/hop-potato/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dvdfu/hop-potato/merges","archive_url":"https://api.github.com/repos/dvdfu/hop-potato/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dvdfu/hop-potato/downloads","issues_url":"https://api.github.com/repos/dvdfu/hop-potato/issues{/number}","pulls_url":"https://api.github.com/repos/dvdfu/hop-potato/pulls{/number}","milestones_url":"https://api.github.com/repos/dvdfu/hop-potato/milestones{/number}","notifications_url":"https://api.github.com/repos/dvdfu/hop-potato/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dvdfu/hop-potato/labels{/name}","releases_url":"https://api.github.com/repos/dvdfu/hop-potato/releases{/id}","created_at":"2015-04-06T19:01:12Z","updated_at":"2015-04-06T21:20:04Z","pushed_at":"2015-04-06T22:00:56Z","git_url":"git://github.com/dvdfu/hop-potato.git","ssh_url":"git@github.com:dvdfu/hop-potato.git","clone_url":"https://github.com/dvdfu/hop-potato.git","svn_url":"https://github.com/dvdfu/hop-potato","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Lua","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dvdfu/hop-potato/pulls/3"},"html":{"href":"https://github.com/dvdfu/hop-potato/pull/3"},"issue":{"href":"https://api.github.com/repos/dvdfu/hop-potato/issues/3"},"comments":{"href":"https://api.github.com/repos/dvdfu/hop-potato/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/dvdfu/hop-potato/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/dvdfu/hop-potato/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dvdfu/hop-potato/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/dvdfu/hop-potato/statuses/24b9de03035d0fa6704a339467bb139ce6cc6046"}}}}