The shader effects now work correctly on the scene actors, but the application of shaders should be on the animation class.

This commit is contained in:
Zed A. Shaw 2026-01-02 23:23:05 -05:00
parent 22db12f5e4
commit 05fc9062a7
11 changed files with 33 additions and 16 deletions

View file

@ -109,11 +109,12 @@ namespace boss {
void UI::damage(const string& actor, const std::string& target, int amount) {
if(amount > 0) {
$arena.attach_text(target, fmt::format("{}", amount));
$arena.apply_effect(actor, "flame");
$arena.apply_effect(actor, "lightning");
// USING SCALE
float scale = 0.8f;
$arena.zoom(target, scale);
std::string style = "pan";
$arena.zoom(target, style, scale);
} else {
$arena.attach_text(actor, "MISSED");
}