import pygame

pygame.init()

SCREEN_WIDTH = 800
SCREEN_HEIGHT = 600

def load_image(img_path:str, position):
    image = pygame.image.load(img_path)
    surface = image.convert()
    
    transparent_colour = (0,0,0)
    surface.set_colorkey(transparent_colour)

    rect = surface.get_rect(center=position)
    
    return [image, surface, rect]

#----------------------------------------------------------------------------------------

player_pos = [SCREEN_WIDTH // 2, SCREEN_HEIGHT // 2]
player = load_image("", player_pos)

pygame.display.set_caption("Pierwsza Gra")

screen_surface = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT))

clock = pygame.time.Clock()

game_status = True

while game_status:
    events = pygame.event.get()
    for event in events:
        print(event)
        if event.type == pygame.QUIT:
            game_status = False

    pygame.display.update()
    clock.tick(60)

pygame.quit()
quit()

