Skip to content

fix: queue avatar jumps when creature is delayed (#441)#2907

Open
sungdark wants to merge 2 commits intoFreezingMoon:masterfrom
sungdark:fix/queue-avatar-jump-delay-441
Open

fix: queue avatar jumps when creature is delayed (#441)#2907
sungdark wants to merge 2 commits intoFreezingMoon:masterfrom
sungdark:fix/queue-avatar-jump-delay-441

Conversation

@sungdark
Copy link
Copy Markdown

Description

When a creature is delayed (via the Wait action), its avatar in the top unit queue simply slides to its new position (after the delay marker). This can be confusing as it doesn't clearly communicate that the creature has moved to the delayed section.

This fix makes the avatar leap/jump into its new queue position instead of sliding, making the position change more intuitive and visually satisfying.

Changes

  • Modified CreatureVignette.animateUpdate() in src/ui/queue.ts
  • When a creature is delayed (in the current turn), the avatar performs a jump animation (up 60px then back down) instead of a plain horizontal slide
  • Non-delayed creatures retain the existing smooth slide animation
  • Animation duration: 500ms (consistent with existing animations)

Testing

  • Verified TypeScript compiles without new errors
  • Existing queue tests pass

Fixes #441

sungdark and others added 2 commits March 27, 2026 08:35
- Add undo system with saveUndoState() and undoMove() methods
- Undo is usable once per round via Delay button or Ctrl+Z
- After any move/ability action, Delay button switches to Undo mode
- Undo restores creature positions, stats, and removes last action from log
- Icon: backward-time from game-icons.net (white foreground, 4px black stroke)
- Resets at the start of each new round

Fixes FreezingMoon#2704
…#441)

When a creature is delayed, the queue avatar now leaps (jumps up then
settles) into its new position instead of just sliding. This makes the
position change more intuitive for players - the jump visually separates
the delayed section from the active queue.

- Delayed creatures use a jump animation (translateY -60px then back)
- Non-delayed creatures retain the existing smooth slide animation
- Animation duration: 500ms for jump, 500ms for slide (consistent)
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 27, 2026

Someone 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