From c41f863205c4037de77b68ad484bcecebb679353 Mon Sep 17 00:00:00 2001 From: Brosef Date: Mon, 23 Jun 2025 12:31:05 +0100 Subject: [PATCH] Started to implement turn based system from GameUtils --- game.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/game.py b/game.py index 41a420b..a7e97cd 100644 --- a/game.py +++ b/game.py @@ -29,6 +29,8 @@ class Game(gameUtils.Game): # and should have an animation accompanying it. # see Brosef for the animation. + self.turnHandler = gameUtils.RoundTable(1, self.pm) + #Sounds for the gun :3 self.playSound = pygame.mixer.Sound.play self.gunBlank = pygame.mixer.Sound("./assets/gun-blank.mp3") @@ -62,6 +64,8 @@ class Game(gameUtils.Game): def fire(self):#LETS GO GAMBLING if randint(1,6) == 6: self.playSound(self.gunShot) + self.turnHandler.playing[0].punish(self.shockScale) + self.turnHandler.next() return 0.04 #remember to add shock else: