aboutsummaryrefslogtreecommitdiff
path: root/src/splitscreen_duo/menu.py
diff options
context:
space:
mode:
authorZoltan Szabatin <[email protected]>2025-03-01 04:06:54 -0800
committerZoltan Szabatin <[email protected]>2025-03-01 04:06:54 -0800
commite2629e5cacd69f76c28db681265a12e1da366e46 (patch)
tree37dcd957781ff9109b124fe423b83772f851e66c /src/splitscreen_duo/menu.py
parentchore(justfile): Add formatting task (diff)
downloadsplitscreen-duo-e2629e5cacd69f76c28db681265a12e1da366e46.tar.xz
splitscreen-duo-e2629e5cacd69f76c28db681265a12e1da366e46.zip
style(src): Format files
Diffstat (limited to 'src/splitscreen_duo/menu.py')
-rw-r--r--src/splitscreen_duo/menu.py6
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()