{"id":1001,"date":"2014-12-01T03:54:48","date_gmt":"2014-12-01T03:54:48","guid":{"rendered":"http:\/\/astoryisnotatree.net\/?p=1001"},"modified":"2020-05-06T20:03:51","modified_gmt":"2020-05-06T20:03:51","slug":"orbitshift","status":"publish","type":"post","link":"https:\/\/astoryisnotatree.net\/?p=1001","title":{"rendered":"Games from Nothing: Black &#038; White Exercise #3 \u2014 Orbitshift"},"content":{"rendered":"<p><a href=\"http:\/\/astoryisnotatree.net\/wp-content\/uploads\/2014\/12\/k4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-1003\" src=\"http:\/\/astoryisnotatree.net\/wp-content\/uploads\/2014\/12\/k4-300x198.png\" alt=\"k4\" width=\"502\" height=\"331\" \/><\/a><\/p>\n<p>For this assignment (Amusement toy), I modified the solar system code to make it more fun to play with. The player controls the light blue circle, and based on their positioning, the center white circle increases or decreases its radius, and the orbit patterns and speed of the blue square and it&#8217;s circle vary.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-1002\" src=\"http:\/\/astoryisnotatree.net\/wp-content\/uploads\/2014\/12\/k6-300x198.png\" alt=\"k6\" width=\"505\" height=\"333\" srcset=\"https:\/\/astoryisnotatree.net\/wp-content\/uploads\/2014\/12\/k6-300x198.png 300w, https:\/\/astoryisnotatree.net\/wp-content\/uploads\/2014\/12\/k6.png 591w\" sizes=\"auto, (max-width: 505px) 100vw, 505px\" \/><\/p>\n<p>I coded in a change that moved the red circle from right to left based on the player&#8217;s mouse position but got rid of it after a while. I liked the idea, but I wanted to focus on the movement of the center white circle, and think of it either as an obstacle or goal, some sort of boundary.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-1004\" src=\"http:\/\/astoryisnotatree.net\/wp-content\/uploads\/2014\/12\/k5-300x196.png\" alt=\"k5\" width=\"502\" height=\"328\" \/><\/p>\n<p>I added in a score counter that increased over time as long as the player didn&#8217;t collide with any objects, but I didn&#8217;t see much of a purpose in it, and the game was too abstract to score at such an early stage.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For this assignment (Amusement toy), I modified the solar system code to make it more fun to play with. The player controls the light blue circle, and based on their positioning, the center white circle increases or decreases its radius,&#8230;<\/p>\n","protected":false},"author":30,"featured_media":1003,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[92,16],"class_list":["post-1001","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-games-from-nothing","tag-transforms","tag-black-white-exercises","wpcat-5-id"],"_links":{"self":[{"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=\/wp\/v2\/posts\/1001","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=\/wp\/v2\/users\/30"}],"replies":[{"embeddable":true,"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1001"}],"version-history":[{"count":5,"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=\/wp\/v2\/posts\/1001\/revisions"}],"predecessor-version":[{"id":13992,"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=\/wp\/v2\/posts\/1001\/revisions\/13992"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=\/wp\/v2\/media\/1003"}],"wp:attachment":[{"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}