summaryrefslogtreecommitdiff
path: root/src/sliceitoff/screens
diff options
context:
space:
mode:
authorViljami Ilola <+@hix.fi>2024-03-31 13:47:27 +0300
committerViljami Ilola <+@hix.fi>2024-03-31 13:47:27 +0300
commit20b23c0cd4cf613a2634cc57bf6f2430cc9fc364 (patch)
tree8c997e4f2b961a94e2eacf9593a9134b2bd0776e /src/sliceitoff/screens
parentab9ba6bd09a3b8a3ee89656b099f8f1c002c7f06 (diff)
Mainmenu selector sprite group
Diffstat (limited to 'src/sliceitoff/screens')
-rw-r--r--src/sliceitoff/screens/mainmenu.py19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/sliceitoff/screens/mainmenu.py b/src/sliceitoff/screens/mainmenu.py
index e4c2dc1..2eacefe 100644
--- a/src/sliceitoff/screens/mainmenu.py
+++ b/src/sliceitoff/screens/mainmenu.py
@@ -1,17 +1,22 @@
""" screens.mainmenu - Screen for mainmenu"""
-from randon import randrange
+from random import randrange
from text import TextPage
def mainmenu_screen(selection):
""" Screen where current selection is flashing """
- color = randrange(0xe0,0xf0)
+ active = randrange(0xe0,0xf0)
+ inactive = 0xe8
return TextPage(
f" Slice it off!!\n"
- f"\n"
- f"{color if selection == 0 else '\xe8'}New Game"
- f"{color if selection == 0 else '\xe8'}High Scores\n"
- f"{color if selection == 0 else '\xe8'}Instructions\n"
- f"{color if selection == 0 else '\xe8'}Quit, Why?",
+ f"\n\n"
+ f"{chr(active if selection == 0 else inactive)}"
+ f"New Game\n\n"
+ f"{chr(active if selection == 1 else inactive)}"
+ f"High Scores\n\n"
+ f"{chr(active if selection == 2 else inactive)}"
+ f"Instructions\n\n"
+ f"{chr(active if selection == 3 else inactive)}"
+ f"Quit, Why?",
font = '8x8',
size = (16_000, 16_000),
pos = (24_000, 32_000) )