Files
playableintelligence__game-…/scripts/example-actions.json
rshtirmer c262955248 feat: bake Playwright scripts into templates, wire iterate-client into pipeline
The iterate-client.js and verify-runtime.mjs scripts were defined outside
templates and never used in the make-game pipeline. This moves them into
both templates as the single source of truth, fixes the `playwright` →
`@playwright/test` import mismatch, adds robust Playwright prerequisite
checking, and inserts Phase 2.5 (iterate check) into the verification
protocol so every pipeline step gets screenshots + game state feedback.

Also adds render_game_to_text(), advanceTime(), and iterate client docs
to templates, game-qa skill, and CLAUDE.md.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 14:43:46 -05:00

43 lines
948 B
JSON

{
"_comment": "Example action payloads for iterate-client.js. Each step describes a burst of input + frames to advance.",
"steps": [
{
"_comment": "Click center of canvas to focus / start game",
"buttons": ["left_mouse_button"],
"frames": 2,
"mouse_x": 480,
"mouse_y": 270
},
{
"_comment": "Wait for menu transition",
"buttons": [],
"frames": 30
},
{
"_comment": "Press space to start playing",
"buttons": ["space"],
"frames": 4
},
{
"_comment": "Idle frames — let game run",
"buttons": [],
"frames": 60
},
{
"_comment": "Move right for 30 frames",
"buttons": ["right"],
"frames": 30
},
{
"_comment": "Jump while moving right",
"buttons": ["space", "right"],
"frames": 10
},
{
"_comment": "Release and observe",
"buttons": [],
"frames": 30
}
]
}