• Mahmoud Aglan's avatar
    fix: backgammon gameplay — working buttons, correct canvas rendering, no DPR bugs · 873b7000
    Mahmoud Aglan authored
    - Remove DPR ctx.scale() that compounded every frame and broke all rendering
    - Use logical pixel dimensions directly (canvas.width = logical size)
    - Fix isSel/isValid closures that caused undefined reference errors in checker glow
    - Simplify game scene: roll button is now a normal element in .bgg-controls (not overlay)
    - Event handlers correctly scale click coords via rect ratio
    - Remove unused getCheckerScreenPos import from move-animator
    - All buttons (roll, double, emote, quit) bind via addEventListener properly
    Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
    873b7000
game.js 24.9 KB