refit map when viewport size changes - #240
Open
treeform wants to merge 2 commits into
Open
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
The Nim/wasm global client drew UI layers at a fixed 3x, so a small embed (softmax.com's ~875x500 Heartleaf replay frame) clipped the bottom bar and overlapped the score panel. Pick the largest stepped zoom (0.5, 1, 2, 3, 4) at which every UI layer fits the window with 1.5x padding, like Polyworld's stepped HUD scale, and use the same steps in the HTML global client. Layer textures use linear minification so 0.5x UI and zoomed-out maps average pixels instead of dropping rows. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
nim r tests/test_client.nimMade with Cursor