From eb9722a4c3e6a882857942c00383519afe331ad6 Mon Sep 17 00:00:00 2001 From: Jonas Zeunert Date: Thu, 1 Sep 2022 02:16:01 +0200 Subject: [PATCH] dies und das --- GameState.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GameState.py b/GameState.py index a8ff4a4..be7ba02 100644 --- a/GameState.py +++ b/GameState.py @@ -128,4 +128,5 @@ class GameState: if player.hasHighscore: with open(config.HIGHSCORE_FILE, "w+") as file: file.writelines([str(player.score)]) - file.close() \ No newline at end of file + file.close() + self.highscore = player.score \ No newline at end of file