<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>SMALL BYTES by CAO XIZHEN HCI</title>
      <link>https://padlet.com/211683j2/bv4z42b6k0kl8gui</link>
      <description></description>
      <language>en-us</language>
      <pubDate>2025-06-23 16:09:35 UTC</pubDate>
      <lastBuildDate>2025-08-20 08:47:23 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>June day 1 slides!</title>
         <author>211683j2</author>
         <link>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3499439168</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://docs.google.com/presentation/d/1DpoyfatxF5KqyURZ8k2MpHdds8STiDtYB7QLrtawl94/edit" />
         <pubDate>2025-06-23 17:23:12 UTC</pubDate>
         <guid>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3499439168</guid>
      </item>
      <item>
         <title>day 1 colab!</title>
         <author>211683j2</author>
         <link>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3499439785</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://colab.research.google.com/drive/1aAGw59Y-Z6oEZbxlkEXt3ub6Aba2vpcu" />
         <pubDate>2025-06-23 17:24:20 UTC</pubDate>
         <guid>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3499439785</guid>
      </item>
      <item>
         <title>June day 2 slides!</title>
         <author>211683j2</author>
         <link>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3499440306</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://docs.google.com/presentation/d/1hewhtKKhvnlPNx4ci3y-kBFW9f398RgalH7N26juITE/edit?usp=drive_link" />
         <pubDate>2025-06-23 17:25:05 UTC</pubDate>
         <guid>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3499440306</guid>
      </item>
      <item>
         <title>day 2 colab!</title>
         <author>211683j2</author>
         <link>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3499440571</link>
         <description><![CDATA[<p><br/></p><p><br/></p>]]></description>
         <enclosure url="https://colab.research.google.com/drive/1YFOAuyq7xDBaVi82tvPHPn_ispblOA0V?usp=drive_link" />
         <pubDate>2025-06-23 17:25:34 UTC</pubDate>
         <guid>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3499440571</guid>
      </item>
      <item>
         <title>June day 3 slides!</title>
         <author>211683j2</author>
         <link>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3499440693</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://docs.google.com/presentation/d/1iWEFrmjjvGfNHcFRsInKeVw1Xe7StvcKRXyXNx-vfR8/edit?usp=drive_link" />
         <pubDate>2025-06-23 17:25:54 UTC</pubDate>
         <guid>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3499440693</guid>
      </item>
      <item>
         <title>day 3 colab!</title>
         <author>211683j2</author>
         <link>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3499441083</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://colab.research.google.com/drive/1P0_jJgPYiEyhO4aFRhb30xzTAzCduet5?usp=drive_link" />
         <pubDate>2025-06-23 17:26:28 UTC</pubDate>
         <guid>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3499441083</guid>
      </item>
      <item>
         <title>Pygame session 1 slides!</title>
         <author>211683j2</author>
         <link>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3534212435</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://docs.google.com/presentation/d/1Cpig8vbK8kKiNd8dwTf6zZnpbLBukE5E0wzVamR7bVE/edit?usp=sharing" />
         <pubDate>2025-08-02 17:31:30 UTC</pubDate>
         <guid>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3534212435</guid>
      </item>
      <item>
         <title>6 AUG!</title>
         <author>211683j2</author>
         <link>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3534212780</link>
         <description><![CDATA[<p>Task: Please make a post, title it your name, include the link of your replit project and the sprite you've made here!</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-08-02 17:34:05 UTC</pubDate>
         <guid>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3534212780</guid>
      </item>
      <item>
         <title>sample sprites/assets</title>
         <author>211683j2</author>
         <link>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3534212975</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://drive.google.com/drive/folders/1ichG6XLZvEaJ3L6tQ-z3OUknqu7cQesB?usp=sharing" />
         <pubDate>2025-08-02 17:35:43 UTC</pubDate>
         <guid>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3534212975</guid>
      </item>
      <item>
         <title>Python game link made by JERRY</title>
         <author></author>
         <link>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3538386578</link>
         <description><![CDATA[<p>https://replit.com/@JerryDaMouse/Jerry-app#main.py</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-08-08 06:33:05 UTC</pubDate>
         <guid>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3538386578</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3538387554</link>
         <description><![CDATA[<p>instructions:</p><p>press spacebar to shoot zombie and score 50 points to win. =)</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-08-08 06:35:17 UTC</pubDate>
         <guid>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3538387554</guid>
      </item>
      <item>
         <title>the code</title>
         <author></author>
         <link>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3539033061</link>
         <description><![CDATA[<p>import pygame</p><p>import random</p><p>pygame.init()</p><p>WIDTH, HEIGHT = 650, 650</p><p>screen = pygame.display.set_mode((WIDTH, HEIGHT))</p><p>pygame.display.set_caption("My Pygame")</p><p>clock = pygame.time.Clock()</p><p># Load images</p><p>player_image = pygame.image.load("Steve.png").convert_alpha()</p><p>zombie_base_image = pygame.image.load("Zombie.png").convert_alpha()</p><p>font = pygame.font.SysFont(None, 40)</p><p>button_font = pygame.font.SysFont(None, 36)</p><p>player_rect = player_image.get_rect(center=(WIDTH // 2, HEIGHT - 500))</p><p>player_speed = 5</p><p>steve_health = 30</p><p>bullet_damage = 2</p><p>bullet_speed = 10</p><p>waves = [</p><p>    (10, 0, 0),</p><p>    (8, 2, 0),</p><p>    (5, 5, 0),</p><p>    (3, 7, 0),</p><p>    (0, 0, 1),</p><p>]</p><p>zombie_damage = {</p><p>    "small": 3,</p><p>    "big": 5,</p><p>    "boss": 10,</p><p>}</p><p>zombie_max_health = {</p><p>    "small": 10,</p><p>    "big": 20,</p><p>    "boss": 50,</p><p>}</p><p>button_width, button_height = 160, 50</p><p>button_rect = pygame.Rect((WIDTH - button_width) // 2, 420, button_width, button_height)</p><p>button_text = button_font.render("Restart", True, (255, 255, 255))</p><p>def scale_image(img, scale):</p><p>    size = (int(img.get_width() <em> scale), int(img.get_height() </em> scale))</p><p>    return pygame.transform.smoothscale(img, size)</p><p>class Zombie:</p><p>    def <strong>init</strong>(self, x, y, z_type):</p><p>        self.type = z_type</p><p>        if z_type == "small":</p><p>            self.image = zombie_base_image</p><p>        elif z_type == "big":</p><p>            self.image = scale_image(zombie_base_image, 1.5)  # Big scaled 1.5x</p><p>        else:</p><p>            self.image = scale_image(zombie_base_image, 2.0)  # Boss scaled 2.0x</p><p>        self.rect = self.image.get_rect(midbottom=(x, y))</p><p>        <a rel="noopener noreferrer nofollow" href="http://self.health">self.health</a> = zombie_max_health[z_type]</p><p>    def draw(self, surface):</p><p>        surface.blit(self.image, self.rect)</p><p>        bar_w = self.rect.width</p><p>        bar_h = 6</p><p>        fill_w = int(bar_w * (<a rel="noopener noreferrer nofollow" href="http://self.health">self.health</a> / zombie_max_health[self.type]))</p><p>        pygame.draw.rect(surface, (255,0,0), (self.rect.x, self.rect.y - 12, bar_w, bar_h))</p><p>        pygame.draw.rect(surface, (0,255,0), (self.rect.x, self.rect.y - 12, fill_w, bar_h))</p><p>    def move(self):</p><p>        self.rect.y -= 2</p><p>def reset_game():</p><p>    global player_rect, bullets, zombies, steve_health, current_wave, spawn_queue, spawn_timer</p><p>    global game_state, wave_spawned_counts</p><p>    player_<a rel="noopener noreferrer nofollow" href="http://rect.center">rect.center</a> = (WIDTH // 2, HEIGHT - 100)</p><p>    bullets = []</p><p>    zombies = []</p><p>    steve_health = 30</p><p>    current_wave = 0</p><p>    game_state = "playing"</p><p>    spawn_queue = []</p><p>    spawn_timer = 0</p><p>    wave_spawned_counts = {"small": 0, "big": 0, "boss": 0}</p><p>    prepare_spawn_queue(current_wave)</p><p>    return bullets, zombies</p><p>def prepare_spawn_queue(wave_idx):</p><p>    global spawn_queue, wave_spawned_counts</p><p>    spawn_queue = []</p><p>    wave_spawned_counts = {"small": 0, "big": 0, "boss": 0}</p><p>    small_count, big_count, boss_count = waves[wave_idx]</p><p>    spawn_queue += ["small"] * small_count</p><p>    spawn_queue += ["big"] * big_count</p><p>    spawn_queue += ["boss"] * boss_count</p><p>    random.shuffle(spawn_queue)</p><p>bullets = []</p><p>zombies = []</p><p>current_wave = 0</p><p>game_state = "playing"</p><p>spawn_queue = []</p><p>spawn_timer = 0</p><p>wave_spawned_counts = {"small": 0, "big": 0, "boss": 0}</p><p>prepare_spawn_queue(current_wave)</p><p>running = True</p><p>while running:</p><p>    dt = clock.tick(60) / 1000</p><p>    spawn_timer += dt</p><p>    for event in pygame.event.get():</p><p>        if event.type == pygame.QUIT:</p><p>            running = False</p><p>        if game_state in ["gameover", "win"] and event.type == pygame.MOUSEBUTTONDOWN:</p><p>            if button_rect.collidepoint(event.pos):</p><p>                bullets, zombies = reset_game()</p><p>    keys = pygame.key.get_pressed()</p><p>    if game_state == "playing":</p><p>        if keys[pygame.K_LEFT] and player_rect.left &gt; 0:</p><p>            player_rect.x -= player_speed</p><p>        if keys[pygame.K_RIGHT] and player_rect.right &lt; WIDTH:</p><p>            player_rect.x += player_speed</p><p>        if keys[pygame.K_UP] and player_<a rel="noopener noreferrer nofollow" href="http://rect.top">rect.top</a> &gt; 0:</p><p>            player_rect.y -= player_speed</p><p>        if keys[pygame.K_DOWN] and player_rect.bottom &lt; HEIGHT:</p><p>            player_rect.y += player_speed</p><p>        # Shoot bullets continuously when holding space (no cooldown)</p><p>        if keys[pygame.K_SPACE]:</p><p>            bullet_rect = pygame.Rect(player_rect.centerx - 2, player_rect.bottom, 5, 10)</p><p>            bullets.append(bullet_rect)</p><p>        if spawn_queue and spawn_timer &gt;= 0.8:</p><p>            z_type = spawn_queue.pop(0)</p><p>            x = random.randint(50, WIDTH - 50)</p><p>            zombies.append(Zombie(x, HEIGHT + 20, z_type))</p><p>            wave_spawned_counts[z_type] += 1</p><p>            spawn_timer = 0</p><p>        for b in bullets:</p><p>            b.y += bullet_speed</p><p>        bullets = [b for b in bullets if <a rel="noopener noreferrer nofollow" href="http://b.top">b.top</a> &lt; HEIGHT]</p><p>        for z in zombies[:]:</p><p>            z.move()</p><p>            if z.rect.bottom &lt; 0:</p><p>                steve_health -= zombie_damage[z.type]</p><p>                zombies.remove(z)</p><p>        for bullet in bullets[:]:</p><p>            for z in zombies[:]:</p><p>                if bullet.colliderect(z.rect):</p><p>                    <a rel="noopener noreferrer nofollow" href="http://z.health">z.health</a> -= bullet_damage</p><p>                    bullets.remove(bullet)</p><p>                    if <a rel="noopener noreferrer nofollow" href="http://z.health">z.health</a> &lt;= 0:</p><p>                        zombies.remove(z)</p><p>                    break</p><p>        if steve_health &lt;= 0:</p><p>            game_state = "gameover"</p><p>        wave_small, wave_big, wave_boss = waves[current_wave]</p><p>        total_wave_zombies = wave_small + wave_big + wave_boss</p><p>        total_spawned = sum(wave_spawned_counts.values())</p><p>        if total_spawned <mark> total_wave_zombies and len(zombies) </mark> 0:</p><p>            current_wave += 1</p><p>            if current_wave == len(waves):</p><p>                game_state = "win"</p><p>            else:</p><p>                prepare_spawn_queue(current_wave)</p><p>                spawn_timer = 0</p><p>    screen.fill((255, 255, 255))</p><p>    screen.blit(player_image, player_rect)</p><p>    for b in bullets:</p><p>        pygame.draw.rect(screen, (0, 0, 0), b)</p><p>    for z in zombies:</p><p>        z.draw(screen)</p><p>    health_text = font.render(f"Health: {steve_health}", True, (0, 0, 0))</p><p>    screen.blit(health_text, (10, 10))</p><p>    wave_text = font.render(f"Wave: {current_wave + 1 if current_wave &lt; len(waves) else len(waves)}", True, (0, 0, 0))</p><p>    screen.blit(wave_text, (WIDTH - 130, 10))</p><p>    if game_state == "gameover":</p><p>        msg = font.render("GAME OVER", True, (255, 0, 0))</p><p>        screen.blit(msg, msg.get_rect(center=(WIDTH // 2, 250)))</p><p>        final_health = font.render(f"Health left: {max(0, steve_health)}", True, (0, 0, 0))</p><p>        screen.blit(final_health, final_health.get_rect(center=(WIDTH // 2, 300)))</p><p>        pygame.draw.rect(screen, (0, 0, 255), button_rect)</p><p>        screen.blit(button_text, button_text.get_rect(center=button_<a rel="noopener noreferrer nofollow" href="http://rect.center">rect.center</a>))</p><p>    elif game_state == "win":</p><p>        msg = font.render("CONGRATULATIONS!", True, (0, 128, 0))</p><p>        screen.blit(msg, msg.get_rect(center=(WIDTH // 2, 250)))</p><p>        final_health = font.render(f"Health left: {steve_health}", True, (0, 0, 0))</p><p>        screen.blit(final_health, final_health.get_rect(center=(WIDTH // 2, 300)))</p><p>        pygame.draw.rect(screen, (0, 0, 255), button_rect)</p><p>        screen.blit(button_text, button_text.get_rect(center=button_<a rel="noopener noreferrer nofollow" href="http://rect.center">rect.center</a>))</p><p>    pygame.display.flip()</p><p>pygame.quit()</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-08-09 11:26:06 UTC</pubDate>
         <guid>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3539033061</guid>
      </item>
      <item>
         <title>Pygame session 2 slides</title>
         <author>211683j2</author>
         <link>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3548603224</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://docs.google.com/presentation/d/1azZuKp5Zx0I27KmYNSkz-vq6CBwx7KJn_xWb2tGk1gY/edit?slide=id.g4dfce81f19_0_45#slide=id.g4dfce81f19_0_45" />
         <pubDate>2025-08-20 06:01:11 UTC</pubDate>
         <guid>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3548603224</guid>
      </item>
      <item>
         <title>20 Aug</title>
         <author>211683j2</author>
         <link>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3548603956</link>
         <description><![CDATA[<p>Upload your replit link under here!</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-08-20 06:01:57 UTC</pubDate>
         <guid>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3548603956</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3548642103</link>
         <description><![CDATA[<p>import pygame</p><p>pygame.init()</p><p>screen = pygame.display.set_mode([500,500])</p><p>pygame.display.set_caption("My Pygame Window")</p><p>player_image = pygame.image.load("player_image.png").convert()</p><p>player_rect = player_image.get_rect()</p><p>clock = pygame.time.Clock()</p><p>running = True</p><p>while running:</p><p>  screen.fill((255,255,255))</p><p>  pygame.display.update()</p><p>  clock.tick(60)</p><p>  for event in pygame.event.get():</p><p>    if event.type == pygame.QUIT:</p><p>      running = False</p><p>    if event.type == pygame.MOUSEBUTTONDOWN:</p><p>      if event.button == 1:</p><p>        print("Left mouse button clicked at",event.pos)</p><p>      if event.button == 3:</p><p>        print("Right mouse button clicked at",event.pos)</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-08-20 06:35:44 UTC</pubDate>
         <guid>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3548642103</guid>
      </item>
      <item>
         <title>import pygame</title>
         <author></author>
         <link>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3548678346</link>
         <description><![CDATA[<p>pygame.init()</p><p><br/></p><p>screen_width = 500</p><p>screen = pygame.display.set_mode([screen_width, screen_width])</p><p>pygame.display.set_caption("My Pygame Window")</p><p>player_image = pygame.image.load("player_image.png").convert()</p><p>player_rect = player_image.get_rect()</p><p>clock = pygame.time.Clock()</p><p>button = pygame.Rect(190,227,100,50)</p><p><br/></p><p>running = True</p><p>while running:</p><p>  screen.fill((255,255,255))</p><p><br/></p><p>  pygame.draw.rect(screen,(200, 200, 200), button)</p><p>  pos = pygame.mouse.get_pos()</p><p>  if button.collidepoint(pos):</p><p>    pygame.draw.rect(screen, (125,200,200), button)</p><p>  else:</p><p>    pygame.draw.rect(screen, (200,200,200), button)</p><p>  pygame.display.update()</p><p><br/></p><p>  clock.tick(60)</p><p><br/></p><p>  for event in pygame.event.get():</p><p>    if event.type == pygame.QUIT:</p><p>      running = False</p><p>    if event.type == pygame.MOUSEBUTTONDOWN:</p><p>      if event.button == 1:</p><p>        print("Left mouse button clicked at",event.pos)</p><p>      if event.button == 3:</p><p>        print("Right mouse button clicked at",event.pos)</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-08-20 07:10:48 UTC</pubDate>
         <guid>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3548678346</guid>
      </item>
      <item>
         <title>import pygame</title>
         <author></author>
         <link>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3548711121</link>
         <description><![CDATA[<p>import pygame</p><p><br/></p><p>pygame.init()</p><p>screen_width = 500</p><p>screen = pygame.display.set_mode([screen_width, screen_width])</p><p>pygame.display.set_caption("My Pygame Window")</p><p>player_image = pygame.image.load("player_image.png").convert()</p><p>player_rect = player_image.get_rect()</p><p>clock = pygame.time.Clock()</p><p>button = pygame.Rect(190,227,100,50)</p><p><br/></p><p>count = 0</p><p><br/></p><p>running = True</p><p>while running:</p><p>screen.fill((255,255,255))</p><p><br/></p><p>pygame.draw.rect(screen,(200, 200, 200), button)</p><p>pos = pygame.mouse.get_pos()</p><p>if button.collidepoint(pos):</p><p>pygame.draw.rect(screen, (125,200,200), button)</p><p>elif count &lt; 50:</p><p>pygame.draw.rect(screen, (200,200,200), button)</p><p>elif count &gt;= 50:</p><p>pygame.draw.rect(screen, (200, 200, 0), button)</p><p><br/></p><p>pygame.display.update()</p><p><br/></p><p>clock.tick(60)</p><p><br/></p><p>for event in pygame.event.get():</p><p>if event.type == pygame.QUIT:</p><p>running = False</p><p>if event.type == pygame.MOUSEBUTTONDOWN:</p><p>if button.collidepoint(event.pos):</p><p>print("button clicked!")</p><p>count = count + 1</p><p>print(count)</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-08-20 07:39:38 UTC</pubDate>
         <guid>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3548711121</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3548750000</link>
         <description><![CDATA[<p>import pygame</p><p>pygame.init()</p><p>screen_width = 500</p><p>screen = pygame.display.set_mode([screen_width, screen_width])</p><p>clock = pygame.time.Clock()</p><p>count = 0</p><p>running = True</p><p>font = pygame.font.Font(None, 36)</p><p>text = font.render("Everyone likes Farting!", True, (0,0,0))</p><p>while running:</p><p>  screen.fill((255,255,255))</p><p>  </p><p>  pos = pygame.mouse.get_pos()</p><p>    </p><p>  pygame.display.update()</p><p>  clock.tick(60)</p><p>  for event in pygame.event.get():</p><p>    if event.type == pygame.QUIT:</p><p>      running = False</p><p>    if event.type == pygame.MOUSEBUTTONDOWN:</p><p>      print(pos)</p><p>      draw. Rectangle </p>]]></description>
         <enclosure url="" />
         <pubDate>2025-08-20 08:23:44 UTC</pubDate>
         <guid>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3548750000</guid>
      </item>
      <item>
         <title>Final project solution</title>
         <author></author>
         <link>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3548769522</link>
         <description><![CDATA[<pre><code class="language-python">(pygame := __import__('pygame')), pygame.init(), (screen := pygame.display.set_mode((600, 600))), (shapes := []), (font := pygame.font.Font(None, 36)), (c_button := pygame.Rect(10, 10, 150, 50)),(r_button := pygame.Rect(200, 10, 150, 50)), (mode := None), (func := lambda: ((pos := pygame.mouse.get_pos()), [pygame.quit() if event.type == pygame.QUIT else ((mode:="circle") if c_button.collidepoint(pos) else (((mode:="rectangle") if r_button.collidepoint(pos) else shapes.append(mode, pos))) if event.type == pygame.MOUSEBUTTONDOWN else 1) for event in pygame.event.get()], [pygame.draw.circle(screen, (255, 0, 0), shape[1], 20) if shape[0] == "circle" else pygame.draw.rect(screen, (0, 255, 0), (*shape[1], 50, 30)) for shape in shapes], (color := (255, 0, 0)), pygame.draw.rect(screen, color if mode == "circle" else color[::-1], c_button), screen.blit(font.render("Circle", True, (255, 255, 255)), (c_button.x + 10, c_button.y + 10)), pygame.draw.rect(screen, color if mode == "rectangle" else color[::-1], r_button), screen.blit(font.render("Rectangle", True, (255, 255, 255)), (r_button.x + 10, r_button.y + 10)), pygame.display.flip(), func()))</code></pre>]]></description>
         <enclosure url="" />
         <pubDate>2025-08-20 08:47:43 UTC</pubDate>
         <guid>https://padlet.com/211683j2/bv4z42b6k0kl8gui/wish/3548769522</guid>
      </item>
   </channel>
</rss>
