Smooth battle zone camera transitions

This commit is contained in:
2026-06-09 14:50:50 +08:00
parent 493b2bd3b8
commit 3e2e25eb93
5 changed files with 53 additions and 6 deletions
+8
View File
@@ -31,7 +31,9 @@ private:
std::vector<BattleZoneDebugInfo> buildBattleZoneDebugInfo() const;
void configureCamera();
void toggleDebugOverlay();
void beginCameraBoundsBlend(const frostbite2D::Rect& targetBounds);
void clearActiveBattleZone();
void updateCameraBoundsBlend(float deltaTime);
void updateBattleZones();
void updateCamera(float deltaTime);
@@ -39,6 +41,12 @@ private:
DebugFlags debugFlags_;
std::vector<BattleZoneRuntime> battleZoneStates_;
int activeBattleZoneIndex_ = -1;
bool cameraBoundsBlendActive_ = false;
float cameraBoundsBlendTimer_ = 0.0f;
float cameraBoundsBlendDuration_ = 0.35f;
frostbite2D::Rect cameraBoundsBlendStart_;
frostbite2D::Rect cameraBoundsBlendTarget_;
frostbite2D::Rect currentCameraBounds_;
CameraController cameraController_;
StageRenderer stageRenderer_;
DebugOverlay debugOverlay_;