Lift the focused map above overlapping neighbours; tilt to 35 degrees

Placements are approximate, so map rectangles overlap where the real
locations do not -- Reserve clips Customs, Lighthouse clipped Shoreline.
Sampling the rendered tiles showed the stacking was technically fine
(finer map always on top) but that did not help: an overlapping neighbour
still covered the map you had navigated to.

Stacking is now explicit. Baseline order is by maxNativeZoom then footprint
so the finer map wins, and whichever map the view is centred on is lifted
above everything else. Verified for Shoreline, Lighthouse, Customs, Reserve
and Woods: each becomes topmost when centred.

Tilt raised 31 -> 35 degrees. The original 31 came from fitting the Customs
zone outline's aspect ratio, but that polygon encloses more than the
playable strip so the estimate ran low; attempts to register the two
polygons directly failed because the dashed outline will not flood-fill.
35 aligns better by eye.

`place` lives in the rotated frame, so retilt.py converts every placement
through the old and new angles -- changing the tilt no longer scatters the
maps. Lighthouse's box also tightened; its PSD is nearly square while the
zone is a coastal strip, so it overhung into the sea.

Verified zoom 0-9: 620 tiles, zero broken.

Co-Authored-By: Claude Opus 5 <[email protected]>
This commit is contained in:
Claude committed 2026-08-08 11:37:15 -07:00
1 parent e8d8738892
commit e656c7c96a
6 files changed
+158 -40

No files matched your search

+15
View File
@@ -109,6 +109,21 @@ aspect ratio. Positions are deliberately approximate — the game's individual
maps are not drawn to match the satellite view exactly, so aim for "clearly the
right place", not pixel alignment.
Because placements are approximate, map rectangles **do** overlap where the
real locations don't. That is handled in the viewer rather than by chasing
perfect boxes: the map whose centre you are viewing is always lifted to the
top, so an overlapping neighbour can never hide it.
### Changing the tilt
`place` coordinates live in the rotated frame, so editing `world.rotate` by
hand would move every map. Use the helper instead — it converts all placements
through the old and new angles so geography is preserved:
```bash
python tools/retilt.py 35
```
---
## 5. Build and verify