We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15882a9 commit 15f9123Copy full SHA for 15f9123
examples/mascot-jump-game/python/main.py
@@ -231,14 +231,5 @@ def on_client_connected(client_id, data):
231
# Provide the LED state function to the Arduino sketch
232
Bridge.provide("get_led_state", get_led_state)
233
234
-# Start game loop in separate thread
235
-game_thread = threading.Thread(target=game_loop, daemon=True)
236
-game_thread.start()
237
-
238
# Run the app
239
-try:
240
- App.run()
241
-except KeyboardInterrupt:
242
- game_running = False
243
- if game_thread:
244
- game_thread.join()
+App.run(user_loop=game_loop)
0 commit comments