{"id":1302,"date":"2014-12-08T12:48:43","date_gmt":"2014-12-08T12:48:43","guid":{"rendered":"http:\/\/astoryisnotatree.net\/?p=1302"},"modified":"2020-04-29T21:24:17","modified_gmt":"2020-04-29T21:24:17","slug":"bw-exercise-4-magic-wand","status":"publish","type":"post","link":"https:\/\/r6g.ad7.mwp.accessdomain.com\/?p=1302","title":{"rendered":"Games from Nothing: Black &#038; White Exercise #4 \u2014 Magic Wand"},"content":{"rendered":"<p>For the fourth exercise, I decided to code a particle system that would look lie sparks coming out of a wand. To represent a wand, I used a long brown rectangle, and to represent the sparks, I used an array of transparent colorful circles that quickly shrink away after they appear.<\/p>\n<p>The start screen looks like this:<\/p>\n<p><a href=\"http:\/\/astoryisnotatree.net\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-08-at-7.36.32-AM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-1303\" src=\"http:\/\/astoryisnotatree.net\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-08-at-7.36.32-AM-300x177.png\" alt=\"Screen Shot 2014-12-08 at 7.36.32 AM\" width=\"500\" height=\"295\" srcset=\"https:\/\/r6g.ad7.mwp.accessdomain.com\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-08-at-7.36.32-AM-300x177.png 300w, https:\/\/r6g.ad7.mwp.accessdomain.com\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-08-at-7.36.32-AM-1024x605.png 1024w, https:\/\/r6g.ad7.mwp.accessdomain.com\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-08-at-7.36.32-AM-624x368.png 624w, https:\/\/r6g.ad7.mwp.accessdomain.com\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-08-at-7.36.32-AM.png 1244w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>And once a player touches and drags the wand, magical sparks begin to fly!<\/p>\n<p><a href=\"http:\/\/astoryisnotatree.net\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-08-at-7.36.13-AM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-1304\" src=\"http:\/\/astoryisnotatree.net\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-08-at-7.36.13-AM-300x170.png\" alt=\"Screen Shot 2014-12-08 at 7.36.13 AM\" width=\"501\" height=\"284\" srcset=\"https:\/\/r6g.ad7.mwp.accessdomain.com\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-08-at-7.36.13-AM-300x170.png 300w, https:\/\/r6g.ad7.mwp.accessdomain.com\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-08-at-7.36.13-AM-1024x582.png 1024w, https:\/\/r6g.ad7.mwp.accessdomain.com\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-08-at-7.36.13-AM-624x355.png 624w, https:\/\/r6g.ad7.mwp.accessdomain.com\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-08-at-7.36.13-AM.png 1088w\" sizes=\"auto, (max-width: 501px) 100vw, 501px\" \/><\/a><\/p>\n<p>I also decided to loop in a little magical sound to set the feel\u00a0for the game.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For the fourth exercise, I decided to code a particle system that would look lie sparks coming out of a wand. To represent a wand, I used a long brown rectangle, and to represent the sparks, I used an array&#8230;<\/p>\n","protected":false},"author":29,"featured_media":1303,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[16,90],"class_list":["post-1302","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-games-from-nothing","tag-black-white-exercises","tag-particle-systems","wpcat-5-id"],"_links":{"self":[{"href":"https:\/\/r6g.ad7.mwp.accessdomain.com\/index.php?rest_route=\/wp\/v2\/posts\/1302","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/r6g.ad7.mwp.accessdomain.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/r6g.ad7.mwp.accessdomain.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/r6g.ad7.mwp.accessdomain.com\/index.php?rest_route=\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"https:\/\/r6g.ad7.mwp.accessdomain.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1302"}],"version-history":[{"count":3,"href":"https:\/\/r6g.ad7.mwp.accessdomain.com\/index.php?rest_route=\/wp\/v2\/posts\/1302\/revisions"}],"predecessor-version":[{"id":13860,"href":"https:\/\/r6g.ad7.mwp.accessdomain.com\/index.php?rest_route=\/wp\/v2\/posts\/1302\/revisions\/13860"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/r6g.ad7.mwp.accessdomain.com\/index.php?rest_route=\/wp\/v2\/media\/1303"}],"wp:attachment":[{"href":"https:\/\/r6g.ad7.mwp.accessdomain.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/r6g.ad7.mwp.accessdomain.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1302"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/r6g.ad7.mwp.accessdomain.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}