uncommented key presses

This commit is contained in:
lars 2025-08-12 14:43:33 +02:00
parent ad2fa2aff9
commit 68660f7f73

View File

@ -226,14 +226,14 @@ class FlowerGameEnv(gym.Env):
return obs, {}
def step(self, action):
# if action == 0:
# pyautogui.press("w")
# elif action == 1:
# pyautogui.press("a")
# elif action == 2:
# pyautogui.press("s")
# elif action == 3:
# pyautogui.press("d")
if action == 0:
pyautogui.press("w")
elif action == 1:
pyautogui.press("a")
elif action == 2:
pyautogui.press("s")
elif action == 3:
pyautogui.press("d")
time.sleep(0.01)