Food and bugfix
This commit is contained in:
9
game.py
9
game.py
@@ -6,6 +6,7 @@ import data.save
|
||||
import data.text
|
||||
import os
|
||||
import json
|
||||
import traceback
|
||||
|
||||
|
||||
class Game:
|
||||
@@ -40,8 +41,8 @@ class Game:
|
||||
options[0:0] = [ # AI came up with this, what the heck is [0:0]
|
||||
"Save",
|
||||
"Save and quit",
|
||||
"Settings",
|
||||
"Quit",
|
||||
"Settings",
|
||||
]
|
||||
else:
|
||||
print(
|
||||
@@ -76,7 +77,7 @@ class Game:
|
||||
print("Save complete.")
|
||||
self.game_loop()
|
||||
|
||||
# TODO: Add shop, make food buyable and add money system
|
||||
# TODO: Add money system
|
||||
def game_loop(self):
|
||||
ui.current_cat = self.cat
|
||||
while True:
|
||||
@@ -155,9 +156,9 @@ if __name__ == "__main__":
|
||||
try:
|
||||
game = Game()
|
||||
game.run()
|
||||
except Exception as e: # horrible coding right here
|
||||
except: # horrible coding right here
|
||||
print("Developer stuff incoming, if you can, tell me what this says:")
|
||||
print(e)
|
||||
traceback.print_exc()
|
||||
print(
|
||||
"Welp, seems that the game crashed, idk why. A common cause of this is pressing CTRL+C, which will cancel some UI stuff and just break the game. If you're on the desktop version, reopen it, if you're on the web version, reload, and don't use CTRL+C.\nOtherwise, great job! You found an issue in the game! If you can, please tell me."
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user