Added more example turn code
This commit is contained in:
4
game.py
4
game.py
@ -67,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):
|
||||
|
||||
Reference in New Issue
Block a user