Working on how to do an idle 'breathing' animation for sprites.

This commit is contained in:
Zed A. Shaw 2025-10-28 01:03:59 -04:00
parent 2ecd8528ea
commit 26d313269c
3 changed files with 28 additions and 9 deletions

View file

@ -16,7 +16,7 @@ namespace animation {
void center(sf::Sprite& target, sf::Vector2f pos);
void init();
components::Animation load(const std::string& name);
components::Animation load(const std::string& name, const std::string& state="");
bool has(const std::string& name);
void configure(DinkyECS::World& world, DinkyECS::Entity entity);
void step_animation(DinkyECS::World& world, DinkyECS::Entity entity, sf::Vector2f& scale_out, sf::Vector2f& pos_out, sf::IntRect& rect_out);