summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.py b/main.py
index bd59cfc..f62150f 100644
--- a/main.py
+++ b/main.py
@@ -11,7 +11,7 @@ def main():
player = Player(SCREEN_WIDTH / 2, SCREEN_HEIGHT / 2)
while True:
for event in pygame.event.get():
- if event.type == pygame.QUIT:
+ if event.type == pygame.QUIT or pygame.key.get_pressed()[pygame.K_q]:
return
screen.fill("black")
player.update(dt)