Cleaned up the arena code more and closer to pulling it out for a scene system.

This commit is contained in:
Zed A. Shaw 2025-10-23 00:29:15 -04:00
parent 25f7096489
commit 49c9702041
4 changed files with 65 additions and 43 deletions

View file

@ -84,7 +84,7 @@ namespace boss {
break;
case ATTACK: {
$ui.status(L"PLAYER TURN");
$ui.move_actor($ui.$player_sprite, "player", run % 10 < 5 ? "player1" : "player2");
$ui.move_actor("player", run % 10 < 5 ? "player1" : "player2");
int attack_id = std::any_cast<int>(data);
boss::System::combat(attack_id);
state(State::PLAYER_TURN);
@ -105,8 +105,8 @@ namespace boss {
break;
case ATTACK: {
$ui.status(L"BOSS TURN");
$ui.$boss_pos = $ui.move_actor($ui.$boss_sprite, "boss", run % 10 < 5 ? "boss5" : "boss6");
$ui.$boss_anim.play();
$ui.move_actor("boss", run % 10 < 5 ? "boss5" : "boss6");
$ui.animate_actor("boss");
int attack_id = std::any_cast<int>(data);
boss::System::combat(attack_id);
state(State::BOSS_TURN);