Add cinematic prologue story

This commit is contained in:
2026-06-21 23:36:21 +09:00
parent 34611bc633
commit 591141c492
11 changed files with 217 additions and 71 deletions

View File

@@ -13,8 +13,18 @@ await page.waitForTimeout(500);
await page.mouse.click(962, 240);
await page.waitForTimeout(250);
for (let i = 0; i < 4; i += 1) {
for (let i = 0; i < 20; i += 1) {
const isBattleActive = await page.evaluate(() => {
const activeScenes = window.__HEROS_GAME__?.scene.getScenes(true) ?? [];
return activeScenes.some((scene) => scene.scene.key === 'BattleScene');
});
if (isBattleActive) {
break;
}
await page.keyboard.press('Space');
await page.waitForTimeout(220);
}
await page.waitForFunction(() => {