storyboard::UI now adapts the camera to fit the story beats, but really story should do that.
This commit is contained in:
parent
d56b4bd335
commit
024d0cfae7
9 changed files with 123 additions and 19 deletions
|
|
@ -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);
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue