[fix] Reset score when game over.

This commit is contained in:
2025-04-07 19:48:04 +02:00
parent a8356234a7
commit dad4740261
+1
View File
@@ -218,6 +218,7 @@ def main_loop(screen, joystick):
if game_state == GAME_OVER: # Game over screen if game_state == GAME_OVER: # Game over screen
current_score += score current_score += score
score = 0
high_score.update_high_score(current_score) high_score.update_high_score(current_score)
splash_screen( splash_screen(
screen, screen,