This commit is contained in:
2026-06-22 19:06:26 -04:00
parent 9938475855
commit 3f6f9599b5
4 changed files with 48 additions and 2 deletions

View File

@@ -7,7 +7,11 @@ lint:
fmt:
uv run ruff format
fix:
uv run ruff check --fix
typecheck:
uv run basedpyright
check: lint test typecheck

View File

@@ -1,6 +1,13 @@
import time
from untitled import ui
class App:
def __init__(self):
pass
def run(self):
pass
ui.clear()
time.sleep(1)
ui.splash()

2
untitled/content.py Normal file
View File

@@ -0,0 +1,2 @@
STUDIO_NAME = "Untitled Randomness Studios"
GAME_NAME = "Untitled Cat Game"

33
untitled/ui.py Normal file
View File

@@ -0,0 +1,33 @@
import time
from untitled import content
def clear():
print("\033[2J\033[H", end="", flush=True)
def typewriter(
text,
letter_speed=0.15,
erase_multiplier=0.35,
after_type_delay=1,
after_finish_delay=1,
erase=True,
):
for char in text:
time.sleep(letter_speed)
print(char, end="", flush=True)
time.sleep(after_type_delay)
if erase:
for _ in range(len(text)):
print("\b \b", end="", flush=True)
time.sleep(letter_speed * erase_multiplier)
else:
clear()
time.sleep(after_finish_delay)
def splash():
typewriter(content.STUDIO_NAME)
typewriter(content.GAME_NAME, erase=False)