Capturing attack clicks so now just have to make my own FSM for the minigame.

This commit is contained in:
Zed A. Shaw 2025-09-27 14:10:25 -04:00
parent 231adb6335
commit fdc0bcdb3b
4 changed files with 13 additions and 7 deletions

View file

@ -53,7 +53,6 @@ namespace boss {
auto stats = $actions.entity("stats");
$actions.set<Rectangle>(stats, {});
$actions.set<Text>(stats, {L"stats"});
$actions.set<Effect>(stats, {});
$actions.init();
@ -95,4 +94,8 @@ namespace boss {
void UI::run_systems() {
// does nothing yet
}
void UI::attack(int attack_id) {
fmt::println("boss attacked with {}", attack_id);
}
}

View file

@ -34,5 +34,6 @@ namespace boss {
void position_sprite(SpriteTexture& st, const std::string& name, float scale, bool at_mid=false);
bool boss_dead();
void run_systems();
void attack(int attack_id);
};
}