Camera is now using Animate2 and it's mostly working, but there's a few more refactors needed.

This commit is contained in:
Zed A. Shaw 2026-02-20 00:15:19 -05:00
parent 46cc21ec7b
commit 364f66bffb
14 changed files with 106 additions and 62 deletions

View file

@ -61,6 +61,10 @@ namespace storyboard {
return sf::Time(out);
}
void UI::update() {
$camera.update();
}
void UI::track_audio() {
auto& beat = $story.beats[cur_beat % $story.beats.size()];
auto track_head = $audio->getPlayingOffset();

View file

@ -22,6 +22,7 @@ namespace storyboard {
UI(const std::string& story_name);
void init();
void update();
void render(sf::RenderWindow &window);
bool mouse(float x, float y, guecs::Modifiers mods);
void zoom(const std::string &cell_name);