Can now pan and move the camera to focus on bosses, player, and their actions.
This commit is contained in:
parent
51bb74e2d7
commit
22db12f5e4
6 changed files with 38 additions and 28 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue