blob: fbd91c952c8bdd8eb9bbc053bead9c9ee4e26355 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
""" game.mainmenu - Let's user choose """
from enum import IntEnum
from sliceitoff.screens import mainmenu_screen
from .menu import Menu
class MainMenuItems(IntEnum):
""" Items in the menu. Should match mainmenu_screen """
NEWGAME = 0
HISCORES = 1
INSTRUCT = 2
SETTINGS = 3
QUIT = 4
class MainMenu(Menu):
""" Main menu """
def __init__(self):
super().__init__(mainmenu_screen, len(MainMenuItems))
|