{"id":867,"date":"2025-03-22T09:05:18","date_gmt":"2025-03-22T09:05:18","guid":{"rendered":"https:\/\/www.root42.de\/blog\/?p=867"},"modified":"2025-03-22T09:05:18","modified_gmt":"2025-03-22T09:05:18","slug":"lets-code-commodore-pet-0x02-snakes-on-a-pet","status":"publish","type":"post","link":"https:\/\/www.root42.de\/blog\/?p=867","title":{"rendered":"Let&#8217;s Code Commodore PET 0x02: Snakes on a PET"},"content":{"rendered":"\n<p>In this episode we code a simple game for the PET. It is the classic snake game, where you control a snake that picks up food and grows longer. We learn how to read from the keyboard, and how to limit the speed of the game, as the PET is slow, but not THAT slow.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Let&#039;s Code Commodore PET 0x02: Snakes on a PET\" width=\"840\" height=\"473\" src=\"https:\/\/www.youtube.com\/embed\/UxZhvHx9nsY?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>In this episode we code a simple game for the PET. It is the classic snake game, where you control a snake that picks up food and grows longer. We learn how to read from the keyboard, and how to limit the speed of the game, as the PET is slow, but not THAT slow.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[207,196,147,195],"_links":{"self":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/867"}],"collection":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=867"}],"version-history":[{"count":1,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/867\/revisions"}],"predecessor-version":[{"id":868,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/867\/revisions\/868"}],"wp:attachment":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=867"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}