{"id":5013,"date":"2023-09-12T04:53:45","date_gmt":"2023-09-12T04:53:45","guid":{"rendered":"https:\/\/rodmilstead.com\/pt\/?page_id=5013"},"modified":"2023-09-14T17:50:28","modified_gmt":"2023-09-14T17:50:28","slug":"scratch-pong-mods","status":"publish","type":"page","link":"https:\/\/rodmilstead.com\/pt\/scratch-pong-mods\/","title":{"rendered":"Scratch Pong: Mods"},"content":{"rendered":"<p>So you programmed your <a href=\"https:\/\/rodmilstead.com\/pt\/scratch-pong-with-levels\/\" target=\"_blank\" rel=\"noopener\">Pong game in the first part of this assignment (click here for details).<\/a><\/p>\n<p>In this assignment, you will make a copy of your Scratch Pong game and then modify it.\u00a0 Your modified Pong game should have at least TWO new modifications.<\/p>\n<p><strong>When you turn this in on Canvas make sure to use the instructions area to describe which of these two mods that you added.\u00a0 You can use one the options below or craft your own game mod.\u00a0\u00a0<\/strong><\/p>\n<p><strong>Let&#8217;s start by making a copy of your program.<\/strong><\/p>\n<ol>\n<li>In Scratch, open your original Pong game.<br \/>\n2. Click on File on the top menu bar.<br \/>\n3. Choose &#8220;Save as a copy&#8221;.\u00a0 Then rename your NEW Pong like this with your last name: Milstead Pong Mod.\u00a0 But use your last name.<br \/>\n<a href=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-11-at-8.27.12-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-5014 alignnone\" src=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-11-at-8.27.12-PM.png\" alt=\"\" width=\"310\" height=\"350\" srcset=\"https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-11-at-8.27.12-PM.png 418w, https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-11-at-8.27.12-PM-266x300.png 266w\" sizes=\"auto, (max-width: 310px) 100vw, 310px\" \/><\/a><\/li>\n<\/ol>\n<p><strong>Now it&#8217;s time to add at least two modifications to your Pong game.\u00a0<\/strong><\/p>\n<p>Here are some ideas:<br \/>\n1. change the paddle control to left and right arrow keys.\u00a0 Apply this code to the paddle sprite.<br \/>\n<a href=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-11-at-8.40.07-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-5015 alignnone\" src=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-11-at-8.40.07-PM-300x300.png\" alt=\"\" width=\"300\" height=\"300\" srcset=\"https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-11-at-8.40.07-PM-300x300.png 300w, https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-11-at-8.40.07-PM-150x150.png 150w, https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-11-at-8.40.07-PM.png 596w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>2. add an obstacle that appears when you reach a certain score.<br \/>\n-the new obstacle should be a new sprite (you can draw it or pick one that exists).<br \/>\n-add this code to your new sprite (you choose what score makes the obstacle appear or disappear:<br \/>\n<a href=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-11-at-8.44.41-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-5016 alignnone\" src=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-11-at-8.44.41-PM-199x300.png\" alt=\"\" width=\"199\" height=\"300\" srcset=\"https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-11-at-8.44.41-PM-199x300.png 199w, https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-11-at-8.44.41-PM.png 464w\" sizes=\"auto, (max-width: 199px) 100vw, 199px\" \/><\/a><br \/>\n-then add this code to any ball sprites that are in play. This way the ball will bounce off of the new obstacle.<br \/>\n<a href=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-11-at-8.46.21-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-5017 alignnone\" src=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-11-at-8.46.21-PM-300x256.png\" alt=\"\" width=\"300\" height=\"256\" srcset=\"https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-11-at-8.46.21-PM-300x256.png 300w, https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-11-at-8.46.21-PM.png 644w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>3. add a power &#8211; up (ask me to show you an example). This could make the paddle larger for a short time, slow the balls down, etc.<\/p>\n<p>4. adding background music &#8211; <a href=\"https:\/\/youtu.be\/8dRzxH7Tfag?si=_17s3IP1RAilhJAG\" target=\"_blank\" rel=\"noopener\">tutorial here.\u00a0<\/a><\/p>\n<p>5. high score leaderboard &#8211; <a href=\"https:\/\/youtu.be\/zT5MjAK2_ak?si=7HbgdmiCxnd4Dfbp\" target=\"_blank\" rel=\"noopener\">we can&#8217;t use cloud variables so make sure that you are using normal (local) variables- tutorial here.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>So you programmed your Pong game in the first part of this assignment (click here for details). In this assignment, you will make a copy of your Scratch Pong game and then modify it.\u00a0 Your modified Pong game should have at least TWO new modifications. When you turn this in on Canvas make sure to &hellip; <a href=\"https:\/\/rodmilstead.com\/pt\/scratch-pong-mods\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Scratch Pong: Mods<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-5013","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages\/5013","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/comments?post=5013"}],"version-history":[{"count":4,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages\/5013\/revisions"}],"predecessor-version":[{"id":5025,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages\/5013\/revisions\/5025"}],"wp:attachment":[{"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/media?parent=5013"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}