Animations are now being pulled correctly but I need to add a timing concept to animations instead of ticks.
This commit is contained in:
parent
517de91a5b
commit
c33f370572
10 changed files with 43 additions and 22 deletions
|
|
@ -11,7 +11,7 @@ namespace animation {
|
|||
std::unordered_map<std::string, components::Animation> animations;
|
||||
};
|
||||
|
||||
bool apply(components::Animation& anim, sf::Sprite& target);
|
||||
bool apply(components::Animation& anim, sf::Sprite& target, sf::Vector2f pos);
|
||||
void rotate(sf::Sprite& target, float degrees);
|
||||
void center(sf::Sprite& target, sf::Vector2f pos);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue