python_game/stats.py

11 lines
251 B
Python

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