{"id":92,"date":"2025-12-05T16:36:41","date_gmt":"2025-12-05T16:36:41","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/a_ploss\/?p=92"},"modified":"2025-12-05T16:36:41","modified_gmt":"2025-12-05T16:36:41","slug":"free-friday-12-5-25","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/a_ploss\/2025\/12\/05\/free-friday-12-5-25\/","title":{"rendered":"free Friday 12-5-25"},"content":{"rendered":"\n<p>Today i worked on the dodging game and played around with some fun backgrounds and changed some of the code. here&#8217;s screenshots and some of the code and the video i used to help<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"987\" height=\"695\" src=\"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-content\/uploads\/2025\/12\/image-1.png\" alt=\"\" class=\"wp-image-94\" style=\"aspect-ratio:1.4201829851153898;width:373px;height:auto\" srcset=\"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-content\/uploads\/2025\/12\/image-1.png 987w, https:\/\/theroyalscode.com\/students\/a_ploss\/wp-content\/uploads\/2025\/12\/image-1-300x211.png 300w, https:\/\/theroyalscode.com\/students\/a_ploss\/wp-content\/uploads\/2025\/12\/image-1-768x541.png 768w\" sizes=\"auto, (max-width: 987px) 100vw, 987px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>WIN = pygame.display.set_mode((WIDTH, HIEGHT))\npygame.display.set_caption(\"star dodge\")\nBG = pygame.transform.scale(pygame.image.load(\"images\/Sunky background.png\"), (WIDTH, HIEGHT))\nPLAYER_WIDTH = 40\nPLAYER_HIEGHT = 60\nPLAYER_VEL = 4\nSTAR_WIDTH = 10\nSTAR_HIEGHT = 20\nSTAR_VEL = 5\nFONT = pygame.font.SysFont(\"times new roman\", 50)<\/code><\/pre>\n\n\n\n<p>here&#8217;s some of the code what this does is that it creates the window and name of the game and uploads the background picture<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"886\" style=\"aspect-ratio: 1578 \/ 886;\" width=\"1578\" controls src=\"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-content\/uploads\/2025\/12\/20251205-1630-22.5927677.mp4\"><\/video><\/figure>\n\n\n\n<p>here&#8217;s a video of the gameplay you just dodge the purple rectangles(called stars) with hot-pink rectangle with a time counting up and the background has 2 speakers because I was having fun playing with backgrounds and i liked this one the most<\/p>\n\n\n\n<p>here&#8217;s the video i used to help me code this game<\/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=\"How to Make a Game in Python\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/waY3LfJhQLY?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\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today i worked on the dodging game and played around with some fun backgrounds and changed some of the code. here&#8217;s screenshots and some of the code and the video i used to help here&#8217;s some of the code what this does is that it creates the window and name of the game and uploads [&hellip;]<\/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-92","post","type-post","status-publish","format-standard","hentry","category-free-friday"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-json\/wp\/v2\/posts\/92","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-json\/wp\/v2\/comments?post=92"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-json\/wp\/v2\/posts\/92\/revisions"}],"predecessor-version":[{"id":99,"href":"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-json\/wp\/v2\/posts\/92\/revisions\/99"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-json\/wp\/v2\/media?parent=92"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-json\/wp\/v2\/categories?post=92"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-json\/wp\/v2\/tags?post=92"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}