{"action":"created","comment":{"url":"https://api.github.com/repos/tsu-trpo/snake/pulls/comments/155825315","pull_request_review_id":82208878,"id":155825315,"diff_hunk":"@@ -0,0 +1,45 @@\n+#include \"Snake.h\"\n+\n+Layer* Snake::createSnake()\n+{\n+    auto layer = Snake::create();\n+\n+    return layer;\n+}\n+\n+bool Snake::init()\n+{\n+    if(!Layer::init())\n+    {\n+        return  false;\n+    }\n+\n+    auto screenSize = Director::getInstance()->getVisibleSize();\n+    Vec2 origin = Director::getInstance()->getVisibleOrigin();\n+\n+    head = PartSnake::createPartSnake(\"SnakeHead.png\");\n+    head->setPosition(Vec2(origin.x + screenSize.width * 0.5, origin.y + screenSize.height * 0.5));\n+    this->addChild(head);\n+\n+    int lenght = 3;","path":"Snake/Snake/Classes/Snake.cpp","position":24,"original_position":24,"commit_id":"8cd725dcc69e9d80e79f988049a7e82c1600712e","original_commit_id":"8cd725dcc69e9d80e79f988049a7e82c1600712e","user":{"login":"vosafonov","id":24459275,"avatar_url":"https://avatars2.githubusercontent.com/u/24459275?v=4","gravatar_id":"","url":"https://api.github.com/users/vosafonov","html_url":"https://github.com/vosafonov","followers_url":"https://api.github.com/users/vosafonov/followers","following_url":"https://api.github.com/users/vosafonov/following{/other_user}","gists_url":"https://api.github.com/users/vosafonov/gists{/gist_id}","starred_url":"https://api.github.com/users/vosafonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vosafonov/subscriptions","organizations_url":"https://api.github.com/users/vosafonov/orgs","repos_url":"https://api.github.com/users/vosafonov/repos","events_url":"https://api.github.com/users/vosafonov/events{/privacy}","received_events_url":"https://api.github.com/users/vosafonov/received_events","type":"User","site_admin":false},"body":"Опечатка. `lenght => length`.","created_at":"2017-12-08T17:02:41Z","updated_at":"2017-12-08T17:29:55Z","html_url":"https://github.com/tsu-trpo/snake/pull/3#discussion_r155825315","pull_request_url":"https://api.github.com/repos/tsu-trpo/snake/pulls/3","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/tsu-trpo/snake/pulls/comments/155825315"},"html":{"href":"https://github.com/tsu-trpo/snake/pull/3#discussion_r155825315"},"pull_request":{"href":"https://api.github.com/repos/tsu-trpo/snake/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/tsu-trpo/snake/pulls/3","id":157193116,"html_url":"https://github.com/tsu-trpo/snake/pull/3","diff_url":"https://github.com/tsu-trpo/snake/pull/3.diff","patch_url":"https://github.com/tsu-trpo/snake/pull/3.patch","issue_url":"https://api.github.com/repos/tsu-trpo/snake/issues/3","number":3,"state":"open","locked":false,"title":"[+] PartSnake,Snake","user":{"login":"TarataichenkoDmitri","id":32219823,"avatar_url":"https://avatars0.githubusercontent.com/u/32219823?v=4","gravatar_id":"","url":"https://api.github.com/users/TarataichenkoDmitri","html_url":"https://github.com/TarataichenkoDmitri","followers_url":"https://api.github.com/users/TarataichenkoDmitri/followers","following_url":"https://api.github.com/users/TarataichenkoDmitri/following{/other_user}","gists_url":"https://api.github.com/users/TarataichenkoDmitri/gists{/gist_id}","starred_url":"https://api.github.com/users/TarataichenkoDmitri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TarataichenkoDmitri/subscriptions","organizations_url":"https://api.github.com/users/TarataichenkoDmitri/orgs","repos_url":"https://api.github.com/users/TarataichenkoDmitri/repos","events_url":"https://api.github.com/users/TarataichenkoDmitri/events{/privacy}","received_events_url":"https://api.github.com/users/TarataichenkoDmitri/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-12-08T09:00:46Z","updated_at":"2017-12-08T17:29:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b863cc347d1707e896a9a89b3c2c953facfe6e9d","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/tsu-trpo/snake/pulls/3/commits","review_comments_url":"https://api.github.com/repos/tsu-trpo/snake/pulls/3/comments","review_comment_url":"https://api.github.com/repos/tsu-trpo/snake/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tsu-trpo/snake/issues/3/comments","statuses_url":"https://api.github.com/repos/tsu-trpo/snake/statuses/8cd725dcc69e9d80e79f988049a7e82c1600712e","head":{"label":"tsu-trpo:snake","ref":"snake","sha":"8cd725dcc69e9d80e79f988049a7e82c1600712e","user":{"login":"tsu-trpo","id":31855094,"avatar_url":"https://avatars3.githubusercontent.com/u/31855094?v=4","gravatar_id":"","url":"https://api.github.com/users/tsu-trpo","html_url":"https://github.com/tsu-trpo","followers_url":"https://api.github.com/users/tsu-trpo/followers","following_url":"https://api.github.com/users/tsu-trpo/following{/other_user}","gists_url":"https://api.github.com/users/tsu-trpo/gists{/gist_id}","starred_url":"https://api.github.com/users/tsu-trpo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsu-trpo/subscriptions","organizations_url":"https://api.github.com/users/tsu-trpo/orgs","repos_url":"https://api.github.com/users/tsu-trpo/repos","events_url":"https://api.github.com/users/tsu-trpo/events{/privacy}","received_events_url":"https://api.github.com/users/tsu-trpo/received_events","type":"Organization","site_admin":false},"repo":{"id":105288611,"name":"snake","full_name":"tsu-trpo/snake","owner":{"login":"tsu-trpo","id":31855094,"avatar_url":"https://avatars3.githubusercontent.com/u/31855094?v=4","gravatar_id":"","url":"https://api.github.com/users/tsu-trpo","html_url":"https://github.com/tsu-trpo","followers_url":"https://api.github.com/users/tsu-trpo/followers","following_url":"https://api.github.com/users/tsu-trpo/following{/other_user}","gists_url":"https://api.github.com/users/tsu-trpo/gists{/gist_id}","starred_url":"https://api.github.com/users/tsu-trpo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsu-trpo/subscriptions","organizations_url":"https://api.github.com/users/tsu-trpo/orgs","repos_url":"https://api.github.com/users/tsu-trpo/repos","events_url":"https://api.github.com/users/tsu-trpo/events{/privacy}","received_events_url":"https://api.github.com/users/tsu-trpo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tsu-trpo/snake","description":null,"fork":false,"url":"https://api.github.com/repos/tsu-trpo/snake","forks_url":"https://api.github.com/repos/tsu-trpo/snake/forks","keys_url":"https://api.github.com/repos/tsu-trpo/snake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tsu-trpo/snake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tsu-trpo/snake/teams","hooks_url":"https://api.github.com/repos/tsu-trpo/snake/hooks","issue_events_url":"https://api.github.com/repos/tsu-trpo/snake/issues/events{/number}","events_url":"https://api.github.com/repos/tsu-trpo/snake/events","assignees_url":"https://api.github.com/repos/tsu-trpo/snake/assignees{/user}","branches_url":"https://api.github.com/repos/tsu-trpo/snake/branches{/branch}","tags_url":"https://api.github.com/repos/tsu-trpo/snake/tags","blobs_url":"https://api.github.com/repos/tsu-trpo/snake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tsu-trpo/snake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tsu-trpo/snake/git/refs{/sha}","trees_url":"https://api.github.com/repos/tsu-trpo/snake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tsu-trpo/snake/statuses/{sha}","languages_url":"https://api.github.com/repos/tsu-trpo/snake/languages","stargazers_url":"https://api.github.com/repos/tsu-trpo/snake/stargazers","contributors_url":"https://api.github.com/repos/tsu-trpo/snake/contributors","subscribers_url":"https://api.github.com/repos/tsu-trpo/snake/subscribers","subscription_url":"https://api.github.com/repos/tsu-trpo/snake/subscription","commits_url":"https://api.github.com/repos/tsu-trpo/snake/commits{/sha}","git_commits_url":"https://api.github.com/repos/tsu-trpo/snake/git/commits{/sha}","comments_url":"https://api.github.com/repos/tsu-trpo/snake/comments{/number}","issue_comment_url":"https://api.github.com/repos/tsu-trpo/snake/issues/comments{/number}","contents_url":"https://api.github.com/repos/tsu-trpo/snake/contents/{+path}","compare_url":"https://api.github.com/repos/tsu-trpo/snake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tsu-trpo/snake/merges","archive_url":"https://api.github.com/repos/tsu-trpo/snake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tsu-trpo/snake/downloads","issues_url":"https://api.github.com/repos/tsu-trpo/snake/issues{/number}","pulls_url":"https://api.github.com/repos/tsu-trpo/snake/pulls{/number}","milestones_url":"https://api.github.com/repos/tsu-trpo/snake/milestones{/number}","notifications_url":"https://api.github.com/repos/tsu-trpo/snake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tsu-trpo/snake/labels{/name}","releases_url":"https://api.github.com/repos/tsu-trpo/snake/releases{/id}","deployments_url":"https://api.github.com/repos/tsu-trpo/snake/deployments","created_at":"2017-09-29T15:32:13Z","updated_at":"2017-12-02T10:58:10Z","pushed_at":"2017-12-08T12:37:57Z","git_url":"git://github.com/tsu-trpo/snake.git","ssh_url":"git@github.com:tsu-trpo/snake.git","clone_url":"https://github.com/tsu-trpo/snake.git","svn_url":"https://github.com/tsu-trpo/snake","homepage":null,"size":118797,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"tsu-trpo:master","ref":"master","sha":"6503eba490a3b3c8fc6c23972092972e6e829513","user":{"login":"tsu-trpo","id":31855094,"avatar_url":"https://avatars3.githubusercontent.com/u/31855094?v=4","gravatar_id":"","url":"https://api.github.com/users/tsu-trpo","html_url":"https://github.com/tsu-trpo","followers_url":"https://api.github.com/users/tsu-trpo/followers","following_url":"https://api.github.com/users/tsu-trpo/following{/other_user}","gists_url":"https://api.github.com/users/tsu-trpo/gists{/gist_id}","starred_url":"https://api.github.com/users/tsu-trpo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsu-trpo/subscriptions","organizations_url":"https://api.github.com/users/tsu-trpo/orgs","repos_url":"https://api.github.com/users/tsu-trpo/repos","events_url":"https://api.github.com/users/tsu-trpo/events{/privacy}","received_events_url":"https://api.github.com/users/tsu-trpo/received_events","type":"Organization","site_admin":false},"repo":{"id":105288611,"name":"snake","full_name":"tsu-trpo/snake","owner":{"login":"tsu-trpo","id":31855094,"avatar_url":"https://avatars3.githubusercontent.com/u/31855094?v=4","gravatar_id":"","url":"https://api.github.com/users/tsu-trpo","html_url":"https://github.com/tsu-trpo","followers_url":"https://api.github.com/users/tsu-trpo/followers","following_url":"https://api.github.com/users/tsu-trpo/following{/other_user}","gists_url":"https://api.github.com/users/tsu-trpo/gists{/gist_id}","starred_url":"https://api.github.com/users/tsu-trpo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsu-trpo/subscriptions","organizations_url":"https://api.github.com/users/tsu-trpo/orgs","repos_url":"https://api.github.com/users/tsu-trpo/repos","events_url":"https://api.github.com/users/tsu-trpo/events{/privacy}","received_events_url":"https://api.github.com/users/tsu-trpo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tsu-trpo/snake","description":null,"fork":false,"url":"https://api.github.com/repos/tsu-trpo/snake","forks_url":"https://api.github.com/repos/tsu-trpo/snake/forks","keys_url":"https://api.github.com/repos/tsu-trpo/snake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tsu-trpo/snake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tsu-trpo/snake/teams","hooks_url":"https://api.github.com/repos/tsu-trpo/snake/hooks","issue_events_url":"https://api.github.com/repos/tsu-trpo/snake/issues/events{/number}","events_url":"https://api.github.com/repos/tsu-trpo/snake/events","assignees_url":"https://api.github.com/repos/tsu-trpo/snake/assignees{/user}","branches_url":"https://api.github.com/repos/tsu-trpo/snake/branches{/branch}","tags_url":"https://api.github.com/repos/tsu-trpo/snake/tags","blobs_url":"https://api.github.com/repos/tsu-trpo/snake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tsu-trpo/snake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tsu-trpo/snake/git/refs{/sha}","trees_url":"https://api.github.com/repos/tsu-trpo/snake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tsu-trpo/snake/statuses/{sha}","languages_url":"https://api.github.com/repos/tsu-trpo/snake/languages","stargazers_url":"https://api.github.com/repos/tsu-trpo/snake/stargazers","contributors_url":"https://api.github.com/repos/tsu-trpo/snake/contributors","subscribers_url":"https://api.github.com/repos/tsu-trpo/snake/subscribers","subscription_url":"https://api.github.com/repos/tsu-trpo/snake/subscription","commits_url":"https://api.github.com/repos/tsu-trpo/snake/commits{/sha}","git_commits_url":"https://api.github.com/repos/tsu-trpo/snake/git/commits{/sha}","comments_url":"https://api.github.com/repos/tsu-trpo/snake/comments{/number}","issue_comment_url":"https://api.github.com/repos/tsu-trpo/snake/issues/comments{/number}","contents_url":"https://api.github.com/repos/tsu-trpo/snake/contents/{+path}","compare_url":"https://api.github.com/repos/tsu-trpo/snake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tsu-trpo/snake/merges","archive_url":"https://api.github.com/repos/tsu-trpo/snake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tsu-trpo/snake/downloads","issues_url":"https://api.github.com/repos/tsu-trpo/snake/issues{/number}","pulls_url":"https://api.github.com/repos/tsu-trpo/snake/pulls{/number}","milestones_url":"https://api.github.com/repos/tsu-trpo/snake/milestones{/number}","notifications_url":"https://api.github.com/repos/tsu-trpo/snake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tsu-trpo/snake/labels{/name}","releases_url":"https://api.github.com/repos/tsu-trpo/snake/releases{/id}","deployments_url":"https://api.github.com/repos/tsu-trpo/snake/deployments","created_at":"2017-09-29T15:32:13Z","updated_at":"2017-12-02T10:58:10Z","pushed_at":"2017-12-08T12:37:57Z","git_url":"git://github.com/tsu-trpo/snake.git","ssh_url":"git@github.com:tsu-trpo/snake.git","clone_url":"https://github.com/tsu-trpo/snake.git","svn_url":"https://github.com/tsu-trpo/snake","homepage":null,"size":118797,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tsu-trpo/snake/pulls/3"},"html":{"href":"https://github.com/tsu-trpo/snake/pull/3"},"issue":{"href":"https://api.github.com/repos/tsu-trpo/snake/issues/3"},"comments":{"href":"https://api.github.com/repos/tsu-trpo/snake/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/tsu-trpo/snake/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/tsu-trpo/snake/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tsu-trpo/snake/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/tsu-trpo/snake/statuses/8cd725dcc69e9d80e79f988049a7e82c1600712e"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"vosafonov"}}