more fixes

This commit is contained in:
Patrick Tschuchnig 2019-09-12 09:01:40 +02:00
parent c40f8e3128
commit 0fb43994fd

View File

@ -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