When there's actions in the arena the camera moves.

This commit is contained in:
Zed A. Shaw 2025-11-22 14:53:52 -05:00
parent 63a17d7efa
commit d244106981
4 changed files with 52 additions and 14 deletions

View file

@ -6,7 +6,7 @@ namespace cinematic {
struct Camera {
components::Animation anim;
sf::View view;
sf::Vector2f size{SCREEN_WIDTH, SCREEN_WIDTH};
sf::Vector2f size{SCREEN_WIDTH, SCREEN_HEIGHT};
sf::Vector2f aimed_at{0,0};
sf::Vector2f going_to{0,0};
@ -19,6 +19,7 @@ namespace cinematic {
void render(sf::RenderTexture& target);
void play();
void style(const std::string &name);
void reset(sf::RenderTexture& target, float width, float height);
};
void init();