Compare commits
No commits in common. "demo" and "main" have entirely different histories.
20
src/App.vue
20
src/App.vue
@ -17,9 +17,7 @@ const gamePage = useTemplateRef('game-page');
|
|||||||
function startExploration(payload: { region: string; store: string; username: string }) {
|
function startExploration(payload: { region: string; store: string; username: string }) {
|
||||||
userData.value = payload;
|
userData.value = payload;
|
||||||
stage.value = 1;
|
stage.value = 1;
|
||||||
setTimeout(() => {
|
gamePage.value?.init();
|
||||||
gamePage.value?.init();
|
|
||||||
}, 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -106,21 +104,23 @@ const gameKey = ref(10)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<Loader class="page" v-if="stage == -1" @loaded="startExploration" style="z-index: 100;" />
|
<Loader class="page" v-if="stage == -1" @loaded="stage = 0"
|
||||||
|
style="z-index: 100;" />
|
||||||
|
|
||||||
<Transition name="fade" mode="out-in">
|
<Transition name="fade" mode="out-in">
|
||||||
<Page1 class="page page-1" v-if="stage == 0" style="z-index: 99;" @start-exploration="startExploration" />
|
<Page1 class="page page-1" v-if="stage == 0" style="z-index: 99;"
|
||||||
|
@start-exploration="startExploration" />
|
||||||
</Transition>
|
</Transition>
|
||||||
|
|
||||||
<Transition name="fade" mode="out-in">
|
<Game class="page" :userdata="userData" :key="gameKey" v-if="stage >= 0"
|
||||||
<Game class="page" :userdata="userData" :key="gameKey" v-if="stage >= 0" :style="{ opacity: stage === 1 ? 1 : 0 }"
|
:style="{ opacity: stage === 1 ? 1 : 0 }" style="z-index: 98;"
|
||||||
style="z-index: 98;" @cloud-down="cloudDown" @cloud-up="cloudUp" ref="game-page" @restart="gameKey++" />
|
@cloud-down="cloudDown" @cloud-up="cloudUp" ref="game-page" @restart="gameKey++" />
|
||||||
</Transition>
|
|
||||||
|
|
||||||
<div class="overlay page">
|
<div class="overlay page">
|
||||||
<div class="bgm"
|
<div class="bgm"
|
||||||
style="position: absolute; top: 16vw;right: 8vw;width: 8vw; cursor: pointer;pointer-events: all;">
|
style="position: absolute; top: 16vw;right: 8vw;width: 8vw; cursor: pointer;pointer-events: all;">
|
||||||
<img src="./assets/开启音乐.webp" @click="playingBgm = false" alt="" v-if="playingBgm">
|
<img src="./assets/开启音乐.webp" @click="playingBgm = false" alt=""
|
||||||
|
v-if="playingBgm">
|
||||||
<img src="./assets/关掉音乐.webp" @click="playingBgm = true" alt="" v-else>
|
<img src="./assets/关掉音乐.webp" @click="playingBgm = true" alt="" v-else>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
BIN
src/assets/ani/开始探索.zip
Normal file
BIN
src/assets/ani/开始探索.zip
Normal file
Binary file not shown.
BIN
src/assets/ani/海报p1.zip
Normal file
BIN
src/assets/ani/海报p1.zip
Normal file
Binary file not shown.
BIN
src/assets/ani/海报p2.zip
Normal file
BIN
src/assets/ani/海报p2.zip
Normal file
Binary file not shown.
BIN
src/assets/ani/点击选择阵营.zip
Normal file
BIN
src/assets/ani/点击选择阵营.zip
Normal file
Binary file not shown.
BIN
src/assets/ani/答题标题.zip
Normal file
BIN
src/assets/ani/答题标题.zip
Normal file
Binary file not shown.
BIN
src/assets/ani/线.zip
Normal file
BIN
src/assets/ani/线.zip
Normal file
Binary file not shown.
BIN
src/assets/ani/结尾主标.zip
Normal file
BIN
src/assets/ani/结尾主标.zip
Normal file
Binary file not shown.
@ -603,7 +603,7 @@ window.addEventListener('keydown', (e) => {
|
|||||||
<Transition name="fade">
|
<Transition name="fade">
|
||||||
<div class="game-end" v-if="gameState == GAME_STATE.gameEnd">
|
<div class="game-end" v-if="gameState == GAME_STATE.gameEnd">
|
||||||
<GatheringCloud ref="gatheringCloud" />
|
<GatheringCloud ref="gatheringCloud" />
|
||||||
|
<Button @click="startQuiz" class="start-quiz-btn">开始答题</Button>
|
||||||
</div>
|
</div>
|
||||||
</Transition>
|
</Transition>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user