{"action":"created","comment":{"url":"https://api.github.com/repos/ninjadev/globalgamejam2016/pulls/comments/96098369","pull_request_review_id":16677020,"id":96098369,"diff_hunk":"@@ -259,7 +260,7 @@ Character.prototype.applyFrictionForce = function() {\n   var currentDirection = this.getCurrentDirection();\n   var currentSpeed = Math.sqrt(Math.pow(this.dx, 2) + Math.pow(this.dy, 2));\n   var activeShieldFactor = this.isShieldActive ? 2.2 : 1; // more friction while shield is active\n-  var frictionScalar = - activeShieldFactor * this.breakingCoefficient * Math.pow(currentSpeed * 5 +.15, 2);\n+  var frictionScalar = - activeShieldFactor * Character.breaking_coefficient * Math.pow(currentSpeed * 5 +.15, 2);","path":"game/Character.js","position":32,"original_position":32,"commit_id":"11f233073d699d06a6288570b365176826fdcd55","original_commit_id":"11f233073d699d06a6288570b365176826fdcd55","user":{"login":"aleksanb","id":1413365,"avatar_url":"https://avatars.githubusercontent.com/u/1413365?v=3","gravatar_id":"","url":"https://api.github.com/users/aleksanb","html_url":"https://github.com/aleksanb","followers_url":"https://api.github.com/users/aleksanb/followers","following_url":"https://api.github.com/users/aleksanb/following{/other_user}","gists_url":"https://api.github.com/users/aleksanb/gists{/gist_id}","starred_url":"https://api.github.com/users/aleksanb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleksanb/subscriptions","organizations_url":"https://api.github.com/users/aleksanb/orgs","repos_url":"https://api.github.com/users/aleksanb/repos","events_url":"https://api.github.com/users/aleksanb/events{/privacy}","received_events_url":"https://api.github.com/users/aleksanb/received_events","type":"User","site_admin":false},"body":"Consider extracting all numbers into constants such as ```let FIVE = 5```.","created_at":"2017-01-14T00:11:09Z","updated_at":"2017-01-14T00:12:10Z","html_url":"https://github.com/ninjadev/globalgamejam2016/pull/203#discussion_r96098369","pull_request_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/pulls/203","_links":{"self":{"href":"https://api.github.com/repos/ninjadev/globalgamejam2016/pulls/comments/96098369"},"html":{"href":"https://github.com/ninjadev/globalgamejam2016/pull/203#discussion_r96098369"},"pull_request":{"href":"https://api.github.com/repos/ninjadev/globalgamejam2016/pulls/203"}}},"pull_request":{"url":"https://api.github.com/repos/ninjadev/globalgamejam2016/pulls/203","id":58229336,"html_url":"https://github.com/ninjadev/globalgamejam2016/pull/203","diff_url":"https://github.com/ninjadev/globalgamejam2016/pull/203.diff","patch_url":"https://github.com/ninjadev/globalgamejam2016/pull/203.patch","issue_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/issues/203","number":203,"state":"open","locked":false,"title":"Add chat commands to change game variables","user":{"login":"lionleaf","id":610925,"avatar_url":"https://avatars.githubusercontent.com/u/610925?v=3","gravatar_id":"","url":"https://api.github.com/users/lionleaf","html_url":"https://github.com/lionleaf","followers_url":"https://api.github.com/users/lionleaf/followers","following_url":"https://api.github.com/users/lionleaf/following{/other_user}","gists_url":"https://api.github.com/users/lionleaf/gists{/gist_id}","starred_url":"https://api.github.com/users/lionleaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lionleaf/subscriptions","organizations_url":"https://api.github.com/users/lionleaf/orgs","repos_url":"https://api.github.com/users/lionleaf/repos","events_url":"https://api.github.com/users/lionleaf/events{/privacy}","received_events_url":"https://api.github.com/users/lionleaf/received_events","type":"User","site_admin":false},"body":"Now we can do live tweaking of game variables without server restart. (Thank god we don't have input prediction yet)\n\nSupported commands are: \n\nSet bullet speed to 0.3 game units per tick:\n`!bspeed 0.3`\n\nSet bullet damage to 7 damage per hit (players have 10 hp)\n`!bdmg 7`\n\nSet firing cooldown to 0.5 seconds\n`!firecd 0.5`\n\nSet heatrate to 0.5 per shot (overheats at 1.5 for some reason)\n`!heatrate 0.5`\n\nAnd change the friction coefficient\n`!friction 0.005`\n","created_at":"2016-02-04T01:32:07Z","updated_at":"2017-01-14T00:12:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e0292678e45681365b33167d43c4a26fb2e6a33d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/pulls/203/commits","review_comments_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/pulls/203/comments","review_comment_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/issues/203/comments","statuses_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/statuses/11f233073d699d06a6288570b365176826fdcd55","head":{"label":"ninjadev:cheats","ref":"cheats","sha":"11f233073d699d06a6288570b365176826fdcd55","user":{"login":"ninjadev","id":1992931,"avatar_url":"https://avatars.githubusercontent.com/u/1992931?v=3","gravatar_id":"","url":"https://api.github.com/users/ninjadev","html_url":"https://github.com/ninjadev","followers_url":"https://api.github.com/users/ninjadev/followers","following_url":"https://api.github.com/users/ninjadev/following{/other_user}","gists_url":"https://api.github.com/users/ninjadev/gists{/gist_id}","starred_url":"https://api.github.com/users/ninjadev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ninjadev/subscriptions","organizations_url":"https://api.github.com/users/ninjadev/orgs","repos_url":"https://api.github.com/users/ninjadev/repos","events_url":"https://api.github.com/users/ninjadev/events{/privacy}","received_events_url":"https://api.github.com/users/ninjadev/received_events","type":"Organization","site_admin":false},"repo":{"id":50677868,"name":"globalgamejam2016","full_name":"ninjadev/globalgamejam2016","owner":{"login":"ninjadev","id":1992931,"avatar_url":"https://avatars.githubusercontent.com/u/1992931?v=3","gravatar_id":"","url":"https://api.github.com/users/ninjadev","html_url":"https://github.com/ninjadev","followers_url":"https://api.github.com/users/ninjadev/followers","following_url":"https://api.github.com/users/ninjadev/following{/other_user}","gists_url":"https://api.github.com/users/ninjadev/gists{/gist_id}","starred_url":"https://api.github.com/users/ninjadev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ninjadev/subscriptions","organizations_url":"https://api.github.com/users/ninjadev/orgs","repos_url":"https://api.github.com/users/ninjadev/repos","events_url":"https://api.github.com/users/ninjadev/events{/privacy}","received_events_url":"https://api.github.com/users/ninjadev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ninjadev/globalgamejam2016","description":"This is Ninjadevs contribution to Global Game Jam 2016","fork":false,"url":"https://api.github.com/repos/ninjadev/globalgamejam2016","forks_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/forks","keys_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/teams","hooks_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/hooks","issue_events_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/issues/events{/number}","events_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/events","assignees_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/assignees{/user}","branches_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/branches{/branch}","tags_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/tags","blobs_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/git/refs{/sha}","trees_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/statuses/{sha}","languages_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/languages","stargazers_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/stargazers","contributors_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/contributors","subscribers_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/subscribers","subscription_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/subscription","commits_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/commits{/sha}","git_commits_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/git/commits{/sha}","comments_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/comments{/number}","issue_comment_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/issues/comments{/number}","contents_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/contents/{+path}","compare_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/merges","archive_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/downloads","issues_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/issues{/number}","pulls_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/pulls{/number}","milestones_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/milestones{/number}","notifications_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/labels{/name}","releases_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/releases{/id}","deployments_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/deployments","created_at":"2016-01-29T17:13:21Z","updated_at":"2016-02-03T19:09:38Z","pushed_at":"2016-04-25T10:14:48Z","git_url":"git://github.com/ninjadev/globalgamejam2016.git","ssh_url":"git@github.com:ninjadev/globalgamejam2016.git","clone_url":"https://github.com/ninjadev/globalgamejam2016.git","svn_url":"https://github.com/ninjadev/globalgamejam2016","homepage":"http://shrinequest.com/","size":24856,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":20,"forks":0,"open_issues":20,"watchers":5,"default_branch":"master"}},"base":{"label":"ninjadev:master","ref":"master","sha":"baaa227e9d5b524ef0010f7d4ed60934aa94d375","user":{"login":"ninjadev","id":1992931,"avatar_url":"https://avatars.githubusercontent.com/u/1992931?v=3","gravatar_id":"","url":"https://api.github.com/users/ninjadev","html_url":"https://github.com/ninjadev","followers_url":"https://api.github.com/users/ninjadev/followers","following_url":"https://api.github.com/users/ninjadev/following{/other_user}","gists_url":"https://api.github.com/users/ninjadev/gists{/gist_id}","starred_url":"https://api.github.com/users/ninjadev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ninjadev/subscriptions","organizations_url":"https://api.github.com/users/ninjadev/orgs","repos_url":"https://api.github.com/users/ninjadev/repos","events_url":"https://api.github.com/users/ninjadev/events{/privacy}","received_events_url":"https://api.github.com/users/ninjadev/received_events","type":"Organization","site_admin":false},"repo":{"id":50677868,"name":"globalgamejam2016","full_name":"ninjadev/globalgamejam2016","owner":{"login":"ninjadev","id":1992931,"avatar_url":"https://avatars.githubusercontent.com/u/1992931?v=3","gravatar_id":"","url":"https://api.github.com/users/ninjadev","html_url":"https://github.com/ninjadev","followers_url":"https://api.github.com/users/ninjadev/followers","following_url":"https://api.github.com/users/ninjadev/following{/other_user}","gists_url":"https://api.github.com/users/ninjadev/gists{/gist_id}","starred_url":"https://api.github.com/users/ninjadev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ninjadev/subscriptions","organizations_url":"https://api.github.com/users/ninjadev/orgs","repos_url":"https://api.github.com/users/ninjadev/repos","events_url":"https://api.github.com/users/ninjadev/events{/privacy}","received_events_url":"https://api.github.com/users/ninjadev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ninjadev/globalgamejam2016","description":"This is Ninjadevs contribution to Global Game Jam 2016","fork":false,"url":"https://api.github.com/repos/ninjadev/globalgamejam2016","forks_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/forks","keys_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/teams","hooks_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/hooks","issue_events_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/issues/events{/number}","events_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/events","assignees_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/assignees{/user}","branches_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/branches{/branch}","tags_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/tags","blobs_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/git/refs{/sha}","trees_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/statuses/{sha}","languages_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/languages","stargazers_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/stargazers","contributors_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/contributors","subscribers_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/subscribers","subscription_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/subscription","commits_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/commits{/sha}","git_commits_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/git/commits{/sha}","comments_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/comments{/number}","issue_comment_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/issues/comments{/number}","contents_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/contents/{+path}","compare_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/merges","archive_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/downloads","issues_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/issues{/number}","pulls_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/pulls{/number}","milestones_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/milestones{/number}","notifications_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/labels{/name}","releases_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/releases{/id}","deployments_url":"https://api.github.com/repos/ninjadev/globalgamejam2016/deployments","created_at":"2016-01-29T17:13:21Z","updated_at":"2016-02-03T19:09:38Z","pushed_at":"2016-04-25T10:14:48Z","git_url":"git://github.com/ninjadev/globalgamejam2016.git","ssh_url":"git@github.com:ninjadev/globalgamejam2016.git","clone_url":"https://github.com/ninjadev/globalgamejam2016.git","svn_url":"https://github.com/ninjadev/globalgamejam2016","homepage":"http://shrinequest.com/","size":24856,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":20,"forks":0,"open_issues":20,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ninjadev/globalgamejam2016/pulls/203"},"html":{"href":"https://github.com/ninjadev/globalgamejam2016/pull/203"},"issue":{"href":"https://api.github.com/repos/ninjadev/globalgamejam2016/issues/203"},"comments":{"href":"https://api.github.com/repos/ninjadev/globalgamejam2016/issues/203/comments"},"review_comments":{"href":"https://api.github.com/repos/ninjadev/globalgamejam2016/pulls/203/comments"},"review_comment":{"href":"https://api.github.com/repos/ninjadev/globalgamejam2016/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ninjadev/globalgamejam2016/pulls/203/commits"},"statuses":{"href":"https://api.github.com/repos/ninjadev/globalgamejam2016/statuses/11f233073d699d06a6288570b365176826fdcd55"}}}}
{"actor":{"display_login":"aleksanb"}}