Can now pan and move the camera to focus on bosses, player, and their actions.

This commit is contained in:
Zed A. Shaw 2026-01-02 10:57:44 -05:00
parent 51bb74e2d7
commit 22db12f5e4
6 changed files with 38 additions and 28 deletions

View file

@ -66,7 +66,7 @@ namespace boss {
break;
case ATTACK:
if($battle.player_request("kill_enemy")) {
fmt::println("player requests kill_enemy {} vs. {}",
fmt::println("player requests kill_enemy {} vs. {}",
$host_combat->ap, $battle.player_pending_ap());
} else {
fmt::println("NO MORE ACTION!");

View file

@ -110,8 +110,10 @@ namespace boss {
if(amount > 0) {
$arena.attach_text(target, fmt::format("{}", amount));
$arena.apply_effect(actor, "flame");
fmt::println("CAMERA zooming by 0.7 to {}", target);
$arena.zoom(target, 0.8f);
// USING SCALE
float scale = 0.8f;
$arena.zoom(target, scale);
} else {
$arena.attach_text(actor, "MISSED");
}