pong - text

This commit is contained in:
2026-03-17 13:37:48 +01:00
parent eb28601287
commit cdff42f38f

View File

@@ -19,7 +19,7 @@ odleglosc = ship.distance_to(sprite)
def napis():
winner_txt = f"Odległość: {odleglosc} w pixelach"
screen.draw.text(
winner_txt, (WIDTH // 3, HEIGHT // 2), color="red", fontsize=60
winner_txt, (WIDTH // 3, 20), color="red", fontsize=60
)
# Najważniejsze funkcje sterujące
def update():