Skip to content

Commit

Permalink
Added feature: pressing esc exits
Browse files Browse the repository at this point in the history
WIll be pulled to main after full testing
  • Loading branch information
SirenGlitch committed Apr 1, 2023
1 parent 4602f01 commit 4a22b97
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 4a22b97

Please sign in to comment.