Some basic animations working but the loop in bad.

This commit is contained in:
Zed A. Shaw 2025-10-10 01:42:42 -04:00
parent c33f370572
commit 0930b05fc5
5 changed files with 40 additions and 20 deletions

View file

@ -88,9 +88,6 @@ namespace boss {
boss::System::combat(attack_id);
state(State::PLAYER_TURN);
} break;
case TICK:
$ui.play_animations();
break;
default:
break;
// skip it
@ -107,15 +104,12 @@ namespace boss {
break;
case ATTACK: {
$ui.status(L"BOSS TURN");
$ui.move_boss(run % 10 < 5 ? "boss1" : "boss3");
$ui.move_boss(run % 10 < 5 ? "boss1" : "boss2");
$ui.$boss_anim.play();
int attack_id = std::any_cast<int>(data);
boss::System::combat(attack_id);
state(State::BOSS_TURN);
} break;
case TICK:
$ui.play_animations();
break;
default:
// skip it
break;
@ -134,5 +128,6 @@ namespace boss {
void Fight::render(sf::RenderWindow& window) {
$ui.render(window);
$ui.play_animations(window);
}
}