• Mahmoud Aglan's avatar
    feat(ludo): piece selection, step-by-step animation, 2-4 player matchmaking, branding admin · 875a302e
    Mahmoud Aglan authored
    PIECE SELECTION:
    - Player always taps which piece to move (golden glow highlight on valid pieces)
    - Canvas click detection: finds nearest highlighted piece within tap radius
    - Even with 1 valid move: brief highlight before auto-execute (confirms to player)
    
    STEP-BY-STEP ANIMATION:
    - Pieces hop one square at a time (120ms per hop) instead of teleporting
    - Audio cue on each step
    - Capture/finish effects play AFTER animation completes
    - Confetti on capture, star burst on finish
    
    MATCHMAKING (2-4 players):
    - Searches for up to 3 waiting opponents
    - 2 humans found → 2 humans + 2 bots
    - 3 humans found → 3 humans + 1 bot
    - 4 humans found → 4 humans, no bots
    - All matched opponents' queue entries updated
    - 30s timeout handled client-side (queue scene already has timer)
    
    BRANDING ADMIN:
    - New 'Ludo Board Colors' section with 9 color controls:
      Red/Blue/Green/Yellow zones, board bg, path, safe star, piece border, grid lines
    Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
    875a302e
ludo-match.php 5.78 KB