{"id":340,"date":"2019-06-13T20:48:47","date_gmt":"2019-06-14T03:48:47","guid":{"rendered":"http:\/\/mirahan.faculty.unlv.edu\/summercode_2021\/?p=340"},"modified":"2021-06-26T03:39:58","modified_gmt":"2021-06-26T10:39:58","slug":"day-6-unit-2","status":"publish","type":"post","link":"https:\/\/mirahan.faculty.unlv.edu\/summercode_2021\/class\/day-6-unit-2\/","title":{"rendered":"Day 6 Unit 2"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Unit 2. Escape Game<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Today, you&#8217;ll create an escape game,\u00a0where the player&#8217;s character must avoid\u00a0bouncing sprites.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We will start with watching the video together.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/csfirst.withgoogle.com\/c\/cs-first\/en\/game-design\/escape-game\/escape-games-and-randomness.html\" target=\"_blank\">https:\/\/csfirst.withgoogle.com\/c\/cs-first\/en\/game-design\/escape-game\/escape-games-and-randomness.html<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Today there is no starter project to start from. Instead we will start from a blank slate. Open Scratch and choose and backdrop and two characters for your sprites. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First, let&#8217;s program one sprite to move randomly around the scene. This sprite is what you need to avoid touching.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/csfirst.withgoogle.com\/c\/cs-first\/en\/game-design\/escape-game\/the-chase-is-on.html\" target=\"_blank\">https:\/\/csfirst.withgoogle.com\/c\/cs-first\/en\/game-design\/escape-game\/the-chase-is-on.html<\/a><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Move the chaser sprite.<\/li><li>Make the chaser sprite move forever.<\/li><li>Get the chaser sprite to bounce if it is on an edge.&nbsp;<\/li><li>Point the chaser sprite in a random direction when it starts.<\/li><li>Make the chaser sprite start moving when the green flag is clicked.<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Then we will program the main player sprite that the user will control using the mouse. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/csfirst.withgoogle.com\/c\/cs-first\/en\/game-design\/escape-game\/programming-the-player-sprite.html\" target=\"_blank\">https:\/\/csfirst.withgoogle.com\/c\/cs-first\/en\/game-design\/escape-game\/programming-the-player-sprite.html<\/a><br><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Make the player sprite point towards the mouse pointer, then move forward.&nbsp;<\/li><li>Make the player sprite keep following the mouse pointer forever.<\/li><li>BUG FIX: Only make the sprite move towards the mouse pointer if it is not touching the mouse pointer.&nbsp;<\/li><li>Make the player sprite move when the green flag is clicked.<\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Unit 2. Escape Game Today, you&#8217;ll create an escape game,\u00a0where the player&#8217;s character must avoid\u00a0bouncing sprites. We will start with watching the video together. https:\/\/csfirst.withgoogle.com\/c\/cs-first\/en\/game-design\/escape-game\/escape-games-and-randomness.html Today there is no starter project to start from. Instead we will start from a blank slate. Open Scratch and choose and backdrop and two characters for your sprites. First, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-340","post","type-post","status-publish","format-standard","hentry","category-class"],"_links":{"self":[{"href":"https:\/\/mirahan.faculty.unlv.edu\/summercode_2021\/wp-json\/wp\/v2\/posts\/340","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mirahan.faculty.unlv.edu\/summercode_2021\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mirahan.faculty.unlv.edu\/summercode_2021\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mirahan.faculty.unlv.edu\/summercode_2021\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mirahan.faculty.unlv.edu\/summercode_2021\/wp-json\/wp\/v2\/comments?post=340"}],"version-history":[{"count":11,"href":"https:\/\/mirahan.faculty.unlv.edu\/summercode_2021\/wp-json\/wp\/v2\/posts\/340\/revisions"}],"predecessor-version":[{"id":834,"href":"https:\/\/mirahan.faculty.unlv.edu\/summercode_2021\/wp-json\/wp\/v2\/posts\/340\/revisions\/834"}],"wp:attachment":[{"href":"https:\/\/mirahan.faculty.unlv.edu\/summercode_2021\/wp-json\/wp\/v2\/media?parent=340"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mirahan.faculty.unlv.edu\/summercode_2021\/wp-json\/wp\/v2\/categories?post=340"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mirahan.faculty.unlv.edu\/summercode_2021\/wp-json\/wp\/v2\/tags?post=340"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}