screenshot

Solid

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".

AI & Automation 495 stars 43 forks Updated today NOASSERTION

Install

View on GitHub

Quality Score: 81/100

Stars 20%
90
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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...

Details

Author
RandallLiuXin
Repository
RandallLiuXin/GodotMaker
Created
3 months ago
Last Updated
today
Language
Python
License
NOASSERTION

Similar Skills

Semantically similar based on skill content — not just same category