From 4997a00be3ab5b1339079301dc49e5200db7c9f1 Mon Sep 17 00:00:00 2001 From: Erenando Date: Wed, 29 Mar 2023 14:56:12 +0200 Subject: [PATCH] Jumping is now possible with spacebar --- project/ui_elements/KeyManager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/ui_elements/KeyManager.py b/project/ui_elements/KeyManager.py index dc4a2c6..892b396 100644 --- a/project/ui_elements/KeyManager.py +++ b/project/ui_elements/KeyManager.py @@ -5,7 +5,7 @@ from pygame.event import Event class KeyManager: KEY_LEFT: list[int] = [pygame.K_LEFT, pygame.K_a] KEY_RIGHT: list[int] = [pygame.K_RIGHT, pygame.K_d] - KEY_UP: list[int] = [pygame.K_UP, pygame.K_w] + KEY_UP: list[int] = [pygame.K_UP, pygame.K_w, pygame.K_SPACE] KEY_DOWN: list[int] = [pygame.K_DOWN, pygame.K_s] KEY_SPACE: list[int] = [pygame.K_SPACE] KEY_ESCAPE: list[int] = [pygame.K_ESCAPE]