Better working camera that is constrained in the bounds, but the animations don't follow the bounding.

This commit is contained in:
Zed A. Shaw 2026-01-01 12:59:39 -05:00
parent 6dc9d564c6
commit 51bb74e2d7
9 changed files with 93 additions and 33 deletions

View file

@ -34,7 +34,7 @@ namespace scene {
std::unordered_map<std::string, int> $actor_name_ids;
std::vector<Element> $fixtures;
std::vector<Element> $actors;
cinematic::Camera $camera;
cinematic::Camera $camera{{BOSS_VIEW_WIDTH, BOSS_VIEW_HEIGHT}};
Engine(components::AnimatedScene& scene);
@ -51,8 +51,8 @@ namespace scene {
void play_animations();
void apply_effect(const std::string& actor, const std::string& shader);
Element& actor_config(const std::string& actor);
void zoom(const std::string& cell);
void reset(sf::RenderTexture& view, float width, float height);
void zoom(int mid_x, int mid_y, int width, int height);
void zoom(const std::string& actor, float scale=0.9f);
void zoom(float mid_x, float mid_y, float scale);
void reset(sf::RenderTexture& view);
};
}