{"id":2639,"date":"2020-05-11T23:23:19","date_gmt":"2020-05-11T23:23:19","guid":{"rendered":"http:\/\/sycamore.mrwrightsclass.co.uk\/?page_id=2639"},"modified":"2021-04-20T22:04:16","modified_gmt":"2021-04-20T22:04:16","slug":"maze-game-week-4","status":"publish","type":"page","link":"http:\/\/sycamore.mrwrightsclass.co.uk\/?page_id=2639","title":{"rendered":"Maze Game Week 4"},"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 final 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 previous lessons before you start today&#8217;s lesson.<\/em><\/strong> Click on the &#8216;stuff&#8217; menu at the top left of the page and click on &#8216;coding&#8217; to find previous lessons.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Don&#8217;t worry if you have not completed previous lessons yet. Just go back and start at a place that works for you.<\/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><li>Created extra sprites to avoid<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Today&#8217;s lesson &#8211; Adding lives<\/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 variable so that our sprite has a limited number of lives. When lives run out&#8230; the game ends<\/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=\"624\" style=\"aspect-ratio: 1362 \/ 624;\" width=\"1362\" controls src=\"http:\/\/sycamore.mrwrightsclass.co.uk\/wp-content\/uploads\/2020\/05\/Lesson-4.mp4\"><\/video><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>This is the final 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 previous lessons before you start today&#8217;s lesson. Click on the &#8216;stuff&#8217; menu at the top left of the page and click on &#8216;coding&#8217; to find &hellip; <a class=\"read-excerpt\" href=\"http:\/\/sycamore.mrwrightsclass.co.uk\/?page_id=2639\">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-2639","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/sycamore.mrwrightsclass.co.uk\/index.php?rest_route=\/wp\/v2\/pages\/2639","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=2639"}],"version-history":[{"count":2,"href":"http:\/\/sycamore.mrwrightsclass.co.uk\/index.php?rest_route=\/wp\/v2\/pages\/2639\/revisions"}],"predecessor-version":[{"id":2642,"href":"http:\/\/sycamore.mrwrightsclass.co.uk\/index.php?rest_route=\/wp\/v2\/pages\/2639\/revisions\/2642"}],"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=2639"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}