{"id":101,"date":"2012-10-18T18:00:14","date_gmt":"2012-10-18T18:00:14","guid":{"rendered":"https:\/\/brettjpeterson.com\/blog\/?p=101"},"modified":"2013-01-19T18:30:52","modified_gmt":"2013-01-19T18:30:52","slug":"bubble-rider-my-first-complete-game-in-processing","status":"publish","type":"post","link":"https:\/\/brettjpeterson.com\/blog\/2012\/10\/18\/bubble-rider-my-first-complete-game-in-processing\/","title":{"rendered":"Bubble Rider &#8211; my first complete game in Processing"},"content":{"rendered":"<p><a href=\"https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/Screen-Shot-2012-10-18-at-1.11.23-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-102\" title=\"bubble rider title\" alt=\"\" src=\"https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/Screen-Shot-2012-10-18-at-1.11.23-PM-300x199.png\" width=\"300\" height=\"199\" srcset=\"https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/Screen-Shot-2012-10-18-at-1.11.23-PM-300x199.png 300w, https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/Screen-Shot-2012-10-18-at-1.11.23-PM-1024x680.png 1024w, https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/Screen-Shot-2012-10-18-at-1.11.23-PM-451x300.png 451w, https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/Screen-Shot-2012-10-18-at-1.11.23-PM.png 1198w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nI just completed my first full game in Processing! It&#8217;s called Bubble Rider and you can play it here:<\/p>\n<p><a href=\"https:\/\/brettjpeterson.com\/processing\/bubble_rider\/web-export\/\">Play\u00a0Bubble Rider<\/a><\/p>\n<p>It&#8217;s a pretty simple game; you control a green and blue bubble as obstacles wiz past them. I&#8217;ll probably tweak it to make it more fun and have the difficulty ramp up nicely, but for now, it&#8217;s functional and done.<\/p>\n<p><a href=\"https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7669.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-104\" title=\"button\" alt=\"\" src=\"https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7669-300x225.jpg\" width=\"300\" height=\"225\" srcset=\"https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7669-300x225.jpg 300w, https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7669-1024x768.jpg 1024w, https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7669-400x300.jpg 400w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>I also made controllers for the game using some arcade buttons and an Arduino that communicates to the sketch over a serial connection. The switch is connected to the normally open and ground connectors.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>The Arduino code is here:\u00a0<a href=\"https:\/\/github.com\/ptterb\/button_press\">https:\/\/github.com\/ptterb\/button_press<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just completed my first full game in Processing! It&#8217;s called Bubble Rider and you can play it here: Play\u00a0Bubble Rider It&#8217;s a pretty simple game; you control a green and blue bubble as obstacles wiz past them. I&#8217;ll probably tweak it to make it more fun and have the difficulty ramp up nicely, but [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,3,4],"tags":[],"class_list":["post-101","post","type-post","status-publish","format-standard","hentry","category-introduction-to-computational-media","category-itp","category-physcomp"],"_links":{"self":[{"href":"https:\/\/brettjpeterson.com\/blog\/wp-json\/wp\/v2\/posts\/101","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/brettjpeterson.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/brettjpeterson.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/brettjpeterson.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/brettjpeterson.com\/blog\/wp-json\/wp\/v2\/comments?post=101"}],"version-history":[{"count":3,"href":"https:\/\/brettjpeterson.com\/blog\/wp-json\/wp\/v2\/posts\/101\/revisions"}],"predecessor-version":[{"id":198,"href":"https:\/\/brettjpeterson.com\/blog\/wp-json\/wp\/v2\/posts\/101\/revisions\/198"}],"wp:attachment":[{"href":"https:\/\/brettjpeterson.com\/blog\/wp-json\/wp\/v2\/media?parent=101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/brettjpeterson.com\/blog\/wp-json\/wp\/v2\/categories?post=101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/brettjpeterson.com\/blog\/wp-json\/wp\/v2\/tags?post=101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}