Now have a simple camera system that I can configure in json for different motion effects.

This commit is contained in:
Zed A. Shaw 2025-11-03 00:25:48 -05:00
parent 8345097e10
commit 5b57fb2033
11 changed files with 173 additions and 128 deletions

View file

@ -87,7 +87,7 @@ namespace boss {
const std::string& player_pos = run % 10 < 5 ? "player1" : "player2";
$ui.move_actor("player", player_pos);
$ui.zoom(player_pos);
$ui.$zoom_anim.play();
$ui.$camera.play();
int attack_id = std::any_cast<int>(data);
boss::System::combat(attack_id);
state(State::PLAYER_TURN);