Smooth battle zone camera transitions
This commit is contained in:
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user