bub
This commit is contained in:
@@ -325,7 +325,7 @@ class PlayerState:
|
|||||||
self.bonusTime -= 1
|
self.bonusTime -= 1
|
||||||
self.printSpecial()
|
self.printSpecial()
|
||||||
|
|
||||||
if self.bonus_time == 5:
|
if self.bonusTime == 5:
|
||||||
Sound(28).play()
|
Sound(28).play()
|
||||||
|
|
||||||
if self.bonusTime == 0:
|
if self.bonusTime == 0:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
from Event import Event
|
from Event import Event
|
||||||
from solenoids.OutHoleSolenoid import OutHoleSolenoid
|
from solenoids.OutHoleSolenoid import OutHoleSolenoid
|
||||||
from solenoids.MainFlipper import MainFlipper
|
from solenoids.MainFlipper import MainFlipper
|
||||||
|
from sounds.LowScore import LowScore
|
||||||
|
|
||||||
class StartBallEvent(Event):
|
class StartBallEvent(Event):
|
||||||
def __init__(self, gameState = None):
|
def __init__(self, gameState = None):
|
||||||
@@ -15,6 +15,9 @@ class StartBallEvent(Event):
|
|||||||
return
|
return
|
||||||
|
|
||||||
self.gameState.isPlaying = True
|
self.gameState.isPlaying = True
|
||||||
|
if self.gameState.currentPlayer.ballsLeft == 1:
|
||||||
|
LowScore().play()
|
||||||
|
|
||||||
|
|
||||||
super().trigger(target)
|
super().trigger(target)
|
||||||
self.flipper.activate()
|
self.flipper.activate()
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
from Sound import Sound
|
from Sound import Sound
|
||||||
|
|
||||||
class Seconds(Sound):
|
class LowScore(Sound):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.name = '''Speech 9: "What a low score!"'''
|
self.name = '''Speech 9: "What a low score!"'''
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
from Target import Target
|
from Target import Target
|
||||||
|
from Sound import Sound
|
||||||
class LeftInlaneTarget(Target):
|
class LeftInlaneTarget(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__(3000, 'Left Inlane')
|
super().__init__(3000, 'Left Inlane')
|
||||||
|
|||||||
Reference in New Issue
Block a user