Suoni d'ambiente sintetizzati (vento, acqua, uccelli, grilli, campane) col loro volume in Pausa; la fessura in primo piano: si cerca col fascio della torcia il quadro e gli occhi (lavoro di Codex). La foto del palio leggibile da nginx, e un test che lo controlla per tutti i file serviti
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018ks2K99uqCZjAxvy7Rdj1R
This commit is contained in:
@@ -81,6 +81,16 @@ async function giro(modo) {
|
||||
const fermo = async passo => {
|
||||
let ultima = null;
|
||||
for (let i = 0; i < 600; i++) {
|
||||
const search = await page.evaluate(() => {
|
||||
const c = game.closeup;
|
||||
if (c?.id !== 'fessura' || game.speech) return null;
|
||||
return c.step === 'done' ? { done: true } : c.step === 'search' ? { at: game.story.closeups.fessura.targets[c.found].at } : null;
|
||||
});
|
||||
if (search?.done) await premi('#closeup-close');
|
||||
else if (search?.at) {
|
||||
const r = await page.locator('#scene').boundingBox(), [x, y] = search.at;
|
||||
await tocca(r.x + x / 640 * r.width, r.y + y / 360 * r.height);
|
||||
}
|
||||
const s = await page.evaluate(() => ({ t: game.speech?.text ?? null, idle: !game.busy && !game.walking && !game.queue.length && !game.task }));
|
||||
if (s.t && s.t !== ultima) { ultima = s.t; await page.waitForTimeout(60); await foto(`battuta-${s.t}`, passo); await page.evaluate(() => game.skip()); }
|
||||
else if (!s.t && s.idle) return;
|
||||
|
||||
Reference in New Issue
Block a user