feat(credits): add defectDS

This commit is contained in:
2026-02-25 16:22:35 +01:00
parent a265180a79
commit 8c45f831a9
3 changed files with 19 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
import gsap from "gsap";
export const CREDITS = ["model3d", "css2d", "nintendo"] as const;
export const CREDITS = ["model3d", "css2d", "nintendo", "defectds"] as const;
export type CreditId = (typeof CREDITS)[number];
export const useCreditsStore = defineStore("credits", {
@@ -151,9 +151,9 @@ export const useCreditsStore = defineStore("credits", {
export const CREDITS_LINE_HEIGHT = 14;
export const CREDITS_ENTRY_GAP = 12;
export const CREDITS_HEADER_Y = 30;
export const CREDITS_LIST_START_Y = CREDITS_HEADER_Y + 35;
export const CREDITS_LIST_START_Y = CREDITS_HEADER_Y + 40;
export const CREDITS_ENTRY_HEIGHT = CREDITS_LINE_HEIGHT * 3 + CREDITS_ENTRY_GAP;
export const CREDITS_TOP_SCREEN_COUNT = Math.floor(
(LOGICAL_HEIGHT - CREDITS_LIST_START_Y) / CREDITS_ENTRY_HEIGHT,
);
export const CREDITS_BOTTOM_START_Y = 30;
export const CREDITS_BOTTOM_START_Y = 20;