Game UI: diegetic HUD over persistent vault scene

Space Engine-style viewport with cockpit frame, glyph rail,
console overlays for orbits/wormhole/decay/reconstitute.
This commit is contained in:
Tessera Agent
2026-11-09 10:36:21 +00:00
parent 1a67876f19
commit d358c73291
8 changed files with 481 additions and 128 deletions

View File

@@ -0,0 +1,36 @@
import { motion } from "motion/react";
import type { Snapshot } from "../../api";
import { VaultRing } from "../vault/VaultRing";
import { Starfield } from "./Starfield";
export function VaultScene({
snapshots,
onSelect,
onCapture,
capturing,
}: {
snapshots: Snapshot[];
onSelect: (id: string) => void;
onCapture?: () => void;
capturing?: boolean;
}) {
return (
<div className="absolute inset-0 overflow-hidden">
<div className="absolute inset-0 bg-[radial-gradient(ellipse_at_center,rgba(30,38,71,0.45)_0%,rgba(4,5,12,0.95)_65%)]" />
<Starfield />
<motion.div
className="absolute top-1/4 left-1/2 -translate-x-1/2 w-[80vmin] h-[40vmin] rounded-full bg-wormhole-violet/5 blur-3xl"
animate={{ opacity: [0.3, 0.55, 0.3], scale: [1, 1.05, 1] }}
transition={{ duration: 8, repeat: Infinity }}
/>
<div className="relative z-10 h-full w-full pb-28">
<VaultRing
snapshots={snapshots}
onSelect={onSelect}
onCapture={onCapture}
capturing={capturing}
/>
</div>
</div>
);
}