{"id":174,"date":"2026-04-24T15:13:28","date_gmt":"2026-04-24T15:13:28","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/d_eanes\/?p=174"},"modified":"2026-04-24T15:13:28","modified_gmt":"2026-04-24T15:13:28","slug":"free-friday-4-24-2026","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/d_eanes\/2026\/04\/24\/free-friday-4-24-2026\/","title":{"rendered":"Free Friday: 4\/24\/2026"},"content":{"rendered":"\n<p>Today, I worked on a game in collaboration with my friends Ean and Christian. I worked on gathering assets such as images and sound effects, Christian handled the editing of the images, while Ean handled most of the programming and map design.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    def __init__(self):\n        self.black = pygame.Surface((800, 800))\n        self.black.fill((0, 0, 0))<\/code><\/pre>\n\n\n\n<p>^This will create the game window.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>        # Fade-in effect\n        self.alpha = 255\n        self.fade_speed = 2<\/code><\/pre>\n\n\n\n<p>^This will create a smooth fade-in effect for the title screen.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n    def generate_static(self):\n        \"\"\"Creates a grainy static effect.\"\"\"\n        for x in range(0, 800, 4):\n            for y in range(0, 800, 4):\n                shade = random.randint(0, 40)\n                pygame.draw.rect(self.static_surface, (shade, shade, shade), (x, y, 4, 4))<\/code><\/pre>\n\n\n\n<p>^This will create a grainy, static effect for each camera, making it harder for the player to see.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"792\" height=\"827\" src=\"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-24-110355.png\" alt=\"\" class=\"wp-image-175\" srcset=\"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-24-110355.png 792w, https:\/\/theroyalscode.com\/students\/d_eanes\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-24-110355-287x300.png 287w, https:\/\/theroyalscode.com\/students\/d_eanes\/wp-content\/uploads\/2026\/04\/Screenshot-2026-04-24-110355-768x802.png 768w\" sizes=\"auto, (max-width: 792px) 100vw, 792px\" \/><\/figure>\n\n\n\n<p>This game has helped me learn the differences in audio files(FLAC, MP3, WAV, etc.) and their different use cases. MP3s can be lossy depending on bitrate, but are smaller compared to FLAC files which preserves the crystal-clear studio quality of a sound.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today, I worked on a game in collaboration with my friends Ean and Christian. I worked on gathering assets such as images and sound effects, Christian handled the editing of the images, while Ean handled most of the programming and map design. ^This will create the game window. ^This will create a smooth fade-in effect&#8230;<\/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-174","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-json\/wp\/v2\/posts\/174","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=174"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-json\/wp\/v2\/posts\/174\/revisions"}],"predecessor-version":[{"id":176,"href":"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-json\/wp\/v2\/posts\/174\/revisions\/176"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-json\/wp\/v2\/media?parent=174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-json\/wp\/v2\/categories?post=174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-json\/wp\/v2\/tags?post=174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}