• Mahmoud Aglan's avatar
    feat: emotes fly from sender's position to center of board · c125345a
    Mahmoud Aglan authored
    Emote animation redesigned:
    - showReceived() now accepts 'fromElement' parameter
    - Emote starts at sender's panel position (scaled small)
    - Pops up to full size at origin (0.2s)
    - Flies to center of game board (0.5s)
    - Grows large and fades out at center (1.8s total)
    - Uses Web Animations API for smooth 60fps path
    
    Chess:
    - YOUR emotes start from your player bar (bottom)
    - Opponent emotes start from their bar (top)
    
    Ludo:
    - YOUR emotes start from your panel (pp-{myPlayerIndex})
    - Opponent emotes start from their panel (pp-{senderIdx})
    
    Both games now have directional emote animation — you can SEE
    who sent what because it originates from their side of the screen.
    Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
    c125345a
emotes.js 5.36 KB