Skip to content

fix: queue avatar jumps back when delayed (#441)#2909

Open
sungdark wants to merge 1 commit intoFreezingMoon:masterfrom
sungdark:fix/queue-avatar-jump-441
Open

fix: queue avatar jumps back when delayed (#441)#2909
sungdark wants to merge 1 commit intoFreezingMoon:masterfrom
sungdark:fix/queue-avatar-jump-441

Conversation

@sungdark
Copy link
Copy Markdown

@sungdark sungdark commented Mar 27, 2026

Summary

When a creature is delayed, the avatar now visually leaps from its original position to the delayed section of the queue using an arc animation, instead of a plain position transition.

Changes

  • src/ui/queue.ts: Added prevX tracking in the Vignette class. When animateUpdate detects a significant backward movement (>80px, indicating the creature moved from the active section to the delayed section), it plays an arc animation (up then down) for a more intuitive visual effect.

How it works

When a creature is delayed:

  1. It previously appeared at its original position then suddenly jumped
  2. Now it animates in an arc from its old position to the new delayed position

Bounty

收款地址:eB51DWp1uECrLZRLsE2cnyZUzfRWvzUzaJzkatTpQV9

fixes #441

When a creature is delayed, the avatar now visually leaps from its
original position to the delayed section of the queue using an arc
animation instead of a plain position transition.

- Added prevX tracking in Vignette class to detect position changes
- When a creature moves backward significantly (>80px) in the queue
  (i.e., from active section to delayed section), animate with an arc
  upward then down to the new position
- This makes the delay action more intuitive and visually satisfying

Fixes FreezingMoon#441
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 27, 2026

@sungdark is attempting to deploy a commit to the FreezingMoon Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

queue avatar to jump back when delayed [bounty: 14 XTR]

1 participant