This commit is contained in:
Jonas Zeunert
2022-09-03 19:43:28 +02:00
parent a5d41ba7cb
commit ef7acb7246
4 changed files with 7 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
from Event import Event
from solenoids.OutHoleSolenoid import OutHoleSolenoid
from solenoids.MainFlipper import MainFlipper
from sounds.LowScore import LowScore
class StartBallEvent(Event):
def __init__(self, gameState = None):
@@ -15,6 +15,9 @@ class StartBallEvent(Event):
return
self.gameState.isPlaying = True
if self.gameState.currentPlayer.ballsLeft == 1:
LowScore().play()
super().trigger(target)
self.flipper.activate()