← ClaudeAtlas

screenshotlisted

Capture gameplay screenshots using godot-e2e for visual verification. Use when you need to: take a screenshot of the running game, capture multiple screenshots during an E2E scenario, generate reference.png, visually verify game state, or provide screenshots for VQA analysis. Triggers: "screenshot", "capture screenshot", "take screenshot", "reference.png", "visual capture", "screenshot the game".
RandallLiuXin/GodotMaker · ★ 219 · AI & Automation · score 79
Install: claude install-skill RandallLiuXin/GodotMaker
# Screenshot — Gameplay Capture via godot-e2e $ARGUMENTS Capture screenshots from a running Godot game using godot-e2e's internal viewport capture. Works headless, multi-monitor safe, no external tools needed. ## Quick Capture (single screenshot) Write and run a Python script: ```python # capture_screenshot.py import os, sys from godot_e2e import GodotE2E project_path = sys.argv[1] if len(sys.argv) > 1 else "." save_path = sys.argv[2] if len(sys.argv) > 2 else "screenshot.png" with GodotE2E.launch(project_path, timeout=15.0) as game: game.wait_for_node("/root/Main", timeout=10.0) game.wait_seconds(1.0) # let the game render a few frames result = game.screenshot(save_path=save_path) print(f"Screenshot saved: {result}") ``` Run: `python capture_screenshot.py <project_dir> <output_path>` ## Multi-Point Capture (E2E with screenshots) For capturing multiple screenshots during a gameplay scenario: ```python # capture_gameplay.py import os, sys from godot_e2e import GodotE2E project_path = sys.argv[1] if len(sys.argv) > 1 else "." output_dir = sys.argv[2] if len(sys.argv) > 2 else "screenshots" os.makedirs(output_dir, exist_ok=True) with GodotE2E.launch(project_path, timeout=15.0) as game: game.wait_for_node("/root/Main", timeout=10.0) # 1. Initial state game.wait_seconds(0.5) game.screenshot(save_path=os.path.join(output_dir, "01_initial.png")) # 2. After some interaction (customize per game) game.wait_seconds(2.0) game.sc