Switch from backward interpolation (lerp prev→current) to forward extrapolation (current + (current-prev) * t). The visual now leads toward the next tile, aligning with the logical hitbox so coins disappear when Pac-Man visually reaches them. When blocked (sync-prev! sets prev=current), the offset is zero and the sprite stays at the current tile. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
16 KiB
16 KiB