{"id":122,"date":"2026-05-26T13:55:07","date_gmt":"2026-05-26T13:55:07","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/c_jones\/?p=122"},"modified":"2026-05-26T13:55:07","modified_gmt":"2026-05-26T13:55:07","slug":"free-friday-5-8-26","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/c_jones\/2026\/05\/26\/free-friday-5-8-26\/","title":{"rendered":"Free Friday 5\/8\/26"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Today, I worked on a Turtle\u2011based dinosaur jumping game.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wn = turtle.Screen()\nwn.bgpic(\"background.gif\")\nwn.setup(height=320, width=800)\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>This initializes the game window and loads the background image<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>jumper.dy = 0\ngravity = -0.8\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>This creates the jump physics by giving the dinosaur<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def jump():\n    if jumper.state == \"ready\":\n        jumper.dy = 12\n        jumper.state = \"jumping\"\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>This lets the dinosaur jump when the player presses the spacebar.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"557\" src=\"https:\/\/theroyalscode.com\/students\/c_jones\/wp-content\/uploads\/2026\/05\/image-1-1024x557.png\" alt=\"\" class=\"wp-image-123\" srcset=\"https:\/\/theroyalscode.com\/students\/c_jones\/wp-content\/uploads\/2026\/05\/image-1-1024x557.png 1024w, https:\/\/theroyalscode.com\/students\/c_jones\/wp-content\/uploads\/2026\/05\/image-1-300x163.png 300w, https:\/\/theroyalscode.com\/students\/c_jones\/wp-content\/uploads\/2026\/05\/image-1-768x418.png 768w, https:\/\/theroyalscode.com\/students\/c_jones\/wp-content\/uploads\/2026\/05\/image-1.png 1205w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Today, I worked on a Turtle\u2011based dinosaur jumping game. This initializes the game window and loads the background<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-122","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/c_jones\/wp-json\/wp\/v2\/posts\/122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/c_jones\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/c_jones\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/c_jones\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/c_jones\/wp-json\/wp\/v2\/comments?post=122"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/c_jones\/wp-json\/wp\/v2\/posts\/122\/revisions"}],"predecessor-version":[{"id":124,"href":"https:\/\/theroyalscode.com\/students\/c_jones\/wp-json\/wp\/v2\/posts\/122\/revisions\/124"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/c_jones\/wp-json\/wp\/v2\/media?parent=122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/c_jones\/wp-json\/wp\/v2\/categories?post=122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/c_jones\/wp-json\/wp\/v2\/tags?post=122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}