{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/pulls/comments/62450193","id":62450193,"diff_hunk":"@@ -405,25 +434,11 @@\n         ctx.shadowOffsetX = 0;\n         ctx.shadowOffsetY = 0;\n         ctx.fillStyle = '#000';\n-        ctx.font = '16px PT Mono';\n         ctx.textBaseline = 'hanging';\n-        var words = msgText.split(' ');\n-        var line = '';\n-        var lineHeight = 25;\n-        var marginLeft = x + 10;\n-        var marginTop = y + 10;\n-        for(var i = 0; i < words.length; i++) {\n-          var testLine = line + words[i] + ' ';\n-          var testWidth = ctx.measureText(testLine).width;\n-          if(testWidth > maxWidth) {\n-            ctx.fillText(line, marginLeft, marginTop);\n-            line = words[i] + ' ';\n-            marginTop += lineHeight;\n-          } else {\n-            line = testLine;\n-          }\n+\n+        for(i = 0; i < linesArray.length; i++) {","path":"src/game.js","position":69,"original_position":69,"commit_id":"0af8993b308fd8f09b7c52900db52c6fd4e42550","original_commit_id":"0af8993b308fd8f09b7c52900db52c6fd4e42550","user":{"login":"varya","id":27215,"avatar_url":"https://avatars.githubusercontent.com/u/27215?v=3","gravatar_id":"","url":"https://api.github.com/users/varya","html_url":"https://github.com/varya","followers_url":"https://api.github.com/users/varya/followers","following_url":"https://api.github.com/users/varya/following{/other_user}","gists_url":"https://api.github.com/users/varya/gists{/gist_id}","starred_url":"https://api.github.com/users/varya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varya/subscriptions","organizations_url":"https://api.github.com/users/varya/orgs","repos_url":"https://api.github.com/users/varya/repos","events_url":"https://api.github.com/users/varya/events{/privacy}","received_events_url":"https://api.github.com/users/varya/received_events","type":"User","site_admin":false},"body":"Здесь тоже `.forEach`.","created_at":"2016-05-09T04:50:33Z","updated_at":"2016-05-09T04:50:33Z","html_url":"https://github.com/htmlacademy-javascript/90484-code-and-magick/pull/18#discussion_r62450193","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/pulls/comments/62450193"},"html":{"href":"https://github.com/htmlacademy-javascript/90484-code-and-magick/pull/18#discussion_r62450193"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/pulls/18","id":69281014,"html_url":"https://github.com/htmlacademy-javascript/90484-code-and-magick/pull/18","diff_url":"https://github.com/htmlacademy-javascript/90484-code-and-magick/pull/18.diff","patch_url":"https://github.com/htmlacademy-javascript/90484-code-and-magick/pull/18.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/issues/18","number":18,"state":"open","locked":false,"title":"fixes after final check","user":{"login":"EkaterinaPanteleev","id":14314595,"avatar_url":"https://avatars.githubusercontent.com/u/14314595?v=3","gravatar_id":"","url":"https://api.github.com/users/EkaterinaPanteleev","html_url":"https://github.com/EkaterinaPanteleev","followers_url":"https://api.github.com/users/EkaterinaPanteleev/followers","following_url":"https://api.github.com/users/EkaterinaPanteleev/following{/other_user}","gists_url":"https://api.github.com/users/EkaterinaPanteleev/gists{/gist_id}","starred_url":"https://api.github.com/users/EkaterinaPanteleev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EkaterinaPanteleev/subscriptions","organizations_url":"https://api.github.com/users/EkaterinaPanteleev/orgs","repos_url":"https://api.github.com/users/EkaterinaPanteleev/repos","events_url":"https://api.github.com/users/EkaterinaPanteleev/events{/privacy}","received_events_url":"https://api.github.com/users/EkaterinaPanteleev/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-08T22:01:57Z","updated_at":"2016-05-09T04:50:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7e47b12dc8e7dfa2bac2ce799c0a8f52467218cf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/pulls/18/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/pulls/18/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/issues/18/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/statuses/0af8993b308fd8f09b7c52900db52c6fd4e42550","head":{"label":"EkaterinaPanteleev:master","ref":"master","sha":"0af8993b308fd8f09b7c52900db52c6fd4e42550","user":{"login":"EkaterinaPanteleev","id":14314595,"avatar_url":"https://avatars.githubusercontent.com/u/14314595?v=3","gravatar_id":"","url":"https://api.github.com/users/EkaterinaPanteleev","html_url":"https://github.com/EkaterinaPanteleev","followers_url":"https://api.github.com/users/EkaterinaPanteleev/followers","following_url":"https://api.github.com/users/EkaterinaPanteleev/following{/other_user}","gists_url":"https://api.github.com/users/EkaterinaPanteleev/gists{/gist_id}","starred_url":"https://api.github.com/users/EkaterinaPanteleev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EkaterinaPanteleev/subscriptions","organizations_url":"https://api.github.com/users/EkaterinaPanteleev/orgs","repos_url":"https://api.github.com/users/EkaterinaPanteleev/repos","events_url":"https://api.github.com/users/EkaterinaPanteleev/events{/privacy}","received_events_url":"https://api.github.com/users/EkaterinaPanteleev/received_events","type":"User","site_admin":false},"repo":{"id":54511178,"name":"code-and-magick","full_name":"EkaterinaPanteleev/code-and-magick","owner":{"login":"EkaterinaPanteleev","id":14314595,"avatar_url":"https://avatars.githubusercontent.com/u/14314595?v=3","gravatar_id":"","url":"https://api.github.com/users/EkaterinaPanteleev","html_url":"https://github.com/EkaterinaPanteleev","followers_url":"https://api.github.com/users/EkaterinaPanteleev/followers","following_url":"https://api.github.com/users/EkaterinaPanteleev/following{/other_user}","gists_url":"https://api.github.com/users/EkaterinaPanteleev/gists{/gist_id}","starred_url":"https://api.github.com/users/EkaterinaPanteleev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EkaterinaPanteleev/subscriptions","organizations_url":"https://api.github.com/users/EkaterinaPanteleev/orgs","repos_url":"https://api.github.com/users/EkaterinaPanteleev/repos","events_url":"https://api.github.com/users/EkaterinaPanteleev/events{/privacy}","received_events_url":"https://api.github.com/users/EkaterinaPanteleev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/EkaterinaPanteleev/code-and-magick","description":"Ecaterina Panteleev","fork":true,"url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick","forks_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/forks","keys_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/teams","hooks_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/events","assignees_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/tags","blobs_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/languages","stargazers_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/subscription","commits_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/merges","archive_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/downloads","issues_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/EkaterinaPanteleev/code-and-magick/deployments","created_at":"2016-03-22T21:51:54Z","updated_at":"2016-03-22T21:52:53Z","pushed_at":"2016-05-08T22:00:58Z","git_url":"git://github.com/EkaterinaPanteleev/code-and-magick.git","ssh_url":"git@github.com:EkaterinaPanteleev/code-and-magick.git","clone_url":"https://github.com/EkaterinaPanteleev/code-and-magick.git","svn_url":"https://github.com/EkaterinaPanteleev/code-and-magick","homepage":null,"size":1085,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"htmlacademy-javascript:master","ref":"master","sha":"cea603d4cdbb5f4235c8fa437ebaaf1126a5f628","user":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars.githubusercontent.com/u/14179712?v=3","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-javascript","html_url":"https://github.com/htmlacademy-javascript","followers_url":"https://api.github.com/users/htmlacademy-javascript/followers","following_url":"https://api.github.com/users/htmlacademy-javascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-javascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-javascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-javascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-javascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-javascript/repos","events_url":"https://api.github.com/users/htmlacademy-javascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-javascript/received_events","type":"Organization","site_admin":false},"repo":{"id":54507052,"name":"90484-code-and-magick","full_name":"htmlacademy-javascript/90484-code-and-magick","owner":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars.githubusercontent.com/u/14179712?v=3","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-javascript","html_url":"https://github.com/htmlacademy-javascript","followers_url":"https://api.github.com/users/htmlacademy-javascript/followers","following_url":"https://api.github.com/users/htmlacademy-javascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-javascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-javascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-javascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-javascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-javascript/repos","events_url":"https://api.github.com/users/htmlacademy-javascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-javascript/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/htmlacademy-javascript/90484-code-and-magick","description":"Ecaterina Panteleev","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick","forks_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/deployments","created_at":"2016-03-22T20:37:18Z","updated_at":"2016-03-23T12:37:15Z","pushed_at":"2016-05-08T22:01:57Z","git_url":"git://github.com/htmlacademy-javascript/90484-code-and-magick.git","ssh_url":"git@github.com:htmlacademy-javascript/90484-code-and-magick.git","clone_url":"https://github.com/htmlacademy-javascript/90484-code-and-magick.git","svn_url":"https://github.com/htmlacademy-javascript/90484-code-and-magick","homepage":"https://github.com/EkaterinaPanteleev/code-and-magick","size":1247,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/pulls/18"},"html":{"href":"https://github.com/htmlacademy-javascript/90484-code-and-magick/pull/18"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/issues/18"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/90484-code-and-magick/statuses/0af8993b308fd8f09b7c52900db52c6fd4e42550"}}}}