mirror of
https://github.com/Such-Software/wownerogue.git
synced 2026-10-18 14:51:26 +02:00
3D is a paid rung and should behave like the other modes. Rework the THREE camera to FOLLOW the player instead of framing the whole level: canvas now sizes to the host (setSize updateStyle), the ortho frustum is a fixed player-centered zoom (span 8) with host aspect, and _animate re-targets the camera to the player world position every frame (keeps the iso (8,9,8) offset; glides smoothly since the player mesh lerps). SP._applyCamera no longer CSS-transforms the 3D canvas (it fills the host and THREE owns the camera). Handles host resize via _fitToHost.