import pygame pygame.init() SCREEN_WIDTH = 800 SCREEN_HEIGHT = int(SCREEN_WIDTH * 0.8) screen = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT)) pygame.display.set_caption('Scrolling Shooter') #define game vars x = 200 y = 200 img = pygame.image.load('img/player/idle/0.png') run = True while run: for event in pygame.event.get(): #quit game if event.type == pygame.QUIT: run = False pygame.quit()