Working on how to do an idle 'breathing' animation for sprites.
This commit is contained in:
parent
2ecd8528ea
commit
26d313269c
3 changed files with 28 additions and 9 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue