Camera is now using animate2 but isn't actually using it yet. Just converted.
This commit is contained in:
parent
7bf7b25a10
commit
46cc21ec7b
8 changed files with 111 additions and 90 deletions
|
|
@ -1,10 +1,11 @@
|
|||
#pragma once
|
||||
#include "components.hpp"
|
||||
#include "animate2.hpp"
|
||||
#include "constants.hpp"
|
||||
#include <SFML/Graphics/RenderTexture.hpp>
|
||||
|
||||
namespace cinematic {
|
||||
struct Camera {
|
||||
components::Animation anim;
|
||||
animate2::Animate2 anim;
|
||||
sf::Vector2f size{SCREEN_WIDTH, SCREEN_HEIGHT};
|
||||
sf::Vector2f base_size{SCREEN_WIDTH, SCREEN_HEIGHT};
|
||||
sf::Vector2f aimed_at{0,0};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue