diff --git a/pokemonred_puffer/environment.py b/pokemonred_puffer/environment.py index fa95647..0f45b32 100644 --- a/pokemonred_puffer/environment.py +++ b/pokemonred_puffer/environment.py @@ -581,8 +581,8 @@ def run_action_on_emulator(self, action): self.action_hist[action] += 1 # press button then release after some steps # TODO: Add video saving logic - # self.pyboy.send_input(VALID_ACTIONS[action]) - # self.pyboy.send_input(VALID_RELEASE_ACTIONS[action], delay=8) + self.pyboy.send_input(VALID_ACTIONS[action]) + self.pyboy.send_input(VALID_RELEASE_ACTIONS[action], delay=8) self.pyboy.tick(self.action_freq, render=True) if self.read_bit(0xD803, 0):