diff --git a/gametest.py b/gametest.py index d53b392..572b2ed 100644 --- a/gametest.py +++ b/gametest.py @@ -107,6 +107,7 @@ screen = pygame.display.set_mode((screenSizeX, screenSizeY), pygame.FULLSCREEN) while True: # main loop #global label storage + print("new game running") time_surface = 0 errors_surface = 0 time_rectangle = 0 @@ -134,6 +135,7 @@ while True: # main loop start_time = int(time.time()) while True: # game running + print("game running normally") handle_events() 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: + print("Game ended because start pin wasnt true") + clearScreen() header_surface = font.render('Game over!', True, mainFontColor)