import pygame from pygame.locals import * import time pygame.init() screen_width = 1000 screen_height = 1000 screen = pygame.display.set_mode((screen_width, screen_height)) pygame.display.set_caption('faith through fire') #load images bg_img = pygame.image.load('game background.png') class Player(): def __init__(self,x ,y): img = pygame.image.load('main man.png') self.image = pygame.transform.scale(img, (120, 120)) self.rect = self.image.get_rect() self.rect.x = x self.rect.y = y def update(self): #draw player onto screen screen.blit(self.image, self.rect) player = Player(100) run = True while run == True: Player.update() for event in pygame.event.get(): if event.type == pygame.QUIT: run = False screen.blit(bg_img,(0,0)) pygame.display.update() pygame.quit()