()
| 64 | |
| 65 | |
| 66 | def create_simple_game(): |
| 67 | print("Initializing doom...") |
| 68 | game = vzd.DoomGame() |
| 69 | game.load_config(config_file_path) |
| 70 | game.set_window_visible(False) |
| 71 | game.set_mode(vzd.Mode.PLAYER) |
| 72 | game.set_screen_format(vzd.ScreenFormat.GRAY8) |
| 73 | game.set_screen_resolution(vzd.ScreenResolution.RES_640X480) |
| 74 | game.init() |
| 75 | print("Doom initialized.") |
| 76 | |
| 77 | return game |
| 78 | |
| 79 | |
| 80 | def test(game, agent): |
no test coverage detected