Compare commits

..

2 Commits

Author SHA1 Message Date
7b0338c092 Added more example turn code 2025-06-23 14:45:56 +01:00
7628c59b36 Added TODO 2025-06-23 14:45:43 +01:00

View File

@ -23,6 +23,8 @@ class Game(gameUtils.Game):
# TODO: Add background music
# TODO: Add muzzle flash
# TODO: Add animations for blank firing and real firing
# TODO: Create an array that contains 1 True and 5 Falses
# to emulate a real barrel. this RNG ain't shit.
# TODO: Utilise the following new sounds:
# gun-load: Should be played at the beginning of the game,
@ -65,11 +67,15 @@ class Game(gameUtils.Game):
if randint(1,6) == 6:
self.playSound(self.gunShot)
self.turnHandler.playing[0].punish(self.shockScale)
print(f'{self.turnHandler.playing[0].name} is fucking dead.')
self.turnHandler.next()
print(f'{self.turnHandler.playing[0].name} is up')
return 0.04
#remember to add shock
else:
self.playSound(self.gunBlank)
self.turnHandler.next()
print(f'{self.turnHandler.playing[0].name} is up')
return 0
def onEvent(self, event):