Widen galaxy orbits, relax lock layout, enlarge vault disk

This commit is contained in:
Tessera Agent
2026-11-09 10:56:21 +00:00
parent a920235feb
commit 2085b35cfa
2 changed files with 111 additions and 45 deletions

View File

@@ -11,9 +11,10 @@ import { easeOutCubic, useGalaxyTime } from "../../hooks/useGalaxyMotion";
const MAX_STARS = 20;
const MAX_MOONS = 6;
const STAR_R_FLOW = 5.5;
const STAR_R_LOCK = 11;
const HIT_R_LOCK = 18;
const STAR_R_FLOW = 7.5;
const STAR_R_LOCK = 12;
const HIT_R_LOCK = 20;
const MOON_HIT_LOCK = 14;
function statusColor(status: string): string {
if (status === "failed") return "#f87171";
@@ -83,10 +84,10 @@ export function BlackholeGalaxy({
const snapsByOrbit = useMemo(() => groupSnaps(snapshots), [snapshots]);
return (
<div className="w-[92%] max-w-[960px] h-[min(80dvh,88vw)] mx-auto flex items-center justify-center pb-16 pointer-events-auto">
<div className="absolute inset-0 flex items-center justify-center pt-16 pb-24 px-6 sm:px-10 pointer-events-auto">
<svg
viewBox="-280 -280 560 560"
className="w-full h-full"
viewBox="-300 -300 600 600"
className="w-full h-full max-w-[min(96vw,1100px)] max-h-[min(85dvh,96vw)]"
preserveAspectRatio="xMidYMid meet"
role="application"
aria-label="Galaxy vault viewport"
@@ -154,7 +155,7 @@ export function BlackholeGalaxy({
moons.length,
t,
flowing && blend > 0.5,
30,
34,
);
return (
@@ -190,8 +191,8 @@ export function BlackholeGalaxy({
{moons.map((moon, mi) => {
const mp = moonPts[mi];
const sel = moon.id === selectedSnapshotId;
const mr = flowing ? 2.8 : sel ? 7 : 5.5;
const hit = flowing ? mr : 10;
const mr = flowing ? 3.5 : sel ? 8 : 6;
const hit = flowing ? mr : MOON_HIT_LOCK;
return (
<g key={moon.id}>
{!flowing && (
@@ -259,32 +260,32 @@ function BlackHoleCore({
return (
<g className="cursor-pointer" onClick={onToggle}>
<title>{flowing ? "Click to lock vault for targeting" : "Click to resume galaxy flow"}</title>
<circle cx="0" cy="0" r="118" fill="url(#bhCore)" opacity="0.85" />
<circle cx="0" cy="0" r="132" fill="url(#bhCore)" opacity="0.85" />
<ellipse
cx="0"
cy="0"
rx="98"
ry="26"
rx="118"
ry="32"
fill="none"
stroke="url(#bhDisk)"
strokeWidth="14"
opacity="0.65"
strokeWidth="16"
opacity="0.7"
transform={`rotate(${diskRot})`}
/>
<ellipse
cx="0"
cy="0"
rx="72"
ry="18"
rx="86"
ry="22"
fill="url(#bhDisk)"
opacity="0.5"
opacity="0.55"
transform={`rotate(${-diskRot * 1.4 + 14})`}
/>
<circle cx="0" cy="0" r="32" fill="#000" stroke="#a78bfa" strokeOpacity="0.65" strokeWidth="1.5" />
<circle cx="0" cy="0" r="38" fill="#000" stroke="#a78bfa" strokeOpacity="0.7" strokeWidth="2" />
<circle
cx="0"
cy="0"
r="108"
r="122"
fill="none"
stroke="#a78bfa"
strokeOpacity={flowing ? 0.12 : 0.28}