Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added instructions to shmup example

  • Loading branch information...
commit 1dee0ef3d09407880e2f48955eb6f78a8d2931d6 1 parent af14eb7
@alecgoebel alecgoebel authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 samplecode/shmup_example/main.py
View
6 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)
Please sign in to comment.
Something went wrong with that request. Please try again.