changed the way the game ends
This commit is contained in:
parent
43e0d0dc43
commit
769c6f914e
@ -165,9 +165,7 @@ while True: # main loop
|
|||||||
#if GPIO.input(startPin) == False:
|
#if GPIO.input(startPin) == False:
|
||||||
# justStarted = False
|
# justStarted = False
|
||||||
#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:
|
||||||
#break
|
|
||||||
continue #skip the rest
|
|
||||||
|
|
||||||
clearScreen()
|
clearScreen()
|
||||||
header_surface = font.render('Game over!', True, mainFontColor)
|
header_surface = font.render('Game over!', True, mainFontColor)
|
||||||
@ -190,3 +188,4 @@ while True: # main loop
|
|||||||
clearScreen()
|
clearScreen()
|
||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
break
|
break
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user