From 5823c90c51c5ac1be0902656ac22f1cc19c41f1d Mon Sep 17 00:00:00 2001 From: Zoltan Szabatin Date: Sun, 2 Mar 2025 17:59:36 -0800 Subject: refactor: Move games to proper game enumeration --- src/splitscreen_duo/menu.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3