import pygame import sys # Initialize Pygame pygame.init() # Set the width and height of the screen width, height = 400, 600 screen = pygame.display.set_mode((width, height)) pygame.display.set_caption("Moz digging down Jaehan") # Define colors WHITE = (255, 255, 255) BLACK = (0, 0, 0) YELLOW = (255, 255, 0) BROWN = (139, 69, 19) # Fill the screen with white screen.fill(WHITE) # Draw Jaehan's body (stick figure) pygame.draw.circle(screen, BLACK, (width//2, height//2 - 50), 20) # Head pygame.draw.line(screen, BLACK, (width//2, height//2 - 30), (width//2, height//2 + 50), 3) # Body pygame.draw.line(screen, BLACK, (width//2, height//2 + 20), (width//2 - 30, height//2 + 80), 3) # Left arm pygame.draw.line(screen, BLACK, (width//2, height//2 + 20), (width//2 + 30, height//2 + 80), 3) # Right arm # Draw the yellow suit pygame.draw.rect(screen, YELLOW, (width//2 - 40, height//2, 80, 100)) # Draw the straw hat hat_radius = 50 pygame.draw.circle(screen, BROWN, (width//2, height//2 - 120), hat_radius) # Hat pygame.draw.rect(screen, BROWN, (width//2 - 40, height//2 - 120, 80, 10)) # Hat brim # Update the display pygame.display.flip() # Main loop while True: for event in pygame.event.get(): if event.type == pygame.QUIT: pygame.quit() sys.exit()