import pygame from pygame.locals import * pygame.init() screen_width = 1280 screen_height = 960 screen = pygame.display.set_mode((screen_width, screen_height)) pygame.display.set_caption('desert jump') # images loaded bg_img = pygame.image.load('img/BG.png') run = True while run: screen.blit(bg_img, (0, 0)) for event in pygame.event.get(): if event.type == pygame.QUIT: run = False #background image pygame.display.update() pygame.quit()