Files
artcraft/frontend/apps
Tanish Manku 0d32304be7 hero: cards size to their neighbors — packed, collision-free, offscreen death
The galaxy's sizing moves from fixed birth-to-full scaling to the real
ask: every frame each card takes a tunable density fraction of the
exact axis-aligned gap to its nearest neighbor (O(N²) over ~20 cards),
so the field packs as tight as the Density knob allows and can never
overlap — growth is eased so freed space fills organically, shrinking
is instant so the guarantee never breaks. Wobble is now collision-safe
(sizing measures wobbled positions) but defaults to 0.

Cards travel past the viewport corner before wrapping, so the death is
never on screen; the exit fade is gone (birth fade stays) and the arm
linework extends past the exit. Corners get a tunable radius via a
rounded-rect SDF in the card shader, with the hairline frame drawn as
a band riding the same edge (replacing the rectangular EdgesGeometry
frames). Clip playback start points are staggered across each clip's
duration so loop resets never line up across the wall.

Claude-Session: https://claude.ai/code/session_01YBoaBEt3gynzTwogBFtn4B
2026-09-10 12:26:31 -07:00
..
2026-09-01 10:25:21 +07:00
2026-09-01 10:25:21 +07:00
2026-09-01 10:25:21 +07:00