{"action":"opened","issue":{"url":"https://api.github.com/repos/Khan/khan-i18n/issues/63105","labels_url":"https://api.github.com/repos/Khan/khan-i18n/issues/63105/labels{/name}","comments_url":"https://api.github.com/repos/Khan/khan-i18n/issues/63105/comments","events_url":"https://api.github.com/repos/Khan/khan-i18n/issues/63105/events","html_url":"https://github.com/Khan/khan-i18n/issues/63105","id":60158224,"number":63105,"title":"not-translated:Remember the three steps of making an...","user":{"login":"KhanBugz","id":924247,"avatar_url":"https://avatars.githubusercontent.com/u/924247?v=3","gravatar_id":"","url":"https://api.github.com/users/KhanBugz","html_url":"https://github.com/KhanBugz","followers_url":"https://api.github.com/users/KhanBugz/followers","following_url":"https://api.github.com/users/KhanBugz/following{/other_user}","gists_url":"https://api.github.com/users/KhanBugz/gists{/gist_id}","starred_url":"https://api.github.com/users/KhanBugz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KhanBugz/subscriptions","organizations_url":"https://api.github.com/users/KhanBugz/orgs","repos_url":"https://api.github.com/users/KhanBugz/repos","events_url":"https://api.github.com/users/KhanBugz/events{/privacy}","received_events_url":"https://api.github.com/users/KhanBugz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-06T21:02:34Z","updated_at":"2015-03-06T21:02:34Z","closed_at":null,"body":"Url: https://pt.khanacademy.org/computing/computer-programming/programming/animation-basics/p/incrementing-shortcuts\n\nUser Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36\n\nProblem Text: \nRemember the three steps of making an animation?\nWe start out by making some variables outside the draw loop,\nand then inside the draw loop we use those variables\nin our drawing code.\nSo we've got a variable for the <i>x</i> position,\none for the <i>y</i> position, one for the ballWidth,\nand one for the ballHeight.\nAnd then, at the very end,\nwe change those variables a little bit every time,\nso <i>x</i> is going to be the old value of <i>x</i>, plus 1,\nso it's going to be increasing every time;\n<i>y</i> is going be the old value of <i>y</i>, minus 2,\nso <i>y</i> will be decreasing every time;\nballWidth is going to get the old value of ballWidth times 0.99.\nSo since 0.99 is less than 1, we're going to see ballWidth decreasing.\nAnd ballHeight is going to be the old value of ballHeight\ndivided by 1.01, which is greater than 1,\nand so we're also going to see ballHeight decreasing.\nSo if I press <i>Restart</i>, you can see\nall of these attributes of the ball changing.\nSo if you look at these four lines of code,\nyou'll notice that they all follow a similar pattern.\nWe've got a variable, then an equals sign,\nthen the same variable, some operator -- plus, minus, times, divide --\nand some number, okay?\nAnd this pattern is so common in programming,\nand programmers are so lazy, that they decided,\n\"Hey! Since we use this pattern so much,\n\"Shouldn't there be an easier way to type it?\"\nAnd so they made a shortcut, and the shortcut goes like this:\nInstead of saying \"x gets x plus 1\",\nI could say \"x plus equals 1.\" Got it?\nAnd instead of saying <i>y</i> gets <i>y</i> minus 2, I could say \"y minus equals 2.\"\nAnd instead of saying ballWidth gets ballWidth times 0.99,\nI can say -- you guessed it -- <i>\"ballWidth times equals 0.99\"</i>\nFinally, instead of saying\nballHeight gets ballHeight divided by 1.01\nwe can say <i>\"ballHeight divides equals 1.01.\"</i>\nSo for all of these, what it does is\nit takes the value of the variables,\nso ballWidth, and then this operator,\nand then multiplies it by 0.99.\nSo it's going to say, <i>\"ballWidth times 0.99\"</i>\nand then store it back in the variable, ballWidth.\nAnd if I press <i>Restart</i> you can see\nour animation looks the same as before.\nAnd now you get to be lazy too!\nPerguntas  Dicas e agradecimentos  Deriva\n\nUser Description: \n\n\nNext Steps: \nIf this is a translation issue, fix it. Otherwise verify what is wrong, add a comment in English describing the issue and assign to tzjames."}}