import pygame
pygame.init()

SCREEN_WIDTH = 800
SCREEN_HEIGHT = 600
screen_suface = pygame.display.set_mode((SCREEN_WIDTH,SCREEN_HEIGHT))
pygame.display.set_caption("Gierka")

game_status = True

def load_img(path:str,position):
    image = pygame.image.load(path)
    surface = image.convert()
    
    t_color = (0,0,0)
    surface.set_colorkey(t_color)
    rect = surface.get_rect(center=position)
    return [image,surface,rect]

def print_img(imgData):
    image,surface,rect = imgData
    screen_suface.blit(surface,rect)
    pass


player_pos = [SCREEN_WIDTH // 2,SCREEN_HEIGHT // 2]
player = load_img('player.png',player_pos)

while(game_status):
    events = pygame.event.get()
    for event in events:
        if event.type == pygame.QUIT:
            game_status = False
            
    print_img(player)
    pygame.display.update()
    pass
pygame.quit()
quit()