diff options
Diffstat (limited to 'src/splitscreen_duo/menu.py')
| -rw-r--r-- | src/splitscreen_duo/menu.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/splitscreen_duo/menu.py b/src/splitscreen_duo/menu.py index de51a47..d552dab 100644 --- a/src/splitscreen_duo/menu.py +++ b/src/splitscreen_duo/menu.py @@ -18,7 +18,7 @@ WIDTH, HEIGHT = ( WHITE = (255, 255, 255) BLACK = (0, 0, 0) FONT = pygame.font.Font(None, 36) -IS_DEVELOPMENT_MODE = os.getenv("DEVELOPMENT", "").lower() +IS_DEVELOPMENT_MODE = os.getenv("DEVELOPMENT", "").lower() != "" OPTIONS = ["Breakout", "Pong v.s. Computer", "Snake", "Quit"] selected_index = 0 screen = pygame.display.set_mode( @@ -70,7 +70,9 @@ def main_loop(): sys.exit() else: print(OPTIONS[selected_index]) - serial.write(json.dumps({"command": 0, "action": action}).encode("utf-8")) + serial.write( + json.dumps({"command": 0, "action": action}).encode("utf-8") + ) elif action == "QUIT": pygame.quit() sys.exit() |