feat(2d-nds): intro animation
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m47s

This commit is contained in:
2026-02-27 12:17:53 +01:00
parent 28df5ac25a
commit cd64082e84
3 changed files with 58 additions and 11 deletions

View File

@@ -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(