shield sprite

This commit is contained in:
2025-10-05 14:51:05 +02:00
parent feaf2b7289
commit 91a1936475
9 changed files with 141 additions and 1 deletions

View File

@@ -114,6 +114,7 @@ func take_hit(_damage, knockback_vector, knockback_strength = 1):
move_state = MoveState.Knockback;
velocity = knockback_vector;
knockback_timer.start(0.2 * knockback_strength);
$Shield.visible = false;
else:
reboot();
@@ -124,4 +125,5 @@ func reboot():
velocity = Vector2.ZERO;
move_state = MoveState.Still;
shield_active = true;
$Shield.visible = true;
# hand.discard_all();