added debug messages
This commit is contained in:
		@@ -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)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user