Add camera zone lock

This commit is contained in:
2026-06-09 14:28:36 +08:00
parent c1096f0ed5
commit 3a56db3dc7
9 changed files with 146 additions and 19 deletions
+12
View File
@@ -9,6 +9,8 @@
#include <frostbite2D/scene/scene.h>
#include <frostbite2D/types/type_math.h>
#include <string>
#include <vector>
namespace ns_game {
@@ -20,13 +22,23 @@ public:
void Render() override;
private:
struct BattleZoneRuntime {
bool triggered = false;
bool cleared = false;
};
frostbite2D::Camera* activeCamera() const;
std::vector<BattleZoneDebugInfo> buildBattleZoneDebugInfo() const;
void configureCamera();
void toggleDebugOverlay();
void clearActiveBattleZone();
void updateBattleZones();
void updateCamera(float deltaTime);
LevelDefinition level_;
DebugFlags debugFlags_;
std::vector<BattleZoneRuntime> battleZoneStates_;
int activeBattleZoneIndex_ = -1;
CameraController cameraController_;
StageRenderer stageRenderer_;
DebugOverlay debugOverlay_;