From 04c8c5eb7202aae4c16b9c3ff250b4e4a4d23e68 Mon Sep 17 00:00:00 2001 From: dffdeeq Date: Wed, 24 Dec 2025 20:57:58 +0400 Subject: [PATCH] fix: default capture resolution to game window size (refs #10) and bbox format fix --- README.md | 5 +++++ nitrogen/game_env.py | 40 +++++++++++++++++++++++++--------------- scripts/play.py | 4 ++++ 3 files changed, 34 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 90cb439..8498f38 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,11 @@ python scripts/play.py --process '.exe' The `--process` parameter must be the exact executable name of the game you want to play. You can find it by right-clicking on the game process in Windows Task Manager (Ctrl+Shift+Esc), and selecting `Properties`. The process name should be in the `General` tab and end with `.exe`. +By default, screen capture uses the game window resolution. You can override it with `--width` and `--height`: +```bash +python scripts/play.py --process '.exe' --width 1920 --height 1080 +``` +