Skip to content

fix(mascot): layers that share an origin move as one - #598

Merged
lorant-one merged 2 commits into
previewfrom
fix/mascot-layer-phase
Nov 24, 2026
Merged

lorant-one merged 2 commits into
previewfrom
fix/mascot-layer-phase

Conversation

@lorant-one

Copy link
Copy Markdown
Member

Each moving mascot layer took its step in the loop from its position in the list (i % 5). A thing drawn in several layers therefore came apart while it moved: a floating ghost's eyes drifted off its body, and a flame's core flickered out of time with the flame. Studio's wardrobe (jetpack flames, floating pets) needs those parts to move together.

Change: a moving layer that gives an origin takes its phase from its motion and origin. Layers that share both keep one phase. Layers without an origin stagger by index as before, so existing designs look the same.

  • Mascot.tsx: phaseOf(), a small string hash to one of the five steps.
  • mascotIdentities.ts: the origin doc says it.
  • Test in mascot-layer-motion.test.tsx.
  • CHANGELOG: an Unreleased Fixed entry.

Generated by Claude Code

@lorant-one
lorant-one merged commit a50c94a into preview Nov 24, 2026
9 checks passed
@lorant-one lorant-one added the approved label Nov 24, 2026 — with Claude
@lorant-one lorant-one mentioned this pull request Nov 24, 2026
7 tasks done
@lorant-one
lorant-one deleted the fix/mascot-layer-phase branch November 29, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants