When there's actions in the arena the camera moves.
This commit is contained in:
parent
63a17d7efa
commit
d244106981
4 changed files with 52 additions and 14 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue