Started to implement turn based system from GameUtils

This commit is contained in:
2025-06-23 12:31:05 +01:00
parent d0284cc578
commit c41f863205

View File

@ -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: