storyboard::UI now adapts the camera to fit the story beats, but really story should do that.

This commit is contained in:
Zed A. Shaw 2026-02-22 12:14:42 -05:00
parent d56b4bd335
commit 024d0cfae7
9 changed files with 123 additions and 19 deletions

View file

@ -11,7 +11,7 @@ namespace storyboard {
guecs::UI $ui;
sf::RenderTexture $view_texture;
sf::Sprite $view_sprite;
cinematic::Camera $camera{{SCREEN_WIDTH, SCREEN_HEIGHT}};
cinematic::Camera $camera{{SCREEN_WIDTH, SCREEN_HEIGHT}, "story"};
std::shared_ptr<sf::Sound> $audio;
std::string $zoom_target = "a";
bool $moving = false;
@ -29,6 +29,7 @@ namespace storyboard {
void reset();
void track_audio();
bool playing();
void config_camera(cinematic::Camera &camera);
};
}