Can now pan and move the camera to focus on bosses, player, and their actions.

This commit is contained in:
Zed A. Shaw 2026-01-02 10:57:44 -05:00
parent 51bb74e2d7
commit 22db12f5e4
6 changed files with 38 additions and 28 deletions

View file

@ -5,12 +5,12 @@
namespace cinematic {
struct Camera {
components::Animation anim;
sf::View view;
sf::Vector2f base_size{SCREEN_WIDTH, SCREEN_HEIGHT};
sf::Vector2f size{SCREEN_WIDTH, SCREEN_HEIGHT};
sf::FloatRect camera_bounds{{0,0},{SCREEN_WIDTH, SCREEN_HEIGHT}};
sf::Vector2f base_size{SCREEN_WIDTH, SCREEN_HEIGHT};
sf::Vector2f aimed_at{0,0};
sf::Vector2f going_to{0,0};
sf::FloatRect camera_bounds{{0,0},{SCREEN_WIDTH, SCREEN_HEIGHT}};
sf::View view;
Camera(sf::Vector2f base_size);