Stricture losing screen
This commit is contained in:
parent
097357347c
commit
f483f62ff5
|
@ -47,7 +47,7 @@ def main():
|
|||
elif event.type == KEYDOWN:
|
||||
if event.key == K_F2: # new game
|
||||
maze.__init__((maze.w, maze.h), fps)
|
||||
elif event.key in (K_ESCAPE, K_p):
|
||||
elif event.key in (K_ESCAPE, K_p) and not maze.hero.dead:
|
||||
maze.paused ^= True
|
||||
|
||||
if not maze.hero.dead:
|
||||
|
|
|
@ -309,9 +309,10 @@ class Maze:
|
|||
|
||||
self.draw()
|
||||
for enemy in self.enemies: enemy.update()
|
||||
self.hero.update(fps)
|
||||
self.slash()
|
||||
self.track_bullets()
|
||||
if not self.hero.dead:
|
||||
self.hero.update(fps)
|
||||
self.slash()
|
||||
self.track_bullets()
|
||||
pygame.display.flip()
|
||||
pygame.display.set_caption('Brutal Maze - Score: {}'.format(
|
||||
int(self.score - INIT_SCORE)))
|
||||
|
|
Loading…
Reference in New Issue