{"id":55961,"date":"2022-11-10T22:00:00","date_gmt":"2022-11-11T05:00:00","guid":{"rendered":"http:\/\/rafaelfajardo.com\/portfolio\/?p=55961"},"modified":"2022-11-11T09:27:06","modified_gmt":"2022-11-11T16:27:06","slug":"tweaked-my-back","status":"publish","type":"post","link":"https:\/\/rafaelfajardo.com\/portfolio\/tweaked-my-back\/","title":{"rendered":"Tweaked my back"},"content":{"rendered":"\n<p>either in my sleep or while making the bed. <\/p>\n\n\n\n<p>I have to add daily exercise to my routine.<\/p>\n\n\n\n<p>I&#8217;m in a hurry to get to my coffee and to the studio, I need to exercise so that I can make work longer into the future.<\/p>\n\n\n\n<p>The version of p5.js used by Kris DB in their tutorial may have been deprecated because I am getting variable scope errors. Their <em>Space Invaders<\/em> clone is still attractive for its concision. <em>Coding Train&#8217;s <\/em>version will be my next option.<\/p>\n\n\n\n<p>I just found out that the p5play library has been handed off and revised. It is now &#8220;owned&#8221; by Computer Science teachers. The website says it is now version 3.2.4. This development validates my hosting of the old version for <em>Crosser<\/em> and <em>La Migra<\/em> rewrite. It is nevertheless distressing.<\/p>\n\n\n\n<p>As I&#8217;m retyping the ~18 month old version of <em>Space Invaders<\/em> it is crashing my browsers (both Firefox and Chrome) and not loading the tiny png files. I haven&#8217;t tried running Dan S&#8217;s six year old code to compare. That is likely next step.<\/p>\n\n\n\n<p>Dan S&#8217;s code runs the first time in Safari, flawlessly. One contrast between the two is that Dan S uses functions while Kris uses OOP syntax and constructors. Javascript is skittish about OOP and so this may be the key failing that has been deprecated. I need to check a p5.js version history to see if that is what happened. Kris seems to have disappeared from the internet and so I hope nothing bad has befallen them. I appreciate their teaching style.<\/p>\n\n\n\n<p>I&#8217;ve copied Kris&#8217;s code into the p5.js editor, in its entirety. I&#8217;ve download it, Dan S&#8217;s, and that of two others for further study.<\/p>\n\n\n\n<p>It may be possible to build on the shoulders of Dan S&#8217;s code. The newer two include reset buttons.<\/p>\n\n\n\n<p>I wonder if Eric wants a version with an Atari controller. I haven&#8217;t looked into USB Atari controllers. <\/p>\n\n\n\n<p>The Hyperkin &#8220;Trooper II&#8221; is at a super low markdown at our local Microcenter. Only available in-store, though, so it&#8217;s a loss leader. It&#8217;s available at the monopoly online store at 6x the price.<\/p>\n\n\n\n<p>The Hyperkin is wired and has six buttons and a joystick. It has a 10&#8242; cable.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>either in my sleep or while making the bed. I have to add daily exercise to my routine. I&#8217;m in a hurry to get to my coffee and to the studio, I need to exercise so that I can make work longer into the future. The version of p5.js used by Kris DB in their [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[10],"tags":[],"class_list":["post-55961","post","type-post","status-publish","format-standard","hentry","category-words"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p6PWot-eyB","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/rafaelfajardo.com\/portfolio\/wp-json\/wp\/v2\/posts\/55961","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rafaelfajardo.com\/portfolio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rafaelfajardo.com\/portfolio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rafaelfajardo.com\/portfolio\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rafaelfajardo.com\/portfolio\/wp-json\/wp\/v2\/comments?post=55961"}],"version-history":[{"count":4,"href":"https:\/\/rafaelfajardo.com\/portfolio\/wp-json\/wp\/v2\/posts\/55961\/revisions"}],"predecessor-version":[{"id":55965,"href":"https:\/\/rafaelfajardo.com\/portfolio\/wp-json\/wp\/v2\/posts\/55961\/revisions\/55965"}],"wp:attachment":[{"href":"https:\/\/rafaelfajardo.com\/portfolio\/wp-json\/wp\/v2\/media?parent=55961"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rafaelfajardo.com\/portfolio\/wp-json\/wp\/v2\/categories?post=55961"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rafaelfajardo.com\/portfolio\/wp-json\/wp\/v2\/tags?post=55961"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}