# Chapter 32 try-this: a simple house scene. # # In the draw section below, draw: # - A large rectangle for the house body. # - A triangle (polygon) for the roof above it. # - A small rectangle for the door. # - A yellow circle for the sun in one corner. # # Adjust the coordinates and colours until the scene looks reasonable. # # Run with: python exercises/32/01-scene.py import pygame pygame.init() screen = pygame.display.set_mode((800, 600)) pygame.display.set_caption("Scene") clock = pygame.time.Clock() running = True while running: for event in pygame.event.get(): if event.type == pygame.QUIT: running = False screen.fill((135, 206, 235)) # TODO: draw the house body, roof, door and sun here pygame.display.flip() clock.tick(60) pygame.quit()