import pygame
pygame.init()

szerokosc = 800
wysokosc = 600
screen = pygame.display.set_mode((szerokosc, wysokosc))
pygame.display.set_caption("App 1")

black = (0, 0, 0)
neon = (255, 20, 147)

clock = pygame.time.Clock()
font = pygame.font.SysFont("Arial", 30)

working = True
s = 0

while working:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            working = False
        if event.type == pygame.MOUSEBUTTONDOWN:
            s += 1  

    screen.fill(black)


    text = font.render(f"Kliknięcia: {s}", True, neon)
    screen.blit(text, (50, 50))

    pygame.display.update()
    clock.tick(60)

pygame.quit()