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