Skip to content

Commit

Permalink
shows score in game over screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Yash Goyal committed Jun 3, 2023
1 parent b71eca2 commit 5c68bf8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions game.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ def main():
if game_variables.gameOver:
window.blit(menu_bg, (0, 0))
window.blit(over_logo, ((window.get_width()/2)-300, (window.get_height()/2)-400))
text(f"Score: {game_variables.aliensKilled}", (window.get_width()/2)-45, (window.get_height()/2)-70, small=True)

if buttons[0].pressed(): #reset game
game_variables = GameVariables()
Expand Down

0 comments on commit 5c68bf8

Please sign in to comment.