summaryrefslogtreecommitdiff
path: root/src/sliceitoff/screens
diff options
context:
space:
mode:
authorViljami Ilola <+@hix.fi>2024-03-28 10:00:00 +0200
committerViljami Ilola <+@hix.fi>2024-03-28 10:00:00 +0200
commitda2bb3d8e7dcd7f7f0a0c2d2e214b422350d1993 (patch)
tree980bfb0445110ccb23c451b138edc3863bca7a46 /src/sliceitoff/screens
parentc835fbb83b61a5049bae969b6698d500a0c540d3 (diff)
hiscore name - game.game
Diffstat (limited to 'src/sliceitoff/screens')
-rw-r--r--src/sliceitoff/screens/__init__.py2
-rw-r--r--src/sliceitoff/screens/hiscore.py14
2 files changed, 15 insertions, 1 deletions
diff --git a/src/sliceitoff/screens/__init__.py b/src/sliceitoff/screens/__init__.py
index ad49657..1d373f6 100644
--- a/src/sliceitoff/screens/__init__.py
+++ b/src/sliceitoff/screens/__init__.py
@@ -2,4 +2,4 @@ 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
diff --git a/src/sliceitoff/screens/hiscore.py b/src/sliceitoff/screens/hiscore.py
new file mode 100644
index 0000000..c6f2a21
--- /dev/null
+++ b/src/sliceitoff/screens/hiscore.py
@@ -0,0 +1,14 @@
+from text import TextPage
+
+def hiscore_screen(name):
+ return TextPage(
+ f" New High Score!\n"
+ f"\n"
+ f"\n"
+ f"Please give name:\n"
+ f"\n"
+ f"\n"
+ f"{name:^17s}",
+ font = '8x8',
+ size = (16_000, 16_000),
+ pos = (24_000, 32_000) )