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("Guy with Glue on His Face") # Define colors WHITE = (255, 255, 255) BLACK = (0, 0, 0) # Fill the screen with white screen.fill(WHITE) # Draw the person'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 + 50), 3) # Left arm pygame.draw.line(screen, BLACK, (width//2, height//2 + 20), (width//2 + 30, height//2 + 50), 3) # Right arm pygame.draw.line(screen, BLACK, (width//2, height//2 - 80), (width//2 - 30, height//2 - 50), 3) # Left arm pygame.draw.line(screen, BLACK, (width//2, height//2 - 80), (width//2 + 30, height//2 - 50), 3) # Right arm # Draw the glue on the person's face glue_radius = 10 pygame.draw.circle(screen, BLACK, (width//2 - 15, height//2 - 20), glue_radius) # Glue on left cheek pygame.draw.circle(screen, BLACK, (width//2 + 15, height//2 - 20), glue_radius) # Glue on right cheek # 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()