# Game loop while True: for event in pygame.event.get(): if event.type == pygame.QUIT: pygame.quit() sys.exit()
# Set up the display screen = pygame.display.set_mode((WIDTH, HEIGHT))
import pygame import sys
# Set up the font font = pygame.font.Font(None, 36)
# Fill the screen with black screen.fill((0, 0, 0))