Have a simple thing that moves every 3 seconds of a song/audio playing to a new panel.

This commit is contained in:
Zed A. Shaw 2025-11-11 00:25:36 -05:00
parent de7f9f3445
commit b5280b4a4d
3 changed files with 35 additions and 1 deletions

View file

@ -2,6 +2,7 @@
#include "constants.hpp"
#include <guecs/ui.hpp>
#include "camera.hpp"
#include <SFML/Audio/Sound.hpp>
namespace storyboard {
@ -10,7 +11,10 @@ namespace storyboard {
sf::RenderTexture $view_texture;
sf::Sprite $view_sprite;
cinematic::Camera $camera;
std::shared_ptr<sf::Sound> $audio;
std::string $zoom_target = "a";
int $moving = false;
std::vector<std::string> $cell_names;
UI();
@ -19,6 +23,7 @@ namespace storyboard {
bool mouse(float x, float y, guecs::Modifiers mods);
void zoom(const std::string &cell_name);
void reset();
void track_audio();
};
}