Skip to content

Feat/add animations to game actions - #10

Merged
iflames1 merged 2 commits into
devfrom
feat/add-animations-to-game-actions
Aug 2, 2026
Merged

Feat/add animations to game actions#10
iflames1 merged 2 commits into
devfrom
feat/add-animations-to-game-actions

Conversation

@iflames1

@iflames1 iflames1 commented Aug 2, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings August 2, 2026 02:07
@cursor

cursor Bot commented Aug 2, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@vercel

vercel Bot commented Aug 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
stacks-wars Ready Ready Preview Aug 2, 2026 2:08am

@iflames1
iflames1 merged commit b840057 into dev Aug 2, 2026
2 checks passed
@iflames1
iflames1 deleted the feat/add-animations-to-game-actions branch August 2, 2026 02:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates several game rooms and shared UI to add motion cues (pulsing/nudging highlights) and to make turn timers/shot clocks render only for the active player.

Changes:

  • Update TurnBar behavior so the shot clock only renders on your turn, and adjust game rooms to pass timeoutSecs accordingly.
  • Add new global animation keyframes/utilities and apply them to actionable UI elements (roll button, movable pieces/pawns).
  • Improve some in-room UX flows (e.g., Ludo move value ordering, brief hold to read “no-move” rolls; Checkers allows switching selection mid-turn).

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
games/shared/turn-bar.tsx Makes the shot clock conditional on isYou and non-null/positive timeoutSecs.
games/ludo/room.tsx Adds engine-driven shot clock state, “no-move roll” hold, value ordering, and action animations.
games/ludo/board.tsx Adds animated/outlined styling for movable pawns and refactors pawn markup.
games/lexi-wars/room.tsx Passes timeoutSecs only on the local player’s turn; adjusts resetKey.
games/checkers/room.tsx Passes timeoutSecs only on the local player’s turn; updates hints and placeholder sizing.
games/checkers/board.tsx Allows switching selected piece mid-turn; updates board colors and adds movable-piece animations.
app/globals.css Adds piece-nudge and action-pulse keyframes and utilities.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread games/ludo/room.tsx
/>
) : (
<div className="aspect-square w-full max-w-[620px] animate-pulse rounded-xl bg-muted/50" />
<div className="aspect-square w-full max-w-155 animate-pulse rounded-xl bg-muted/50" />
Comment thread games/checkers/room.tsx
/>
) : (
<div className="grid aspect-square w-full max-w-[560px] animate-pulse grid-cols-8 overflow-hidden rounded-xl">
<div className="grid aspect-square w-full max-w-140 animate-pulse grid-cols-8 overflow-hidden rounded-xl">
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.

2 participants