Now can zoom in on the player when it's their turn.
This commit is contained in:
parent
740e1052fe
commit
cb58bdd955
3 changed files with 21 additions and 2 deletions
|
|
@ -84,7 +84,9 @@ namespace boss {
|
|||
break;
|
||||
case ATTACK: {
|
||||
$ui.status(L"PLAYER TURN");
|
||||
$ui.move_actor("player", run % 10 < 5 ? "player1" : "player2");
|
||||
const std::string& player_pos = run % 10 < 5 ? "player1" : "player2";
|
||||
$ui.move_actor("player", player_pos);
|
||||
$ui.zoom(player_pos);
|
||||
int attack_id = std::any_cast<int>(data);
|
||||
boss::System::combat(attack_id);
|
||||
state(State::PLAYER_TURN);
|
||||
|
|
@ -105,7 +107,9 @@ namespace boss {
|
|||
break;
|
||||
case ATTACK: {
|
||||
$ui.status(L"BOSS TURN");
|
||||
$ui.move_actor("boss", run % 10 < 5 ? "boss5" : "boss6");
|
||||
const std::string &boss_at = run % 10 < 5 ? "boss5" : "boss6";
|
||||
$ui.move_actor("boss", boss_at);
|
||||
$ui.zoom("");
|
||||
$ui.animate_actor("boss");
|
||||
int attack_id = std::any_cast<int>(data);
|
||||
boss::System::combat(attack_id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue