tekki mariani 0f411f0f34 implement zoom-to-mouse in CameraSystem
Replaces plain cam.setZoom() with zoom-to-mouse: after each zoom step
the scroll is corrected by (mouseOffset from center) * (1/zBefore - 1/zAfter),
keeping the world point under the cursor fixed. Also fixes getCenterWorld()
which previously divided by zoom incorrectly. Added JSDoc to all methods.
2026-03-21 11:53:00 +00:00
2026-03-21 11:53:00 +00:00
2026-03-20 08:11:31 +00:00
2026-03-20 08:11:31 +00:00
2026-03-20 08:11:31 +00:00
2026-03-20 08:11:31 +00:00
2026-03-20 08:11:31 +00:00
2026-03-20 08:11:31 +00:00
Description
A peaceful settlement simulation focused on inhabitants
524 KiB
Languages
TypeScript 99.5%
HTML 0.5%