summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authoryuzu-eva <stevenhu@web.de>2024-09-20 17:27:11 +0200
committeryuzu-eva <stevenhu@web.de>2024-09-20 17:27:11 +0200
commit681826fc3272b9ec0e60c6863381404c7ee42094 (patch)
treef323d27863a1e803780a1d8c39c69d5440fe9296 /main.py
parent6b3eda2ad197d2bd9d434f820f682f13e71c8fbb (diff)
add movement
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)