import pygame
pygame.init()
screen_surface = pygame.display.set_mode((800, 600))
clock = pygame.time.Clock()

def load_image(path, position):
    image = pygame.image.load(path)
    surface = image.convert()
    rect = surface.get_rect(center=position)
    return [image, surface, rect]

player = load_image("player.png" , [0,0])
game_status = True

def draw_image(image_list):
    image, surface, rect = image_list
    
    
while game_status:
    events = pygame.event.get()
    for event in events:
        print(event)

        if event.type == pygame.QUIT:
            game_status = False
    pygame.display.update()
pygame.quit()
