Files
wownerogue/html
jwinterm c4c7d71191 fix(camera): derive focus from last player pos when renderer focusPoint is missing
The SP camera still intermittently pinned the whole level to the top-left at game start: the
per-frame _applyCamera read renderer.focusPoint as null (a start-of-game race, or a tick reading
a just-(re)created renderer instance before its first render) and fell back to a scale-only
transform. Add a fallback: when focusPoint is absent, derive it from SP._lastState.player (tiled
coords, cell=24) so the camera always has a target and centers the player. Also read host dims
via clientW/H||offsetW/H for resilience.
2026-07-13 08:32:59 -04:00
..
2025-09-27 08:45:22 -04:00