Skip to content

v0.2.1 — pan no longer loses the city

Choose a tag to compare

@mariuz mariuz released this 27 Jul 10:13

A small release in the spirit of PGSimCity v0.7.1 ("zoom no longer loses the city") and the v0.6 screen-space work, ported to the isometric camera.

Fixed

  • Pan can no longer lose the city. The camera clamp inverts the projection for the screen center and keeps that world point inside the (padded) world rectangle, so no combination of drag and zoom can leave you staring at empty void. Verified against seven torture cases — million-pixel drags in every direction at minimum and maximum zoom all land with city under the screen center, while sane camera positions are left untouched.

Added

  • First-visit gesture hint — a small "drag to pan · scroll to zoom · click a building" pill in the middle of the view, dismissed by the first gesture (or after nine seconds), never shown again.
  • Collapsible control room — the panel folds to its title bar, remembers the choice, and starts collapsed on narrow screens: the city gets the screen back.
  • tools/screenshot.ps1 — the headless-Edge screenshot driver that regenerates docs/screenshot.png from a deep-linked simulation state now lives in the repository.
  • A window.FBDebug hook (camera + clamp) so camera invariants can be tested without rendering.

Changed

  • Building name labels now appear at a slightly higher zoom (1.0 instead of 0.9), so a city-wide view stays a city, not a sea of captions; hovered and selected buildings always keep their labels.