From 23254b3d89f84df9b19e375440fc5dfbfab1a2d6 Mon Sep 17 00:00:00 2001 From: Marija Boiko Date: Mon, 29 Jan 2024 09:10:11 +0000 Subject: [PATCH] Update stats.py --- stats.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/stats.py b/stats.py index 2cba366..93213e9 100644 --- a/stats.py +++ b/stats.py @@ -1,11 +1,11 @@ -import pygame - -class Stats(): - def __init__(self): - self.reset_stats() - self.run_game = True - with open("highscore.txt", "r") as f: - self.high_score = int(f.readline()) - def reset_stats(self): - self.guns_left = 3 +import pygame + +class Stats(): + def __init__(self): + self.reset_stats() + self.run_game = True + with open("highscores.txt", "r") as f: + self.high_score = int(f.readline()) + def reset_stats(self): + self.guns_left = 3 self.score = 0 \ No newline at end of file