Too much to list

This commit is contained in:
2026-04-12 15:39:18 -04:00
parent 13c701dfe9
commit 7111c6220d
6 changed files with 228 additions and 25 deletions

73
game.py
View File

@@ -10,6 +10,51 @@ class Game:
def __init__(self):
self.cat = None
def settings(self):
while True:
match ui.select(
"Please choose an option", ["Prepare for savefile transfer", "Back"]
):
case "Back":
return False
case "Prepare for savefile transfer":
print(
"This tool is for transfering your savefile to another device without causing the tamper detection."
)
print(
"If you confirm, the game will save and then exit, at this point you will copy your game files and saves folder over."
)
print(
"DO NOT RELAUNCH THE GAME before copying or it will undo this tool"
)
if ui.confirm():
data.save.save(self.cat)
return True
return False
def options_menu(self):
while True:
match ui.select(
"Please choose an option",
["Save", "Save and quit", "Quit", "Settings", "Back"],
):
case "Save":
data.save.save(self.cat)
print("Saved")
case "Save and quit":
print("Goodbye!")
data.save.save(self.cat)
return True
case "Quit":
if ui.confirm("Are you sure you want to quit without saving?"):
print("Goodbye!")
return True
case "Settings":
if self.settings():
return True
case "Back":
return False
def new_game(self):
self.cat = shelter()
print("Saving...")
@@ -23,27 +68,17 @@ class Game:
case "Go to your house":
house(self.cat)
case "Options":
while True:
match ui.select(
"Please choose an option",
["Save", "Save and quit", "Quit", "Back"],
):
case "Save":
data.save.save(self.cat)
case "Save and quit":
print("Goodbye!")
data.save.save(self.cat)
return
case "Quit":
if ui.confirm(
"Are you sure you want to quit without saving?"
):
print("Goodbye!")
return
case "Back":
break
if self.options_menu():
return
def run(self):
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
title()
options = ["New Game", "Quit"]
if os.path.exists("saves"):