Permalink
Browse files

added instructions to shmup example

  • Loading branch information...
1 parent af14eb7 commit 1dee0ef3d09407880e2f48955eb6f78a8d2931d6 Alec Goebel committed Apr 6, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 samplecode/shmup_example/main.py
@@ -86,6 +86,12 @@ def main():
score_text = font.render("Score: %08d"%score, False, (255, 255, 255))
screen.blit(score_text, (5, 5))
+ if not player.alive():
+ gameover = font.render("Press Space to Respawn", False, (255, 255, 255))
+ rect = gameover.get_rect()
+ rect.center = screen.get_rect().center
+ screen.blit(gameover, rect)
+
pygame.display.flip()
clock.tick(30)

0 comments on commit 1dee0ef

Please sign in to comment.