kleine verbesserungen
This commit is contained in:
parent
2286a6c950
commit
b701f3215c
@ -90,6 +90,8 @@ def exit_application():
|
||||
return
|
||||
|
||||
def shutdown_raspberry():
|
||||
pygame.quit()
|
||||
GPIO.cleanup()
|
||||
os.system("sudo shutdown -h now")
|
||||
return
|
||||
|
||||
@ -107,7 +109,7 @@ screen = pygame.display.set_mode((screenSizeX, screenSizeY), pygame.FULLSCREEN)
|
||||
|
||||
while True: # main loop
|
||||
#global label storage
|
||||
print("new game running")
|
||||
print("New game starting")
|
||||
time_surface = 0
|
||||
errors_surface = 0
|
||||
time_rectangle = 0
|
||||
@ -129,13 +131,13 @@ while True: # main loop
|
||||
|
||||
#justStarted = True
|
||||
|
||||
header_surface = font.render('Spiel startet', True, mainFontColor)
|
||||
header_surface = font.render('Spiel l' + u'ä' + 'uft!', True, mainFontColor)
|
||||
time.sleep(5)
|
||||
|
||||
start_time = int(time.time())
|
||||
|
||||
while True: # game running
|
||||
print("game running normally")
|
||||
print("Game running normally")
|
||||
handle_events()
|
||||
|
||||
if GPIO.input(errorPin) == True:
|
||||
|
Loading…
Reference in New Issue
Block a user