Deactivate credit while play
This commit is contained in:
@@ -20,6 +20,7 @@ class EndBallEvent(Event):
|
||||
StartBallEvent().trigger(None)
|
||||
return
|
||||
|
||||
self.gameState.isPlaying = False
|
||||
self.gameState.currentPlayer.removeBall()
|
||||
|
||||
self.scorePoints()
|
||||
|
||||
@@ -11,6 +11,9 @@ class StartGameEvent(Event):
|
||||
super().__init__("Start Game Event")
|
||||
|
||||
def trigger(self, target):
|
||||
if self.gameState.isPlaying:
|
||||
return
|
||||
|
||||
super().trigger(target)
|
||||
self.flipper.activate()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user