uncommented key presses
This commit is contained in:
parent
ad2fa2aff9
commit
68660f7f73
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user