diff options
author | Viljami Ilola <+@hix.fi> | 2024-03-28 13:54:00 +0200 |
---|---|---|
committer | Viljami Ilola <+@hix.fi> | 2024-03-28 13:54:00 +0200 |
commit | f502b21183d307fcab9b353aa18609d15c3547f1 (patch) | |
tree | d071b60ce9893ebc3086cee73f64e17774ad2c7b /src/sliceitoff/screens | |
parent | da2bb3d8e7dcd7f7f0a0c2d2e214b422350d1993 (diff) |
hiscores: loading, saving, screen
Diffstat (limited to 'src/sliceitoff/screens')
-rw-r--r-- | src/sliceitoff/screens/__init__.py | 3 | ||||
-rw-r--r-- | src/sliceitoff/screens/hiscores.py | 9 | ||||
-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" |