Compare commits
2 Commits
c41f863205
...
7b0338c092
| Author | SHA1 | Date | |
|---|---|---|---|
| 7b0338c092 | |||
| 7628c59b36 |
6
game.py
6
game.py
@ -23,6 +23,8 @@ class Game(gameUtils.Game):
|
|||||||
# TODO: Add background music
|
# TODO: Add background music
|
||||||
# TODO: Add muzzle flash
|
# TODO: Add muzzle flash
|
||||||
# TODO: Add animations for blank firing and real firing
|
# 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:
|
# TODO: Utilise the following new sounds:
|
||||||
# gun-load: Should be played at the beginning of the game,
|
# gun-load: Should be played at the beginning of the game,
|
||||||
@ -65,11 +67,15 @@ class Game(gameUtils.Game):
|
|||||||
if randint(1,6) == 6:
|
if randint(1,6) == 6:
|
||||||
self.playSound(self.gunShot)
|
self.playSound(self.gunShot)
|
||||||
self.turnHandler.playing[0].punish(self.shockScale)
|
self.turnHandler.playing[0].punish(self.shockScale)
|
||||||
|
print(f'{self.turnHandler.playing[0].name} is fucking dead.')
|
||||||
self.turnHandler.next()
|
self.turnHandler.next()
|
||||||
|
print(f'{self.turnHandler.playing[0].name} is up')
|
||||||
return 0.04
|
return 0.04
|
||||||
#remember to add shock
|
#remember to add shock
|
||||||
else:
|
else:
|
||||||
self.playSound(self.gunBlank)
|
self.playSound(self.gunBlank)
|
||||||
|
self.turnHandler.next()
|
||||||
|
print(f'{self.turnHandler.playing[0].name} is up')
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
def onEvent(self, event):
|
def onEvent(self, event):
|
||||||
|
|||||||
Reference in New Issue
Block a user