Add cinematic prologue story
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user