uncommented key presses
This commit is contained in:
parent
ad2fa2aff9
commit
68660f7f73
|
|
@ -226,14 +226,14 @@ class FlowerGameEnv(gym.Env):
|
||||||
return obs, {}
|
return obs, {}
|
||||||
|
|
||||||
def step(self, action):
|
def step(self, action):
|
||||||
# if action == 0:
|
if action == 0:
|
||||||
# pyautogui.press("w")
|
pyautogui.press("w")
|
||||||
# elif action == 1:
|
elif action == 1:
|
||||||
# pyautogui.press("a")
|
pyautogui.press("a")
|
||||||
# elif action == 2:
|
elif action == 2:
|
||||||
# pyautogui.press("s")
|
pyautogui.press("s")
|
||||||
# elif action == 3:
|
elif action == 3:
|
||||||
# pyautogui.press("d")
|
pyautogui.press("d")
|
||||||
|
|
||||||
time.sleep(0.01)
|
time.sleep(0.01)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user