{"action":"created","comment":{"url":"https://api.github.com/repos/jensj12/MeesGame/pulls/comments/92470070","pull_request_review_id":12986690,"id":92470070,"diff_hunk":"@@ -210,26 +239,38 @@ public HumanPlayer(Level level, TileField tileField, Point location, int layer =\n \n         public override void HandleInput(InputHelper inputHelper)\n         {\n-            if (inputHelper.IsKeyDown(Keys.W) || inputHelper.IsKeyDown(Keys.Up))\n-            {\n-                nextAction = NORTH;\n-            }\n-            else if (inputHelper.IsKeyDown(Keys.D) || inputHelper.IsKeyDown(Keys.Right))\n-            {\n-                nextAction = EAST;\n-            }\n-            else if (inputHelper.IsKeyDown(Keys.S) || inputHelper.IsKeyDown(Keys.Down))\n-            {\n-                nextAction = SOUTH;\n-            }\n-            else if (inputHelper.IsKeyDown(Keys.A) || inputHelper.IsKeyDown(Keys.Left))\n+            if (this.currentlyMoving == false)\n             {\n-                nextAction = WEST;\n-            }\n-            else\n-            {\n-                nextAction = NONE;\n+                if (inputHelper.IsKeyDown(Keys.W) || inputHelper.IsKeyDown(Keys.Up))\n+                {\n+                    nextAction = NORTH;\n+                    //this.sprite = new SpriteSheet(\"playerup@4\", 0);\n+                    walkAnimation(\"playerup@4\");","path":"MeesGame/Gameplay/GameObjects/Player.cs","position":78,"original_position":78,"commit_id":"7c381e2fbce917ccb89ebc7d0edce6c9c3846a63","original_commit_id":"7c381e2fbce917ccb89ebc7d0edce6c9c3846a63","user":{"login":"jensj12","id":13868449,"avatar_url":"https://avatars.githubusercontent.com/u/13868449?v=3","gravatar_id":"","url":"https://api.github.com/users/jensj12","html_url":"https://github.com/jensj12","followers_url":"https://api.github.com/users/jensj12/followers","following_url":"https://api.github.com/users/jensj12/following{/other_user}","gists_url":"https://api.github.com/users/jensj12/gists{/gist_id}","starred_url":"https://api.github.com/users/jensj12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jensj12/subscriptions","organizations_url":"https://api.github.com/users/jensj12/orgs","repos_url":"https://api.github.com/users/jensj12/repos","events_url":"https://api.github.com/users/jensj12/events{/privacy}","received_events_url":"https://api.github.com/users/jensj12/received_events","type":"User","site_admin":false},"body":"You want to start the animation when the timedplayer starts moving, not when handling input. Makes it work for AI as well.","created_at":"2016-12-14T19:30:45Z","updated_at":"2016-12-14T19:41:28Z","html_url":"https://github.com/jensj12/MeesGame/pull/67#discussion_r92470070","pull_request_url":"https://api.github.com/repos/jensj12/MeesGame/pulls/67","_links":{"self":{"href":"https://api.github.com/repos/jensj12/MeesGame/pulls/comments/92470070"},"html":{"href":"https://github.com/jensj12/MeesGame/pull/67#discussion_r92470070"},"pull_request":{"href":"https://api.github.com/repos/jensj12/MeesGame/pulls/67"}}},"pull_request":{"url":"https://api.github.com/repos/jensj12/MeesGame/pulls/67","id":98015815,"html_url":"https://github.com/jensj12/MeesGame/pull/67","diff_url":"https://github.com/jensj12/MeesGame/pull/67.diff","patch_url":"https://github.com/jensj12/MeesGame/pull/67.patch","issue_url":"https://api.github.com/repos/jensj12/MeesGame/issues/67","number":67,"state":"open","locked":false,"title":"Player animations","user":{"login":"jorisBarkema","id":20751395,"avatar_url":"https://avatars.githubusercontent.com/u/20751395?v=3","gravatar_id":"","url":"https://api.github.com/users/jorisBarkema","html_url":"https://github.com/jorisBarkema","followers_url":"https://api.github.com/users/jorisBarkema/followers","following_url":"https://api.github.com/users/jorisBarkema/following{/other_user}","gists_url":"https://api.github.com/users/jorisBarkema/gists{/gist_id}","starred_url":"https://api.github.com/users/jorisBarkema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorisBarkema/subscriptions","organizations_url":"https://api.github.com/users/jorisBarkema/orgs","repos_url":"https://api.github.com/users/jorisBarkema/repos","events_url":"https://api.github.com/users/jorisBarkema/events{/privacy}","received_events_url":"https://api.github.com/users/jorisBarkema/received_events","type":"User","site_admin":false},"body":"the player now faces the direction he's walked last, and while walking he has a walking animation.","created_at":"2016-12-14T19:10:36Z","updated_at":"2016-12-14T19:41:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jensj12/MeesGame/pulls/67/commits","review_comments_url":"https://api.github.com/repos/jensj12/MeesGame/pulls/67/comments","review_comment_url":"https://api.github.com/repos/jensj12/MeesGame/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jensj12/MeesGame/issues/67/comments","statuses_url":"https://api.github.com/repos/jensj12/MeesGame/statuses/7c381e2fbce917ccb89ebc7d0edce6c9c3846a63","head":{"label":"jensj12:player-animations","ref":"player-animations","sha":"7c381e2fbce917ccb89ebc7d0edce6c9c3846a63","user":{"login":"jensj12","id":13868449,"avatar_url":"https://avatars.githubusercontent.com/u/13868449?v=3","gravatar_id":"","url":"https://api.github.com/users/jensj12","html_url":"https://github.com/jensj12","followers_url":"https://api.github.com/users/jensj12/followers","following_url":"https://api.github.com/users/jensj12/following{/other_user}","gists_url":"https://api.github.com/users/jensj12/gists{/gist_id}","starred_url":"https://api.github.com/users/jensj12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jensj12/subscriptions","organizations_url":"https://api.github.com/users/jensj12/orgs","repos_url":"https://api.github.com/users/jensj12/repos","events_url":"https://api.github.com/users/jensj12/events{/privacy}","received_events_url":"https://api.github.com/users/jensj12/received_events","type":"User","site_admin":false},"repo":{"id":73915898,"name":"MeesGame","full_name":"jensj12/MeesGame","owner":{"login":"jensj12","id":13868449,"avatar_url":"https://avatars.githubusercontent.com/u/13868449?v=3","gravatar_id":"","url":"https://api.github.com/users/jensj12","html_url":"https://github.com/jensj12","followers_url":"https://api.github.com/users/jensj12/followers","following_url":"https://api.github.com/users/jensj12/following{/other_user}","gists_url":"https://api.github.com/users/jensj12/gists{/gist_id}","starred_url":"https://api.github.com/users/jensj12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jensj12/subscriptions","organizations_url":"https://api.github.com/users/jensj12/orgs","repos_url":"https://api.github.com/users/jensj12/repos","events_url":"https://api.github.com/users/jensj12/events{/privacy}","received_events_url":"https://api.github.com/users/jensj12/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jensj12/MeesGame","description":"The something and only game without a number!","fork":false,"url":"https://api.github.com/repos/jensj12/MeesGame","forks_url":"https://api.github.com/repos/jensj12/MeesGame/forks","keys_url":"https://api.github.com/repos/jensj12/MeesGame/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jensj12/MeesGame/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jensj12/MeesGame/teams","hooks_url":"https://api.github.com/repos/jensj12/MeesGame/hooks","issue_events_url":"https://api.github.com/repos/jensj12/MeesGame/issues/events{/number}","events_url":"https://api.github.com/repos/jensj12/MeesGame/events","assignees_url":"https://api.github.com/repos/jensj12/MeesGame/assignees{/user}","branches_url":"https://api.github.com/repos/jensj12/MeesGame/branches{/branch}","tags_url":"https://api.github.com/repos/jensj12/MeesGame/tags","blobs_url":"https://api.github.com/repos/jensj12/MeesGame/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jensj12/MeesGame/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jensj12/MeesGame/git/refs{/sha}","trees_url":"https://api.github.com/repos/jensj12/MeesGame/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jensj12/MeesGame/statuses/{sha}","languages_url":"https://api.github.com/repos/jensj12/MeesGame/languages","stargazers_url":"https://api.github.com/repos/jensj12/MeesGame/stargazers","contributors_url":"https://api.github.com/repos/jensj12/MeesGame/contributors","subscribers_url":"https://api.github.com/repos/jensj12/MeesGame/subscribers","subscription_url":"https://api.github.com/repos/jensj12/MeesGame/subscription","commits_url":"https://api.github.com/repos/jensj12/MeesGame/commits{/sha}","git_commits_url":"https://api.github.com/repos/jensj12/MeesGame/git/commits{/sha}","comments_url":"https://api.github.com/repos/jensj12/MeesGame/comments{/number}","issue_comment_url":"https://api.github.com/repos/jensj12/MeesGame/issues/comments{/number}","contents_url":"https://api.github.com/repos/jensj12/MeesGame/contents/{+path}","compare_url":"https://api.github.com/repos/jensj12/MeesGame/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jensj12/MeesGame/merges","archive_url":"https://api.github.com/repos/jensj12/MeesGame/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jensj12/MeesGame/downloads","issues_url":"https://api.github.com/repos/jensj12/MeesGame/issues{/number}","pulls_url":"https://api.github.com/repos/jensj12/MeesGame/pulls{/number}","milestones_url":"https://api.github.com/repos/jensj12/MeesGame/milestones{/number}","notifications_url":"https://api.github.com/repos/jensj12/MeesGame/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jensj12/MeesGame/labels{/name}","releases_url":"https://api.github.com/repos/jensj12/MeesGame/releases{/id}","deployments_url":"https://api.github.com/repos/jensj12/MeesGame/deployments","created_at":"2016-11-16T11:59:12Z","updated_at":"2016-11-16T12:00:44Z","pushed_at":"2016-12-14T19:10:44Z","git_url":"git://github.com/jensj12/MeesGame.git","ssh_url":"git@github.com:jensj12/MeesGame.git","clone_url":"https://github.com/jensj12/MeesGame.git","svn_url":"https://github.com/jensj12/MeesGame","homepage":null,"size":323,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":19,"forks":2,"open_issues":19,"watchers":0,"default_branch":"master"}},"base":{"label":"jensj12:master","ref":"master","sha":"37c9567a6919808cd071e77ca9e59928dadaad82","user":{"login":"jensj12","id":13868449,"avatar_url":"https://avatars.githubusercontent.com/u/13868449?v=3","gravatar_id":"","url":"https://api.github.com/users/jensj12","html_url":"https://github.com/jensj12","followers_url":"https://api.github.com/users/jensj12/followers","following_url":"https://api.github.com/users/jensj12/following{/other_user}","gists_url":"https://api.github.com/users/jensj12/gists{/gist_id}","starred_url":"https://api.github.com/users/jensj12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jensj12/subscriptions","organizations_url":"https://api.github.com/users/jensj12/orgs","repos_url":"https://api.github.com/users/jensj12/repos","events_url":"https://api.github.com/users/jensj12/events{/privacy}","received_events_url":"https://api.github.com/users/jensj12/received_events","type":"User","site_admin":false},"repo":{"id":73915898,"name":"MeesGame","full_name":"jensj12/MeesGame","owner":{"login":"jensj12","id":13868449,"avatar_url":"https://avatars.githubusercontent.com/u/13868449?v=3","gravatar_id":"","url":"https://api.github.com/users/jensj12","html_url":"https://github.com/jensj12","followers_url":"https://api.github.com/users/jensj12/followers","following_url":"https://api.github.com/users/jensj12/following{/other_user}","gists_url":"https://api.github.com/users/jensj12/gists{/gist_id}","starred_url":"https://api.github.com/users/jensj12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jensj12/subscriptions","organizations_url":"https://api.github.com/users/jensj12/orgs","repos_url":"https://api.github.com/users/jensj12/repos","events_url":"https://api.github.com/users/jensj12/events{/privacy}","received_events_url":"https://api.github.com/users/jensj12/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jensj12/MeesGame","description":"The something and only game without a number!","fork":false,"url":"https://api.github.com/repos/jensj12/MeesGame","forks_url":"https://api.github.com/repos/jensj12/MeesGame/forks","keys_url":"https://api.github.com/repos/jensj12/MeesGame/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jensj12/MeesGame/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jensj12/MeesGame/teams","hooks_url":"https://api.github.com/repos/jensj12/MeesGame/hooks","issue_events_url":"https://api.github.com/repos/jensj12/MeesGame/issues/events{/number}","events_url":"https://api.github.com/repos/jensj12/MeesGame/events","assignees_url":"https://api.github.com/repos/jensj12/MeesGame/assignees{/user}","branches_url":"https://api.github.com/repos/jensj12/MeesGame/branches{/branch}","tags_url":"https://api.github.com/repos/jensj12/MeesGame/tags","blobs_url":"https://api.github.com/repos/jensj12/MeesGame/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jensj12/MeesGame/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jensj12/MeesGame/git/refs{/sha}","trees_url":"https://api.github.com/repos/jensj12/MeesGame/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jensj12/MeesGame/statuses/{sha}","languages_url":"https://api.github.com/repos/jensj12/MeesGame/languages","stargazers_url":"https://api.github.com/repos/jensj12/MeesGame/stargazers","contributors_url":"https://api.github.com/repos/jensj12/MeesGame/contributors","subscribers_url":"https://api.github.com/repos/jensj12/MeesGame/subscribers","subscription_url":"https://api.github.com/repos/jensj12/MeesGame/subscription","commits_url":"https://api.github.com/repos/jensj12/MeesGame/commits{/sha}","git_commits_url":"https://api.github.com/repos/jensj12/MeesGame/git/commits{/sha}","comments_url":"https://api.github.com/repos/jensj12/MeesGame/comments{/number}","issue_comment_url":"https://api.github.com/repos/jensj12/MeesGame/issues/comments{/number}","contents_url":"https://api.github.com/repos/jensj12/MeesGame/contents/{+path}","compare_url":"https://api.github.com/repos/jensj12/MeesGame/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jensj12/MeesGame/merges","archive_url":"https://api.github.com/repos/jensj12/MeesGame/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jensj12/MeesGame/downloads","issues_url":"https://api.github.com/repos/jensj12/MeesGame/issues{/number}","pulls_url":"https://api.github.com/repos/jensj12/MeesGame/pulls{/number}","milestones_url":"https://api.github.com/repos/jensj12/MeesGame/milestones{/number}","notifications_url":"https://api.github.com/repos/jensj12/MeesGame/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jensj12/MeesGame/labels{/name}","releases_url":"https://api.github.com/repos/jensj12/MeesGame/releases{/id}","deployments_url":"https://api.github.com/repos/jensj12/MeesGame/deployments","created_at":"2016-11-16T11:59:12Z","updated_at":"2016-11-16T12:00:44Z","pushed_at":"2016-12-14T19:10:44Z","git_url":"git://github.com/jensj12/MeesGame.git","ssh_url":"git@github.com:jensj12/MeesGame.git","clone_url":"https://github.com/jensj12/MeesGame.git","svn_url":"https://github.com/jensj12/MeesGame","homepage":null,"size":323,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":19,"forks":2,"open_issues":19,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jensj12/MeesGame/pulls/67"},"html":{"href":"https://github.com/jensj12/MeesGame/pull/67"},"issue":{"href":"https://api.github.com/repos/jensj12/MeesGame/issues/67"},"comments":{"href":"https://api.github.com/repos/jensj12/MeesGame/issues/67/comments"},"review_comments":{"href":"https://api.github.com/repos/jensj12/MeesGame/pulls/67/comments"},"review_comment":{"href":"https://api.github.com/repos/jensj12/MeesGame/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jensj12/MeesGame/pulls/67/commits"},"statuses":{"href":"https://api.github.com/repos/jensj12/MeesGame/statuses/7c381e2fbce917ccb89ebc7d0edce6c9c3846a63"}}}}
{"actor":{"display_login":"jensj12"}}