{"id":4082,"date":"2020-06-22T22:35:14","date_gmt":"2020-06-22T22:35:14","guid":{"rendered":"http:\/\/sycamore.mrwrightsclass.co.uk\/?page_id=4082"},"modified":"2021-07-13T07:18:44","modified_gmt":"2021-07-13T07:18:44","slug":"shooting-game-2","status":"publish","type":"page","link":"http:\/\/sycamore.mrwrightsclass.co.uk\/?page_id=4082","title":{"rendered":"Shooting Game 2"},"content":{"rendered":"\n<div class=\"wp-block-group has-background\" style=\"background-color:#ead8a1\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h3 class=\"wp-block-heading\">This is the second lesson in which we will code a game in which you must shoot sprites. Have a look at some of the unfinished games (<a rel=\"noreferrer noopener\" href=\"http:\/\/sycamore.mrwrightsclass.co.uk\/?page_id=3875\" target=\"_blank\">here<\/a>) created by children last week.<\/h3>\n\n\n\n<h3 class=\"has-very-dark-gray-color has-text-color wp-block-heading\"><span style=\"color:#ead8a1\" class=\"has-inline-color\">.<\/span><\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">If you did not complete last week&#8217;s lesson (<a rel=\"noreferrer noopener\" href=\"http:\/\/sycamore.mrwrightsclass.co.uk\/?page_id=3842\" target=\"_blank\">here<\/a>), you must complete that first.  <\/h3>\n\n\n\n<h3 class=\"has-very-dark-gray-color has-text-color wp-block-heading\"><span style=\"color:#ead8a1\" class=\"has-inline-color\">.<\/span><\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">Click on the picture to play my Witch Hunt. It shows the sort of game we&#8217;ll be coding.<\/h3>\n<\/div><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/scratch.mit.edu\/projects\/233562915\/fullscreen\/\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" width=\"435\" height=\"323\" src=\"http:\/\/sycamore.mrwrightsclass.co.uk\/wp-content\/uploads\/2020\/06\/Capture-8.png\" alt=\"\" class=\"wp-image-3843\" srcset=\"http:\/\/sycamore.mrwrightsclass.co.uk\/wp-content\/uploads\/2020\/06\/Capture-8.png 435w, http:\/\/sycamore.mrwrightsclass.co.uk\/wp-content\/uploads\/2020\/06\/Capture-8-300x223.png 300w\" sizes=\"auto, (max-width: 435px) 100vw, 435px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span style=\"color:#ffffff\" class=\"has-inline-color\">.<\/span><\/h3>\n\n\n\n<div class=\"wp-block-group has-very-dark-gray-color has-very-light-gray-background-color has-text-color has-background\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h3 class=\"wp-block-heading\">You are all at different stages with your coding. Today I have posted four videos. Some of you will skip the first and move through the other videos. Some of you will just get through the first one or two videos. Do what you feel is right for you&#8230;<\/h3>\n<\/div><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><span style=\"color:#ffffff\" class=\"has-inline-color\">.<\/span><\/h3>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"has-inline-color has-vivid-purple-color\">The first video<\/span> shows you how to create a score variable &#8211; so that the player gets a point if they shoot the sprite. I will also create a time variable &#8211; so that the game ends after 60 seconds. <\/h3>\n\n\n\n<h3 class=\"wp-block-heading\"><span style=\"color:#ffffff\" class=\"has-inline-color\">.<\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span style=\"color:#ffffff\" class=\"has-inline-color\">.<\/span><\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">If you know how to do this, then skip this video and create the code. You can always watch the video if you get in a muddle!<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\"><span style=\"color:#ffffff\" class=\"has-inline-color\">.<\/span><\/h3>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"596\" style=\"aspect-ratio: 1348 \/ 596;\" width=\"1348\" controls src=\"http:\/\/sycamore.mrwrightsclass.co.uk\/wp-content\/uploads\/2020\/06\/Score-variable.mp4\"><\/video><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span style=\"color:#ffffff\" class=\"has-inline-color\">.<\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"has-inline-color has-vivid-purple-color\">This second video<\/span> will show you how to make your game more interesting by quickly creating a second sprite that moves in a different direction. I will show you how to tweak the code and highlight a couple of problems that you might come across<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\"><span style=\"color:#ffffff\" class=\"has-inline-color\">.<\/span><\/h3>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"596\" style=\"aspect-ratio: 1348 \/ 596;\" width=\"1348\" controls src=\"http:\/\/sycamore.mrwrightsclass.co.uk\/wp-content\/uploads\/2020\/06\/Extra-sprite.mp4\"><\/video><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span style=\"color:#ffffff\" class=\"has-inline-color\">.<\/span><\/h3>\n\n\n\n<h3 class=\"wp-block-heading\"><span style=\"color:#ffffff\" class=\"has-inline-color\">.<\/span><\/h3>\n\n\n\n<h3 class=\"wp-block-heading\"><span style=\"color:#ffffff\" class=\"has-inline-color\">.<\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"has-inline-color has-vivid-purple-color\">This third video<\/span> will show you how to make your game less predictable by randomising when the sprite moves across the screen and how fast it travels. This is a little more complicated. <\/h3>\n\n\n\n<h3 class=\"wp-block-heading\"><span style=\"color:#ffffff\" class=\"has-inline-color\">.<\/span><\/h3>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"596\" style=\"aspect-ratio: 1348 \/ 596;\" width=\"1348\" controls src=\"http:\/\/sycamore.mrwrightsclass.co.uk\/wp-content\/uploads\/2020\/06\/Random-variables.mp4\"><\/video><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span style=\"color:#ffffff\" class=\"has-inline-color\">.<\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"has-inline-color has-vivid-purple-color\">The final video<\/span> will show you how create a friendly sprite that the player should not shoot!<\/h3>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"596\" style=\"aspect-ratio: 1348 \/ 596;\" width=\"1348\" controls src=\"http:\/\/sycamore.mrwrightsclass.co.uk\/wp-content\/uploads\/2020\/06\/Friendly-Sprite.mp4\"><\/video><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span style=\"color:#ffffff\" class=\"has-inline-color\">.<\/span><\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">This project can quickly produce a lot of code. It is critical that you test your code every time that you change something. If it isn&#8217;t working, try to find the problem before moving on. If you don&#8217;t test your code regularly, it can become very difficult to identify errors&#8230;<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\"><span style=\"color:#ffffff\" class=\"has-inline-color\">.<\/span><\/h3>\n\n\n\n<h3 class=\"wp-block-heading\"><span style=\"color:#ffffff\" class=\"has-inline-color\">.<\/span><\/h3>\n\n\n\n<h3 class=\"wp-block-heading\"><span style=\"color:#ffffff\" class=\"has-inline-color\">.<\/span><\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">If you get stuck, share your game by email, describe the problem and we&#8217;ll do our best to help.<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\"><span style=\"color:#ffffff\" class=\"has-inline-color\">.<\/span><\/h3>\n\n\n\n<h3 class=\"wp-block-heading\"><span style=\"color:#ffffff\" class=\"has-inline-color\">.<\/span><\/h3>\n\n\n\n<h1 class=\"wp-block-heading\">Please share your games with us!<\/h1>\n","protected":false},"excerpt":{"rendered":"<p>This is the second lesson in which we will code a game in which you must shoot sprites. Have a look at some of the unfinished games (here) created by children last week. . If you did not complete last week&#8217;s lesson (here), you must complete that first. . Click on the picture to play &hellip; <a class=\"read-excerpt\" href=\"http:\/\/sycamore.mrwrightsclass.co.uk\/?page_id=4082\">Continue reading <span class=\"meta-nav\">&raquo;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":3843,"parent":1297,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-4082","page","type-page","status-publish","has-post-thumbnail","hentry"],"_links":{"self":[{"href":"http:\/\/sycamore.mrwrightsclass.co.uk\/index.php?rest_route=\/wp\/v2\/pages\/4082","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=4082"}],"version-history":[{"count":3,"href":"http:\/\/sycamore.mrwrightsclass.co.uk\/index.php?rest_route=\/wp\/v2\/pages\/4082\/revisions"}],"predecessor-version":[{"id":5114,"href":"http:\/\/sycamore.mrwrightsclass.co.uk\/index.php?rest_route=\/wp\/v2\/pages\/4082\/revisions\/5114"}],"up":[{"embeddable":true,"href":"http:\/\/sycamore.mrwrightsclass.co.uk\/index.php?rest_route=\/wp\/v2\/pages\/1297"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/sycamore.mrwrightsclass.co.uk\/index.php?rest_route=\/wp\/v2\/media\/3843"}],"wp:attachment":[{"href":"http:\/\/sycamore.mrwrightsclass.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4082"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}