feat(credits): add in both nds and repo

This commit is contained in:
2026-02-24 14:38:15 +01:00
parent e40dd255af
commit 7035525dfc
16 changed files with 400 additions and 11 deletions

View File

@@ -7,4 +7,5 @@ import Buttons from "./Buttons.vue";
<Background />
<Buttons />
<AchievementsFadeToBlack />
<CreditsFadeToBlack />
</template>

View File

@@ -13,13 +13,12 @@ const { selected, pressed, selectorPosition } = useButtonNavigation({
contact: [31, 71, 97, 49],
gallery: [127, 71, 97, 49],
theme: [0, 167, 31, 26],
credits: [0, 167, 31, 26],
settings: [112, 167, 31, 26],
achievements: [225, 167, 31, 26],
},
initialButton: store.selectedButton,
onActivate: (button) => {
if (button === "theme") throw new Error(`Not implemented: ${button}`);
store.animateOutro(button);
},
navigation: {
@@ -39,11 +38,11 @@ const { selected, pressed, selectorPosition } = useButtonNavigation({
left: "contact",
down: "settings",
},
theme: {
credits: {
right: "settings",
},
settings: {
left: "theme",
left: "credits",
up: "last",
right: "achievements",
},
@@ -161,9 +160,9 @@ onRender((ctx) => {
<Button
:x="10"
:y="175 + getButtonOffset('theme')"
:opacity="getOpacity('theme')"
:image="getButtonImage('theme')"
:y="175 + getButtonOffset('credits')"
:opacity="getOpacity('credits')"
:image="getButtonImage('credits')"
/>
<Button
:x="117"

View File

@@ -17,4 +17,5 @@ onMounted(() => {
<Clock />
<StatusBar />
<AchievementsFadeToBlack />
<CreditsFadeToBlack />
</template>