{"id":2419,"date":"2020-05-04T22:16:28","date_gmt":"2020-05-04T22:16:28","guid":{"rendered":"http:\/\/sycamore.mrwrightsclass.co.uk\/?page_id=2419"},"modified":"2021-04-20T22:04:09","modified_gmt":"2021-04-20T22:04:09","slug":"maze-game-week-3","status":"publish","type":"page","link":"http:\/\/sycamore.mrwrightsclass.co.uk\/?page_id=2419","title":{"rendered":"Maze Game Week 3"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"430\" height=\"177\" src=\"http:\/\/sycamore.mrwrightsclass.co.uk\/wp-content\/uploads\/2020\/03\/scratch-1.png\" alt=\"\" class=\"wp-image-1298\" srcset=\"http:\/\/sycamore.mrwrightsclass.co.uk\/wp-content\/uploads\/2020\/03\/scratch-1.png 430w, http:\/\/sycamore.mrwrightsclass.co.uk\/wp-content\/uploads\/2020\/03\/scratch-1-300x123.png 300w\" sizes=\"auto, (max-width: 430px) 100vw, 430px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This is the second lesson in which you are going to learn how to code a maze game, using variables and use &#8220;if statements&#8221;. <strong><em>You will need to have completed lesson 1 (<a rel=\"noreferrer noopener\" href=\"http:\/\/sycamore.mrwrightsclass.co.uk\/?page_id=1941\" target=\"_blank\">HERE<\/a>) and lesson 2 (<a href=\"http:\/\/sycamore.mrwrightsclass.co.uk\/?page_id=2143\" target=\"_blank\" rel=\"noreferrer noopener\">HERE<\/a>) before you start today&#8217;s lesson.<\/em><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"> Do what you feel your brain can cope with. NEVER copy code &#8211; watch the videos then have a go yourself.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What have we done?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Open your game. You should have:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Written code to move a sprite in four directions using arrow keys<\/li><li>Created a maze<\/li><li>Written code so that your sprite goes back to the start if it touches the maze.<\/li><li>Created at least one additional level and used the <em>broadcast<\/em> code to trigger several things to happen at the same time.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Today&#8217;s lesson &#8211; Adding another sprite to avoid<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\"><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Today&#8217;s lesson focusses on adding a second sprite which will bounce around. This is one way of making your game harder as it is another thing for the player to think about. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I suggest that you watch the video to begin with, then try to complete the work (rather than keep stopping the video and completing each small step). You will learn more trying to figure out how to do things. You can always go back to the video if you get stuck.<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"662\" style=\"aspect-ratio: 1248 \/ 662;\" width=\"1248\" controls src=\"http:\/\/sycamore.mrwrightsclass.co.uk\/wp-content\/uploads\/2020\/05\/Scratch-sprite.mp4\"><\/video><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>This is the second lesson in which you are going to learn how to code a maze game, using variables and use &#8220;if statements&#8221;. You will need to have completed lesson 1 (HERE) and lesson 2 (HERE) before you start today&#8217;s lesson. Do what you feel your brain can cope with. NEVER copy code &#8211; &hellip; <a class=\"read-excerpt\" href=\"http:\/\/sycamore.mrwrightsclass.co.uk\/?page_id=2419\">Continue reading <span class=\"meta-nav\">&raquo;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1297,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2419","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/sycamore.mrwrightsclass.co.uk\/index.php?rest_route=\/wp\/v2\/pages\/2419","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/sycamore.mrwrightsclass.co.uk\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/sycamore.mrwrightsclass.co.uk\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/sycamore.mrwrightsclass.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/sycamore.mrwrightsclass.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2419"}],"version-history":[{"count":2,"href":"http:\/\/sycamore.mrwrightsclass.co.uk\/index.php?rest_route=\/wp\/v2\/pages\/2419\/revisions"}],"predecessor-version":[{"id":2430,"href":"http:\/\/sycamore.mrwrightsclass.co.uk\/index.php?rest_route=\/wp\/v2\/pages\/2419\/revisions\/2430"}],"up":[{"embeddable":true,"href":"http:\/\/sycamore.mrwrightsclass.co.uk\/index.php?rest_route=\/wp\/v2\/pages\/1297"}],"wp:attachment":[{"href":"http:\/\/sycamore.mrwrightsclass.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}