feat: full-screen StoryGallery with flow layout, startAtScene engine method, clickable flow nodes

This commit is contained in:
2026-06-12 11:37:14 +08:00
parent 6417a9de43
commit 0379548a29
5 changed files with 327 additions and 389 deletions

View File

@@ -195,6 +195,13 @@ export function useGameEngine(videoEls: () => [HTMLVideoElement | null, HTMLVide
engine.startChapter(chapterId)
}
function startAtScene(chapterId: string, sceneId: string) {
const [elA, elB] = videoEls()
if (elA && elB) engine.videoManager.attach(elA, elB)
store.setGameEnded(false)
engine.startAtScene(chapterId, sceneId)
}
function skipScene() {
engine.skipCurrentScene()
}
@@ -274,6 +281,7 @@ export function useGameEngine(videoEls: () => [HTMLVideoElement | null, HTMLVide
makeChoice,
clickHotspot,
startChapter,
startAtScene,
skipScene,
setSpeed,
getSpeed,