import pygame from pygame.locals import * pygame.init() screen_width = 1000 screen_height = 1000 screen = pygame.display.set_mode((screen_width, screen_height)) pygame.display.set_caption('platformer') #Load Images sun_image = pygame.image.load run = True while run: for event in pygame.event.get(): if event.type == pygame.QUIT: run = False pygame.quit()