Skip to content

Commit

Permalink
Merge pull request #7 from SirenGlitch:dev
Browse files Browse the repository at this point in the history
Added feature: pressing `esc` exits
  • Loading branch information
SirenGlitch authored Apr 1, 2023
2 parents 4602f01 + 4a22b97 commit eb48171
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ def main():
red_laser.append(RED_FIRED_LASER)
red_laser_uses -= 1

if event.key == pygame.K_ESCAPE:
pygame.quit()


if event.type == RED_HIT:
red_health -= 1
BULLET_HIT_SOUND.play()
Expand Down

0 comments on commit eb48171

Please sign in to comment.