Skip to content

Commit

Permalink
Remember to send input to emulator
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguy11325 committed Jun 2, 2024
1 parent e8436fc commit 3d88d6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pokemonred_puffer/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 3d88d6d

Please sign in to comment.