def przyklad(x, y):
    print(f"{x}, {y}")

przyklad(1, 2)

def przyklad(x):
    print(f"{x}")

przyklad(5)

import pygame

pygame.init()

SCREEN_WIGHT = 800
SCREEN_HEIGHT =  600

screen_surface = pygame.display.set_mode((SCREEN_WIGHT, SCREEN_HEIGHT))

pygame.display.set_caption("pierwsza gra")

clock = pygame.time.Clock()

def load_image(img_path:str, position): 
    image = pygame.image.load(img_path)
    surface = image.convert()
    transperant_color = (0, 0, 0)
    surface.set_colorkey(transperant_color)

    rect = surface.get_rect(center=position)
    return [image, surface, rect]


game_running = True
player_pos = [SCREEN_WIGHT // 2, SCREEN_HEIGHT // 2]
player = load_image("brawl stars png.png", player_pos)
def print_image(img_list)-> None:
    image, surface, rect = img_list 

    screen_surface.blit(surface, rect) 

while game_running:
    events = pygame.event.get()

    for event in events:
        print(event)
        if event.type == pygame.QUIT:
            game_running = False
    
    print_image(player)
    pygame.display.update()
    clock.tick(60)





pygame.quit()
quit()





































