Simple food and debug bugfix
This commit is contained in:
9
game.py
9
game.py
@@ -75,10 +75,11 @@ class Game:
|
||||
if os.path.exists("ENABLE DEBUG"):
|
||||
with open("ENABLE DEBUG", "r") as f:
|
||||
file = f.read().strip()
|
||||
self.cat = data.save.load(file)
|
||||
self.game_loop()
|
||||
print(f"{self.cat.name} says bye")
|
||||
return
|
||||
if file:
|
||||
self.cat = data.save.load(file)
|
||||
self.game_loop()
|
||||
print(f"{self.cat.name} says bye")
|
||||
return
|
||||
title()
|
||||
options = ["New Game", "Quit"]
|
||||
if os.path.exists("saves"):
|
||||
|
||||
Reference in New Issue
Block a user