From 418fb9db96c6ee2464060a824d2c62058dd40310 Mon Sep 17 00:00:00 2001 From: Ishaan Gurazada Date: Fri, 20 Oct 2023 13:33:13 -0400 Subject: [PATCH 1/2] added wasd functionality --- classes/Input.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/Input.py b/classes/Input.py index 72f4c564..2711845d 100644 --- a/classes/Input.py +++ b/classes/Input.py @@ -18,14 +18,14 @@ def checkForInput(self): def checkForKeyboardInput(self): pressedKeys = pygame.key.get_pressed() - if pressedKeys[K_LEFT] or pressedKeys[K_h] and not pressedKeys[K_RIGHT]: + if pressedKeys[K_LEFT] or pressedKeys[K_h] or pressedKeys[K_a] and not pressedKeys[K_RIGHT]: self.entity.traits["goTrait"].direction = -1 - elif pressedKeys[K_RIGHT] or pressedKeys[K_l] and not pressedKeys[K_LEFT]: + elif pressedKeys[K_RIGHT] or pressedKeys[K_l] or pressedKeys[K_d] and not pressedKeys[K_LEFT]: self.entity.traits["goTrait"].direction = 1 else: self.entity.traits['goTrait'].direction = 0 - isJumping = pressedKeys[K_SPACE] or pressedKeys[K_UP] or pressedKeys[K_k] + isJumping = pressedKeys[K_SPACE] or pressedKeys[K_UP] or pressedKeys[K_k] or pressedKeys[K_w] self.entity.traits['jumpTrait'].jump(isJumping) self.entity.traits['goTrait'].boost = pressedKeys[K_LSHIFT] From e62b9227390955b01b71d550f1c046a58676d71c Mon Sep 17 00:00:00 2001 From: ishggs Date: Sun, 31 Aug 2025 01:22:44 -0500 Subject: [PATCH 2/2] in compile.py replades distutils.core with setuptools --- compile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile.py b/compile.py index 59d5df76..dbf83e0a 100644 --- a/compile.py +++ b/compile.py @@ -1,4 +1,4 @@ -from distutils.core import setup +from setuptools import setup import py2exe import glob