Last active
May 25, 2022 13:01
-
-
Save mlabonne/2a5f4961020f797f6246b6a0f85a3107 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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