feat(2d-nds): intro animation
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m47s
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m47s
This commit is contained in:
@@ -14,15 +14,17 @@ export const useIntroStore = defineStore("intro", {
|
||||
|
||||
isIntro: true,
|
||||
isOutro: false,
|
||||
isAnimating: false,
|
||||
}),
|
||||
|
||||
actions: {
|
||||
animateIntro() {
|
||||
if (this.isAnimating) return;
|
||||
this.isAnimating = true;
|
||||
this.isIntro = true;
|
||||
|
||||
const { assets } = useAssets();
|
||||
const app = useAppStore();
|
||||
const delay = app.settings.renderingMode === "2d" ? 1 : 3;
|
||||
const delay = 3;
|
||||
const totalFrames = Object.keys(assets.images.intro.logoAnimated).length;
|
||||
const logoDuration = totalFrames / 25;
|
||||
|
||||
@@ -30,6 +32,7 @@ export const useIntroStore = defineStore("intro", {
|
||||
.timeline({
|
||||
onComplete: () => {
|
||||
this.isIntro = false;
|
||||
this.isAnimating = false;
|
||||
},
|
||||
})
|
||||
.call(
|
||||
|
||||
Reference in New Issue
Block a user