Can now see an enemy take damage, and a damage number, but the effect is inverted.

This commit is contained in:
Zed A. Shaw 2025-12-28 02:05:30 -05:00
parent f175a5d4aa
commit 8208d146de
5 changed files with 26 additions and 11 deletions

View file

@ -21,6 +21,7 @@ namespace scene {
float y = 0;
bool at_mid=false;
bool flipped=false;
std::shared_ptr<sf::Shader> effect = nullptr;
sf::Text text;
sf::Vector2f pos{0,0};
};
@ -46,6 +47,7 @@ namespace scene {
void move_actor(const std::string& actor, const std::string& cell_name);
void animate_actor(const std::string& actor);
void play_animations();
void apply_effect(const std::string& actor, const std::string& shader);
Element& actor_config(const std::string& actor);
};
}