summaryrefslogtreecommitdiff
path: root/src/sliceitoff/screens/mainmenu.py
blob: 2eacefe92663ec6cf8126e71c311bd934db634b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
""" screens.mainmenu - Screen for mainmenu"""
from random import randrange
from text import TextPage

def mainmenu_screen(selection):
    """ Screen where current selection is flashing """
    active = randrange(0xe0,0xf0)
    inactive = 0xe8
    return TextPage(
            f" Slice it off!!\n"
            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) )