This commit is contained in:
2026-06-24 17:26:03 -04:00
parent d224d08457
commit f40565d861
5 changed files with 11 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
import os
import time
from untitled import PACKAGE_ROOT, content, screens, ui
from untitled import PACKAGE_ROOT, content, model, persistence, screens, ui
class App:
@@ -37,4 +37,8 @@ class App:
"New Game"
): # the current unixtime is 1782171466 as of writing this comment, oh wait, that would create a paradox, wait, nevermind, ESTIMATE OKAY?
# yayyyyy
screens.adoption()
cat = screens.adoption()
save = model.Save(content.SAVE_VERSION, cat)
print("Saving...")
persistence.save(save)
print("Save complete.")

View File

@@ -1,6 +1,8 @@
STUDIO_NAME = "Untitled Randomness Studios" # Titled Randomness Studios
GAME_NAME = "Untitled Cat Game" # Titled Cat Game
SAVE_VERSION = 1
CAT_COLORS = [
"orange tabby",
"black",

View File

@@ -7,8 +7,8 @@ def validate_cat_name(name, auto_gen=False):
if len(name) < 4 or len(name) > 24:
return "Your cat's name must be 4-24 characters long."
else:
if len(name) > 9:
return "Your cat's name must be below 9 characters long."
if len(name) < 4 or len(name) > 9:
return "Your cat's name must be greater than 3 characters and below 9 characters long."
if not all(c in ALLOWED for c in name):
return "Your cat's name can only have letters and numbers."
if not any(c in string.ascii_letters for c in name):