Animations are now being pulled correctly but I need to add a timing concept to animations instead of ticks.

This commit is contained in:
Zed A. Shaw 2025-10-10 00:25:37 -04:00
parent 517de91a5b
commit c33f370572
10 changed files with 43 additions and 22 deletions

View file

@ -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);