{"id":55877,"date":"2022-10-17T16:44:18","date_gmt":"2022-10-17T22:44:18","guid":{"rendered":"http:\/\/rafaelfajardo.com\/portfolio\/?p=55877"},"modified":"2025-11-21T08:25:48","modified_gmt":"2025-11-21T15:25:48","slug":"trying-to-refine-some-code-in-scratch","status":"publish","type":"post","link":"https:\/\/rafaelfajardo.com\/portfolio\/trying-to-refine-some-code-in-scratch\/","title":{"rendered":"Trying to refine some code in Scratch"},"content":{"rendered":"\n<p>Activities: reached out to Ad\u00e1n to see how he&#8217;s doing. <\/p>\n\n\n\n<p>Scott L. reached out to me to see how the month at Anderson Ranch went. We made a date for lunch later today.<\/p>\n\n\n\n<p>His question prompted me to look at Z-ordering in both Scratch and in Snap! for my Seeds of Solitude remake. I can&#8217;t seem to get the clones to always offset by enough so that they don&#8217;t superimpose one another. Scott had done some sketches for a Seeds remake for iOS several years ago, too. I hoped to pick his brain a bit on this.<\/p>\n\n\n\n<p>We went out for tacos at Garibaldi&#8217;s. He&#8217;d never been. It was great, and we got a walk in, too. <\/p>\n\n\n\n<p>We caught up on a number of strands of common threads. <\/p>\n\n\n\n<p>I did ask him if there was a function that could give me either a -1 or a 1 as an output. His solution was to randomize between 1 and 0 and if 0 call it -1 in the next line. It&#8217;s not super elegant, but it is not super clumsy either, and maintains legibility. This will (or should) reduce the number of superimposed clones. It won&#8217;t eliminate them. <\/p>\n\n\n\n<p>I forgot to ask him about Z-ordering. <\/p>\n\n\n\n<p>I need to have tacos with Chris GD. <\/p>\n\n\n\n<p>Scott will loop me into a friday research meeting he, Chris GD, and Jeff E. have been having. I think they&#8217;ve been (over)respectful of my research headspace.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Activities: reached out to Ad\u00e1n to see how he&#8217;s doing. Scott L. reached out to me to see how the month at Anderson Ranch went. We made a date for lunch later today. His question prompted me to look at Z-ordering in both Scratch and in Snap! for my Seeds of Solitude remake. I can&#8217;t [&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":[2,10],"tags":[],"class_list":["post-55877","post","type-post","status-publish","format-standard","hentry","category-games","category-words"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p6PWot-exf","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/rafaelfajardo.com\/portfolio\/wp-json\/wp\/v2\/posts\/55877","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=55877"}],"version-history":[{"count":1,"href":"https:\/\/rafaelfajardo.com\/portfolio\/wp-json\/wp\/v2\/posts\/55877\/revisions"}],"predecessor-version":[{"id":55878,"href":"https:\/\/rafaelfajardo.com\/portfolio\/wp-json\/wp\/v2\/posts\/55877\/revisions\/55878"}],"wp:attachment":[{"href":"https:\/\/rafaelfajardo.com\/portfolio\/wp-json\/wp\/v2\/media?parent=55877"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rafaelfajardo.com\/portfolio\/wp-json\/wp\/v2\/categories?post=55877"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rafaelfajardo.com\/portfolio\/wp-json\/wp\/v2\/tags?post=55877"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}