feat: full-screen StoryGallery with flow layout, startAtScene engine method, clickable flow nodes
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user