The shader effects now work correctly on the scene actors, but the application of shaders should be on the animation class.
This commit is contained in:
parent
22db12f5e4
commit
05fc9062a7
11 changed files with 33 additions and 16 deletions
|
|
@ -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!");
|
||||
|
|
|
|||
|
|
@ -109,11 +109,12 @@ namespace boss {
|
|||
void UI::damage(const string& actor, const std::string& target, int amount) {
|
||||
if(amount > 0) {
|
||||
$arena.attach_text(target, fmt::format("{}", amount));
|
||||
$arena.apply_effect(actor, "flame");
|
||||
$arena.apply_effect(actor, "lightning");
|
||||
|
||||
// USING SCALE
|
||||
float scale = 0.8f;
|
||||
$arena.zoom(target, scale);
|
||||
std::string style = "pan";
|
||||
$arena.zoom(target, style, scale);
|
||||
} else {
|
||||
$arena.attach_text(actor, "MISSED");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue