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('Part 1 - Level Editor/img/Background/pine1.png').convert_alpha() pine2_img = pygame.image.load('Part 1 - Level Editor/img/Background/pine2.png').convert_alpha() mountain_img = pygame.image.load('Part 1 - Level Editor/img/Background/sky_cloud.png').convert_alpha() sky_img = pygame.image.load('Part 1 - Level Editor/img/Background/mountain.png').convert_alpha() run = True while run: for event in pygame.event.get(): if event.type == pygame.QUIT: run = False 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('Part 2 - Platformer/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()