feat: require click on the loading screen, and make intro animation faster

This commit is contained in:
2026-02-24 12:07:14 +01:00
parent b8054c58e1
commit 1167242798
7 changed files with 36 additions and 14 deletions

View File

@@ -21,6 +21,8 @@ export const useIntroStore = defineStore("intro", {
this.isIntro = true;
const { assets } = useAssets();
const app = useAppStore();
const delay = app.settings.renderingMode === "2d" ? 1 : 3;
const totalFrames = Object.keys(assets.images.intro.logoAnimated).length;
const logoDuration = totalFrames / 25;
@@ -37,7 +39,7 @@ export const useIntroStore = defineStore("intro", {
duration: 0.1,
ease: "none",
},
4.1,
delay,
)
.to(
this.intro,
@@ -46,7 +48,7 @@ export const useIntroStore = defineStore("intro", {
duration: logoDuration,
ease: "steps(" + (totalFrames - 1) + ")",
},
4.1,
delay,
)
.call(() => {
const app = useAppStore();