import pygame pygame.init() #game window SCREEN_WIDTH = 800 SCREEN_HEIGHT = 640 LOWER_MARGIN = 100 SIDE_MARGIN = 300 screen = pygame.display.set_mode((SCREEN_WIDTH + SIDE_MARGIN, SCREEN_HEIGHT + LOWER_MARGIN)) pygame.display.set_caption('Level Editor') #load images pine1_img = pygame.image.load('img/Background/pine1_img.png').convert_alpha() pine2_img = pygame.image.load('img/Background/pine2_img.png').convert_alpha() mountain_img = pygame.image.load('img/Background/mountain.png').convert_alpha() sky_img = pygame.image.load('img/Background/sky_cloud.png').convert_alpha() #create function for drawing background def draw_bg(): screen.blit(sky_img, (0, 0)) run = True while run: draw_bg() for event in pygame.event.get(): if event.type == pygame.QUIT: run = False pygame.display.update() pygame.quit