Added credits, release notes, quitting game bugfix

This commit is contained in:
2026-04-19 08:09:55 -04:00
parent 6834d2c1af
commit bbfed56c40
3 changed files with 31 additions and 16 deletions

4
CREDITS.txt Normal file
View File

@@ -0,0 +1,4 @@
Main developer: Toasterkitten (gitea username, not real name)
Some ideas: Apple Cat (not real name, idk what this name is)
Claude: Some python stuff I didn't know how to do, and some feature ideas
You: Playing the game!

3
RELEASE_NOTES.txt Normal file
View File

@@ -0,0 +1,3 @@
Added release notes
Bugfix with quitting game on desktop
Added credits

14
game.py
View File

@@ -137,12 +137,13 @@ class Game:
print(f"{self.cat.name} says bye") print(f"{self.cat.name} says bye")
return return
options = ["New Game"] options = ["New Game", "Release Notes", "Credits"]
if os.path.exists("saves") and not os.path.exists("WEB_VERSION"): if os.path.exists("saves") and not os.path.exists("WEB_VERSION"):
options.insert(0, "Load Game") options.insert(0, "Load Game")
if not os.path.exists("WEB_VERSION"): if not os.path.exists("WEB_VERSION"):
options.append("Quit") options.append("Quit")
print(f"Welcome to {data.text.GAME_NAME}") print(f"Welcome to {data.text.GAME_NAME}")
while True:
choice = ui.select("Please choose an option", choices=options) choice = ui.select("Please choose an option", choices=options)
if choice == "New Game": if choice == "New Game":
@@ -154,13 +155,19 @@ class Game:
self.cat = data.save.load(save) self.cat = data.save.load(save)
self.game_loop() self.game_loop()
elif choice == "Quit": elif choice == "Quit":
return return True
elif choice == "Release Notes":
print()
with open("RELEASE_NOTES.txt", "r") as f:
release_notes = f.read()
print(release_notes.strip())
print()
if __name__ == "__main__": if __name__ == "__main__":
try: try:
game = Game() game = Game()
game.run() result = game.run()
except: # horrible coding right here except: # horrible coding right here
print("Developer stuff incoming, if you can, tell me what this says:") print("Developer stuff incoming, if you can, tell me what this says:")
traceback.print_exc() traceback.print_exc()
@@ -174,6 +181,7 @@ if __name__ == "__main__":
"Press any key to quit/do nothing if you're on the web version." "Press any key to quit/do nothing if you're on the web version."
) )
else: else:
if not result:
print( print(
"I think you did CTRL+C? I said not to I think. Well, here you are! Great job, not following instructions, I said it for a reason." "I think you did CTRL+C? I said not to I think. Well, here you are! Great job, not following instructions, I said it for a reason."
) )