1 parent 7e9384f commit 78b3fa6Copy full SHA for 78b3fa6
1 file changed
README.md
@@ -29,6 +29,19 @@ cargo run --release maps/city.map
29
30
Several example maps are provided in the `/maps` directory (`city.map`, `house.map`, `nature.map`).
31
32
+### Command-Line Options
33
+
34
+- `--width <pixels>`: Set the window width (default: 800).
35
+- `--height <pixels>`: Set the window height (default: 600).
36
+- `--screenshot <path>`: Render a single frame, save it as a PNG to the given
37
+ path, and exit. Can be used as a tool for agents.
38
39
+For example, to render a 1920x1080 screenshot of a map:
40
41
+```
42
+cargo run --release -- maps/city.map --width 1920 --height 1080 --screenshot city.png
43
44
45
## Controls
46
47
### Player Movement
0 commit comments