2 Commits

Author SHA1 Message Date
Pierre Wessman
1aa18376d5 Fix coordinate system to use rink center instead of canvas center
When the pause button was added below the rink, it increased the canvas
height (RINK_HEIGHT + UI_BOTTOM_PADDING). The coordinate conversion was
incorrectly using the full canvas center (including UI padding) instead
of just the rink center, causing y=0 to shift 30 pixels below the actual
center of the rink.

Now CoordinateUtils.gameToScreen/screenToGame correctly use RINK_WIDTH
for centerY calculation, ensuring y=0 is always at the rink center
regardless of UI elements.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-03 13:11:59 +02:00
Pierre Wessman
30d7d95ccc review 2025-10-02 08:22:33 +02:00