Deactivate credit while play

This commit is contained in:
Jonas Zeunert
2022-06-07 00:04:48 +02:00
parent ee95711027
commit c67cce5dcc
4 changed files with 6 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ class EndBallEvent(Event):
StartBallEvent().trigger(None)
return
self.gameState.isPlaying = False
self.gameState.currentPlayer.removeBall()
self.scorePoints()

View File

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