feat: intro video, asset updates, roadmap and engine improvements
This commit is contained in:
@@ -45,6 +45,8 @@ export const useGameStore = defineStore('game', () => {
|
||||
const antiMistap = ref(localStorage.getItem('antiMistap') !== 'false')
|
||||
const pauseEnabled = ref(localStorage.getItem('pauseEnabled') !== 'false')
|
||||
const showSettings = ref(false)
|
||||
const introVideo = ref('')
|
||||
const menuVideo = ref('')
|
||||
|
||||
function setScene(scene: SceneNode) {
|
||||
currentScene.value = scene
|
||||
@@ -197,6 +199,9 @@ export const useGameStore = defineStore('game', () => {
|
||||
function setPauseEnabled(v: boolean) { pauseEnabled.value = v; localStorage.setItem('pauseEnabled', String(v)) }
|
||||
function setShowSettings(v: boolean) { showSettings.value = v }
|
||||
|
||||
function setIntroVideo(url: string) { introVideo.value = url }
|
||||
function setMenuVideo(url: string) { menuVideo.value = url }
|
||||
|
||||
function dump() {
|
||||
console.group('GameStore')
|
||||
console.log('currentScene:', currentScene.value?.id)
|
||||
@@ -217,7 +222,7 @@ export const useGameStore = defineStore('game', () => {
|
||||
toastAchievementId, showEndingGallery, endings, visitedSceneIds,
|
||||
storyLocales,
|
||||
subFontSize, subBgAlpha, qteTimeRelax, qteSingleKey, antiMistap, pauseEnabled,
|
||||
showSettings,
|
||||
showSettings, introVideo, menuVideo,
|
||||
setScene, setChoices, clearChoices, setGameEnded,
|
||||
setTimer, clearTimer, setSaves,
|
||||
showQTE, updateQTE, resolveQTE, clearQTE, setVideoTime,
|
||||
@@ -229,7 +234,7 @@ export const useGameStore = defineStore('game', () => {
|
||||
setEndings, setShowEndingGallery, setVisitedSceneIds, addVisitedSceneId,
|
||||
setStoryLocales,
|
||||
setSubFontSize, setSubBgAlpha, setQteTimeRelax, setQteSingleKey, setAntiMistap, setPauseEnabled,
|
||||
setShowSettings,
|
||||
setShowSettings, setIntroVideo, setMenuVideo,
|
||||
dump,
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user