Capturing attack clicks so now just have to make my own FSM for the minigame.
This commit is contained in:
parent
231adb6335
commit
fdc0bcdb3b
4 changed files with 13 additions and 7 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue