From da2bb3d8e7dcd7f7f0a0c2d2e214b422350d1993 Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Thu, 28 Mar 2024 10:00:00 +0200 Subject: hiscore name - game.game --- src/sliceitoff/screens/__init__.py | 2 +- src/sliceitoff/screens/hiscore.py | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 src/sliceitoff/screens/hiscore.py (limited to 'src/sliceitoff/screens') 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) ) -- cgit v1.2.3