aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoltan Szabatin <[email protected]>2025-03-02 17:59:36 -0800
committerZoltan Szabatin <[email protected]>2025-03-02 17:59:36 -0800
commit5823c90c51c5ac1be0902656ac22f1cc19c41f1d (patch)
tree0e846a41f32b8f9d5baa93debeb8c5ff8e75546f
parentfeat: Add proper command options (diff)
downloadsplitscreen-duo-5823c90c51c5ac1be0902656ac22f1cc19c41f1d.tar.xz
splitscreen-duo-5823c90c51c5ac1be0902656ac22f1cc19c41f1d.zip
refactor: Move games to proper game enumeration
-rw-r--r--src/splitscreen_duo/menu.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/splitscreen_duo/menu.py b/src/splitscreen_duo/menu.py
index 76114e2..e1d97f5 100644
--- a/src/splitscreen_duo/menu.py
+++ b/src/splitscreen_duo/menu.py
@@ -5,11 +5,12 @@ from .input import Input
from .command import Command
import logging
import json
+from .game import Game
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
IS_DEVELOPMENT_MODE = os.getenv("DEVELOPMENT", "").lower() != ""
-OPTIONS = ["Breakout", "Pong v.s. Computer", "Snake", "Quit"]
+OPTIONS = Game.all() + ["Quit"]
logger = logging.getLogger(__name__)
WIDTH = HEIGHT = FONT = screen = selected_index = None