Skip to content

fix(client): don't draw the walk marker at the view centre when the destination is off-screen - #78

Open
CakeRepository wants to merge 1 commit into
MaxBittker:mainfrom
CakeRepository:fix/walk-marker-offscreen
Open

CakeRepository wants to merge 1 commit into
MaxBittker:mainfrom
CakeRepository:fix/walk-marker-offscreen

Conversation

@CakeRepository

Copy link
Copy Markdown

Client.walkTo falls back to (256, 166) for the yellow walk cross when projectTileToScreen returns null. Most SDK walks go further than the visible view, so the marker flashes in the middle of the game screen, which reads as a click on whatever stands there. We noticed it watching an agent play, and it also misleads anything that reads the screen.

This draws the marker only when the destination projects on screen. Walks to visible tiles look the same as before.

Checks (Windows 11, bun 1.4.2):

  • bun run typecheck and bun run typecheck:webclient pass.
  • bun run test: 299 pass / 26 fail, the same tests with and without this change on current main. The failures predate it on this machine (DOM-less tests such as document is not defined, plus timing-sensitive tests).

🤖 Generated with Claude Code

…estination is off-screen

Client.walkTo fell back to (256, 166) for the yellow walk cross when
projectTileToScreen returned null. Most SDK walks go further than the visible
view, so the marker flashed in the middle of the game screen, which reads as a
click on whatever stands there. Draw the marker only when the destination
projects on screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant