# Homework 31, problem 1: different window size. # # This is the minimal program from the chapter. # 1. Change the window to 1024x768. # 2. Change the caption to "Big Window". # 3. Run it and confirm the window is noticeably larger. # # Run with: python exercises/31/homework/01-window-size.py import pygame pygame.init() screen = pygame.display.set_mode((800, 600)) pygame.display.set_caption("My Game") clock = pygame.time.Clock() running = True while running: for event in pygame.event.get(): if event.type == pygame.QUIT: running = False screen.fill((0, 0, 0)) pygame.display.flip() clock.tick(60) pygame.quit()