import pygame def run_game(): ## Initialize the pygame submodules and set up the display window. pygame.init() width = 800 height = 800 my_win = pygame.display.set_mode((width,height)) ## Initialize game objects. ## GAME LOOP starts keepGoing = True while (keepGoing): ## handle events for event in pygame.event.get(): if event.type == pygame.QUIT: keepGoing = False ## update game objects ## draw picture and update display screen.fill(pygame.color.Color("navy")) pygame.display.update() ## GAME LOOP ends pygame.quit() run_game()