From 681826fc3272b9ec0e60c6863381404c7ee42094 Mon Sep 17 00:00:00 2001 From: yuzu-eva Date: Fri, 20 Sep 2024 17:27:11 +0200 Subject: add movement --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.py') 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) -- cgit v1.2.3