added debug messages

This commit is contained in:
Patrick Tschuchnig 2019-08-27 15:17:26 +02:00
parent 769c6f914e
commit 21e1130522

View File

@ -107,6 +107,7 @@ screen = pygame.display.set_mode((screenSizeX, screenSizeY), pygame.FULLSCREEN)
while True: # main loop while True: # main loop
#global label storage #global label storage
print("new game running")
time_surface = 0 time_surface = 0
errors_surface = 0 errors_surface = 0
time_rectangle = 0 time_rectangle = 0
@ -134,6 +135,7 @@ while True: # main loop
start_time = int(time.time()) start_time = int(time.time())
while True: # game running while True: # game running
print("game running normally")
handle_events() handle_events()
if GPIO.input(errorPin) == True: if GPIO.input(errorPin) == True:
@ -167,6 +169,8 @@ while True: # main loop
#if GPIO.input(startPin) == True and justStarted == False: #if GPIO.input(startPin) == True and justStarted == False:
if GPIO.input(startPin) != True: if GPIO.input(startPin) != True:
print("Game ended because start pin wasnt true")
clearScreen() clearScreen()
header_surface = font.render('Game over!', True, mainFontColor) header_surface = font.render('Game over!', True, mainFontColor)