From 7ac60d186f639fb19501a73641e0c99aa2cbc6a2 Mon Sep 17 00:00:00 2001 From: Pihkaal Date: Tue, 24 Feb 2026 12:07:14 +0100 Subject: [PATCH] feat: require click on the loading screen, and make intro animation faster --- app/components/Intro/TopScreen/TopScreen.vue | 1 - app/components/LoadingScreen.vue | 26 +++++++++++++++++--- app/components/NDS3D.vue | 4 +++ app/pages/index.vue | 2 +- app/stores/app.ts | 1 + app/stores/intro.ts | 6 +++-- i18n/locales/en.json | 10 +++----- 7 files changed, 36 insertions(+), 14 deletions(-) diff --git a/app/components/Intro/TopScreen/TopScreen.vue b/app/components/Intro/TopScreen/TopScreen.vue index 4d0b3c3..0eab607 100644 --- a/app/components/Intro/TopScreen/TopScreen.vue +++ b/app/components/Intro/TopScreen/TopScreen.vue @@ -2,7 +2,6 @@ const { onRender } = useScreen(); const { assets } = useAssets(); const store = useIntroStore(); - const frames = Object.keys(assets.images.intro.logoAnimated).sort(); onMounted(() => { diff --git a/app/components/LoadingScreen.vue b/app/components/LoadingScreen.vue index 54ac527..2a3c93e 100644 --- a/app/components/LoadingScreen.vue +++ b/app/components/LoadingScreen.vue @@ -1,11 +1,22 @@ + + - diff --git a/app/components/NDS3D.vue b/app/components/NDS3D.vue index 7173368..85a6332 100644 --- a/app/components/NDS3D.vue +++ b/app/components/NDS3D.vue @@ -614,6 +614,10 @@ const handleTouchEnd = (event: TouchEvent) => { onMounted(() => { app.ready = true; + if (app.userHasInteracted) { + animateIntro(); + } + if (renderer) { renderer.instance.domElement.addEventListener("mousedown", handleMouseDown); renderer.instance.domElement.addEventListener("click", handleClick); diff --git a/app/pages/index.vue b/app/pages/index.vue index cde8f1d..f4314bc 100644 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -154,7 +154,7 @@ useKeyDown(async ({ key, repeated }) => {