{"id":72,"date":"2025-04-25T15:12:24","date_gmt":"2025-04-25T15:12:24","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/d_eanes\/?p=72"},"modified":"2025-04-25T15:12:24","modified_gmt":"2025-04-25T15:12:24","slug":"free-friday-snake-game","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/d_eanes\/2025\/04\/25\/free-friday-snake-game\/","title":{"rendered":"FREE FRIDAY SNAKE GAME"},"content":{"rendered":"\n<p>Today I worked on a snake game. This game spawns apples around a grid, once the player eats an apple, their body will update to be one block longer and one point will be added to their score. If the player touches their body with their head, or touches the boundary of the grid, the player dies and the game restarts.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"795\" height=\"819\" src=\"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-25-111106.png\" alt=\"\" class=\"wp-image-73\" srcset=\"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-25-111106.png 795w, https:\/\/theroyalscode.com\/students\/d_eanes\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-25-111106-291x300.png 291w, https:\/\/theroyalscode.com\/students\/d_eanes\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-25-111106-768x791.png 768w\" sizes=\"auto, (max-width: 795px) 100vw, 795px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"751\" height=\"335\" src=\"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-25-111141.png\" alt=\"\" class=\"wp-image-74\" srcset=\"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-25-111141.png 751w, https:\/\/theroyalscode.com\/students\/d_eanes\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-25-111141-300x134.png 300w\" sizes=\"auto, (max-width: 751px) 100vw, 751px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Today I worked on a snake game. This game spawns apples around a grid, once the player eats an apple, their body will update to be one block longer and one point will be added to their score. If the player touches their body with their head, or touches the boundary of the grid, the&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-72","post","type-post","status-publish","format-standard","hentry","category-free-friday"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-json\/wp\/v2\/posts\/72","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-json\/wp\/v2\/comments?post=72"}],"version-history":[{"count":2,"href":"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-json\/wp\/v2\/posts\/72\/revisions"}],"predecessor-version":[{"id":76,"href":"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-json\/wp\/v2\/posts\/72\/revisions\/76"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-json\/wp\/v2\/media?parent=72"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-json\/wp\/v2\/categories?post=72"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-json\/wp\/v2\/tags?post=72"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}