Skip to content

Instantly share code, notes, and snippets.

@mlabonne
Last active May 25, 2022 13:01
Show Gist options
  • Save mlabonne/2a5f4961020f797f6246b6a0f85a3107 to your computer and use it in GitHub Desktop.
Save mlabonne/2a5f4961020f797f6246b6a0f85a3107 to your computer and use it in GitHub Desktop.
script = []
script += [''] * 20
script += ['forward'] * 5
script += ['attack'] * 61
script += ['camera:[-10,0]'] * 7 # Look up
script += ['attack'] * 240
script += ['jump']
script += ['forward'] * 10 # Jump forward
script += ['camera:[-10,0]'] * 2 # Look up
script += ['attack'] * 150
script += ['camera:[10,0]'] * 7 # Look down
script += [''] * 40
for action in tqdm(script):
obs, reward, done, _ = env.step(str_to_act(env, action))
env.release()
env.play()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment