diff --git a/src/scenes/game_over.py b/src/scenes/game_over.py index 1910064..7e961ba 100644 --- a/src/scenes/game_over.py +++ b/src/scenes/game_over.py @@ -94,12 +94,12 @@ def __create_button(world: World, name: str): def new_score(world: World, e: Entity): e.remove(Clickable) - if os.path.exists("username.txt"): - with open("username.txt", "r") as f: + if os.path.exists("../username.txt"): + with open("../username.txt", "r") as f: name = f.read() else: name = world.query(Writing).pop() - with open("username.txt", "w") as f: + with open("../username.txt", "w") as f: f.write(name[Text]) try: