{"id":2,"date":"2011-10-01T19:41:13","date_gmt":"2011-10-01T19:41:13","guid":{"rendered":"http:\/\/mediaonabicycle.com\/?page_id=2"},"modified":"2021-02-03T13:15:58","modified_gmt":"2021-02-03T13:15:58","slug":"sample-page","status":"publish","type":"page","link":"https:\/\/mediaonabicycle.com\/?page_id=2","title":{"rendered":"Scratch &#8211; Creating Online Games"},"content":{"rendered":"\n<p><strong>Links <\/strong>&#8211; If you are new to Scratch have a look at my beginners page <a rel=\"noreferrer noopener\" href=\"http:\/\/mediaonabicycle.com\/?page_id=215\" target=\"_blank\">Scratch for Beginners<\/a>. You can also look at the scratch space project <a rel=\"noreferrer noopener\" href=\"http:\/\/mediaonabicycle.com\/?page_id=270\" target=\"_blank\">here<\/a>.<\/p>\n\n\n\n<p><strong>Simple Movement<\/strong> &#8211; To start our scratch car game I have added a link below. This starter project allows you to experience movement by selecting\/clicking blocks of code. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/scratch.mit.edu\/projects\/482228990\/\" target=\"_blank\" rel=\"Car game 01 noopener\"><img loading=\"lazy\" width=\"959\" height=\"496\" src=\"http:\/\/mediaonabicycle.com\/wp-content\/uploads\/2021\/02\/Car-game-01.png\" alt=\"\" class=\"wp-image-417\" srcset=\"https:\/\/mediaonabicycle.com\/wp-content\/uploads\/2021\/02\/Car-game-01.png 959w, https:\/\/mediaonabicycle.com\/wp-content\/uploads\/2021\/02\/Car-game-01-300x155.png 300w, https:\/\/mediaonabicycle.com\/wp-content\/uploads\/2021\/02\/Car-game-01-768x397.png 768w, https:\/\/mediaonabicycle.com\/wp-content\/uploads\/2021\/02\/Car-game-01-500x259.png 500w\" sizes=\"(max-width: 959px) 100vw, 959px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Adding an If statement<\/strong> &#8211; We will be using an If statement to turn the car away from the green race barrier. Select the link below, read the instructions, test and edit the code to add an If statement to the red light on the car. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/scratch.mit.edu\/projects\/482276039\/\" rel=\"Car game 02\"><img loading=\"lazy\" width=\"969\" height=\"496\" src=\"http:\/\/mediaonabicycle.com\/wp-content\/uploads\/2021\/02\/Car-game-02.png\" alt=\"\" class=\"wp-image-419\" srcset=\"https:\/\/mediaonabicycle.com\/wp-content\/uploads\/2021\/02\/Car-game-02.png 969w, https:\/\/mediaonabicycle.com\/wp-content\/uploads\/2021\/02\/Car-game-02-300x154.png 300w, https:\/\/mediaonabicycle.com\/wp-content\/uploads\/2021\/02\/Car-game-02-768x393.png 768w, https:\/\/mediaonabicycle.com\/wp-content\/uploads\/2021\/02\/Car-game-02-500x256.png 500w\" sizes=\"(max-width: 969px) 100vw, 969px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Debug and improve your game <\/strong>&#8211; By adding a central area to the track, the car will be able to go round and round continuously. You will see that the if statements need to be changed, yellow light touching brown and red light touching green. Run the code and think about how the game can be improved. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/scratch.mit.edu\/projects\/482315094\/\"><img loading=\"lazy\" width=\"959\" height=\"496\" src=\"http:\/\/mediaonabicycle.com\/wp-content\/uploads\/2021\/02\/Screenshot-2021-02-02-at-14.21.04.png\" alt=\"\" class=\"wp-image-423\" srcset=\"https:\/\/mediaonabicycle.com\/wp-content\/uploads\/2021\/02\/Screenshot-2021-02-02-at-14.21.04.png 959w, https:\/\/mediaonabicycle.com\/wp-content\/uploads\/2021\/02\/Screenshot-2021-02-02-at-14.21.04-300x155.png 300w, https:\/\/mediaonabicycle.com\/wp-content\/uploads\/2021\/02\/Screenshot-2021-02-02-at-14.21.04-768x397.png 768w, https:\/\/mediaonabicycle.com\/wp-content\/uploads\/2021\/02\/Screenshot-2021-02-02-at-14.21.04-500x259.png 500w\" sizes=\"(max-width: 959px) 100vw, 959px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Testing <\/strong>&#8211; To improve my game I have removed the space bar block and replaced it with a green flag. I have also added point in direction (90) and a forever block round the move 10 steps. Put the blocks together and test the code, does it work? How can the game be improved?<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/scratch.mit.edu\/projects\/482339573\/\"><img loading=\"lazy\" width=\"967\" height=\"494\" src=\"http:\/\/mediaonabicycle.com\/wp-content\/uploads\/2021\/02\/Car-game-04.png\" alt=\"\" class=\"wp-image-425\" srcset=\"https:\/\/mediaonabicycle.com\/wp-content\/uploads\/2021\/02\/Car-game-04.png 967w, https:\/\/mediaonabicycle.com\/wp-content\/uploads\/2021\/02\/Car-game-04-300x153.png 300w, https:\/\/mediaonabicycle.com\/wp-content\/uploads\/2021\/02\/Car-game-04-768x392.png 768w, https:\/\/mediaonabicycle.com\/wp-content\/uploads\/2021\/02\/Car-game-04-500x255.png 500w\" sizes=\"(max-width: 967px) 100vw, 967px\" \/><\/a><\/figure>\n\n\n\n<p>To improve my game I am going to make my track rounder and add a speed variable for changing the speed of the car. Help with backgrounds on 06 Car games. I have added the new variable code which you will need to put together. Test the code. Starting at 5mph, test and change the code to see how fast the car can go round the track.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/scratch.mit.edu\/projects\/482362680\/\" target=\"_blank\" rel=\"Car game 05 noopener\"><img loading=\"lazy\" width=\"967\" height=\"493\" src=\"http:\/\/mediaonabicycle.com\/wp-content\/uploads\/2021\/02\/Car-game-05.png\" alt=\"\" class=\"wp-image-427\" srcset=\"https:\/\/mediaonabicycle.com\/wp-content\/uploads\/2021\/02\/Car-game-05.png 967w, https:\/\/mediaonabicycle.com\/wp-content\/uploads\/2021\/02\/Car-game-05-300x153.png 300w, https:\/\/mediaonabicycle.com\/wp-content\/uploads\/2021\/02\/Car-game-05-768x392.png 768w, https:\/\/mediaonabicycle.com\/wp-content\/uploads\/2021\/02\/Car-game-05-500x255.png 500w\" sizes=\"(max-width: 967px) 100vw, 967px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Links &#8211; If you are new to Scratch have a look at my beginners page Scratch for Beginners. You can also look at the scratch space project here. Simple Movement &#8211; To start our scratch car game I have added &hellip; <a href=\"https:\/\/mediaonabicycle.com\/?page_id=2\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/mediaonabicycle.com\/index.php?rest_route=\/wp\/v2\/pages\/2"}],"collection":[{"href":"https:\/\/mediaonabicycle.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mediaonabicycle.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mediaonabicycle.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mediaonabicycle.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2"}],"version-history":[{"count":32,"href":"https:\/\/mediaonabicycle.com\/index.php?rest_route=\/wp\/v2\/pages\/2\/revisions"}],"predecessor-version":[{"id":430,"href":"https:\/\/mediaonabicycle.com\/index.php?rest_route=\/wp\/v2\/pages\/2\/revisions\/430"}],"wp:attachment":[{"href":"https:\/\/mediaonabicycle.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}