feat: require click on the loading screen, and make intro animation faster
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user