From ab9ba6bd09a3b8a3ee89656b099f8f1c002c7f06 Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Sun, 31 Mar 2024 13:03:10 +0300 Subject: mainmenu screen --- src/sliceitoff/screens/mainmenu.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/sliceitoff/screens/mainmenu.py (limited to 'src/sliceitoff/screens/mainmenu.py') diff --git a/src/sliceitoff/screens/mainmenu.py b/src/sliceitoff/screens/mainmenu.py new file mode 100644 index 0000000..e4c2dc1 --- /dev/null +++ b/src/sliceitoff/screens/mainmenu.py @@ -0,0 +1,17 @@ +""" screens.mainmenu - Screen for mainmenu""" +from randon import randrange +from text import TextPage + +def mainmenu_screen(selection): + """ Screen where current selection is flashing """ + color = randrange(0xe0,0xf0) + 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?", + font = '8x8', + size = (16_000, 16_000), + pos = (24_000, 32_000) ) -- cgit v1.2.3