From 0fb43994fdde39f8c092a8ff83b8819fd40f387f Mon Sep 17 00:00:00 2001 From: Patrick Tschuchnig Date: Thu, 12 Sep 2019 09:01:40 +0200 Subject: [PATCH] more fixes --- gametest_rev1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gametest_rev1.py b/gametest_rev1.py index ff0a374..6af68e5 100644 --- a/gametest_rev1.py +++ b/gametest_rev1.py @@ -271,7 +271,6 @@ def change_led_speed(colour, speed): def led_handler(): global timer_led_blink_toggle, timer_led_switched, timer_led_updated, leds_constant_update - leds_constant_update = False # led blinking effect. can be toggled on or off by setting led_blink to true or false. # blinks every second- if leds_constant_update == True: @@ -555,7 +554,7 @@ while True: clear_screen() handle_events() show_debug() - led_handler() + #led_handler() print(str(pygame.time.get_ticks())) print(str(int((pygame.time.get_ticks()/100))%2)) print(str(leds_constant_update)) @@ -563,6 +562,7 @@ while True: if game_running == False and game_ending == False: # one shot for changing the led colour if game_just_started == True: + print('game just started, changed colour of leds to green') change_led_colour(10,140,10) game_just_started = False