Compare commits
2 Commits
e5b8316409
...
72f1891c87
| Author | SHA1 | Date | |
|---|---|---|---|
| 72f1891c87 | |||
| 4dc7d0dda5 |
Binary file not shown.
|
Before Width: | Height: | Size: 174 KiB After Width: | Height: | Size: 174 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 164 KiB After Width: | Height: | Size: 175 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 259 KiB After Width: | Height: | Size: 259 KiB |
3
game.py
3
game.py
@ -127,11 +127,12 @@ class Game(gameUtils.Game):
|
|||||||
if event.objectID == self.gun.objectID and event.animationID == 'spin':
|
if event.objectID == self.gun.objectID and event.animationID == 'spin':
|
||||||
self.timeout("FireDelay",random.randint(750,2000)/1000)
|
self.timeout("FireDelay",random.randint(750,2000)/1000)
|
||||||
self.playSound(self.gunCyclinderStop)
|
self.playSound(self.gunCyclinderStop)
|
||||||
|
elif event.objectID == self.gun.objectID and event.animationID in ['blank', 'fire']:
|
||||||
|
self.nextPlayer()
|
||||||
|
|
||||||
elif event.type == gameUtils.Timeout and event.timeoutID == 'FireDelay':
|
elif event.type == gameUtils.Timeout and event.timeoutID == 'FireDelay':
|
||||||
self.shockScale += self.fire() #check if the user gets shot
|
self.shockScale += self.fire() #check if the user gets shot
|
||||||
self.shockScale = min(self.shockScale, 1) #keeps shockScale in bounds
|
self.shockScale = min(self.shockScale, 1) #keeps shockScale in bounds
|
||||||
self.nextPlayer()
|
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user