import pygame pygame.init() #game window SCREEN_WIDTH = 800 SCREEN_HEIGHT = int(SCREEN_WIDTH * 0.8) screen = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT)) pygame.display.set_caption('shooter') x = 200 y = 200 img = pygame.image.load('img/player/Idle/0.png') rect = img.get_rect() rect.center =(x, y) run = True while run: screen.blit(img, rect) for event in pygame.event.get(): #quit game if event.type == pygame.QUIT: run = False pygame.display.update pygame.quit()