summaryrefslogtreecommitdiff
path: root/src/sliceitoff/screens
diff options
context:
space:
mode:
Diffstat (limited to 'src/sliceitoff/screens')
-rw-r--r--src/sliceitoff/screens/__init__.py3
-rw-r--r--src/sliceitoff/screens/hiscores.py9
-rw-r--r--src/sliceitoff/screens/initials.py (renamed from src/sliceitoff/screens/hiscore.py)2
3 files changed, 12 insertions, 2 deletions
diff --git a/src/sliceitoff/screens/__init__.py b/src/sliceitoff/screens/__init__.py
index 1d373f6..d448890 100644
--- a/src/sliceitoff/screens/__init__.py
+++ b/src/sliceitoff/screens/__init__.py
@@ -2,4 +2,5 @@ from .welcome import welcome_screen
from .levelup import levelup_screen
from .gameover import gameover_screen
from .level import level_screen
-from .hiscore import hiscore_screen
+from .initials import initials_screen
+from .hiscores import hiscores_screen
diff --git a/src/sliceitoff/screens/hiscores.py b/src/sliceitoff/screens/hiscores.py
new file mode 100644
index 0000000..98bfd46
--- /dev/null
+++ b/src/sliceitoff/screens/hiscores.py
@@ -0,0 +1,9 @@
+from text import TextPage
+
+def hiscores_screen(score_text):
+ return TextPage(
+ score_text,
+ font = 'lcd',
+ size = (8_000, 16_000),
+ grid = (9_000, 14_000),
+ pos = (8_000, 0_000) )
diff --git a/src/sliceitoff/screens/hiscore.py b/src/sliceitoff/screens/initials.py
index c6f2a21..aadb141 100644
--- a/src/sliceitoff/screens/hiscore.py
+++ b/src/sliceitoff/screens/initials.py
@@ -1,6 +1,6 @@
from text import TextPage
-def hiscore_screen(name):
+def initials_screen(name):
return TextPage(
f" New High Score!\n"
f"\n"