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

@@ -325,7 +325,7 @@ class PlayerState:
self.bonusTime -= 1
self.printSpecial()
if self.bonus_time == 5:
if self.bonusTime == 5:
Sound(28).play()
if self.bonusTime == 0:

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()

View File

@@ -1,5 +1,5 @@
from Sound import Sound
class Seconds(Sound):
class LowScore(Sound):
def __init__(self):
self.name = '''Speech 9: "What a low score!"'''

View File

@@ -1,5 +1,5 @@
from Target import Target
from Sound import Sound
class LeftInlaneTarget(Target):
def __init__(self):
super().__init__(3000, 'Left Inlane')