import pygame def run_game(): ## Initialize the pygame submodules and set up the display window. pygame.init() width = 640 height = 480 my_win = pygame.display.set_mode((width,height)) # circle properties x = width/2 y = height/2 radius = 200 color = (255, 255, 255) clock = pygame.time.Clock() ## The game loop starts here. keepGoing = True while (keepGoing): ## Handle events. for event in pygame.event.get(): if event.type == pygame.QUIT: keepGoing = False # How many milliseconds did the last round through the game loop take? time_passed = clock.tick() ## Draw picture and update display my_win.fill(pygame.color.Color("lightblue")) pygame.draw.circle(my_win, color, (x,y),radius) pygame.display.update() ## The game loop ends here. pygame.quit() ## Call the function run_game. run_game()