🎨 Live review changes

This commit is contained in:
jonathan
2025-11-03 20:21:30 +01:00
parent 83dc6bfd56
commit 21b361f9d7
8 changed files with 8 additions and 28 deletions
+1 -20
View File
@@ -63,16 +63,6 @@ public partial class FighterVisual : Node2D
}
// Animations
//public void AttackAnimation(FightAttack attack)
//{
// EmitSignalAttacking();
// var tween = GetTree().CreateTween();
// tween.TweenProperty(this, "global_position", attack.target.GlobalPosition, 0.15);
// tween.TweenCallback(Callable.From(() => attack.target?.HitAnimation(attack)));
// tween.TweenProperty(this, "position", new Vector2(0, 0), 0.7)
// .SetTrans(Tween.TransitionType.Cubic).SetEase(Tween.EaseType.Out);
//}
public async Task AnimatePosToTarget(FighterVisual targetVisual, double duration = 0.15)
{
var tween = GetTree().CreateTween();
@@ -96,16 +86,7 @@ public partial class FighterVisual : Node2D
await ToSignal(tween, "finished");
}
//private void HitAnimation(FightAttack attack)
//{
// EmitSignalDamageTaken();
// var tween = GetTree().CreateTween();
// tween.TweenProperty(this, "scale", new Vector2(1.4f, 0.6f), 0.15);
// tween.TweenProperty(this, "scale", new Vector2(1, 1), 0.4)
// .SetTrans(Tween.TransitionType.Cubic).SetEase(Tween.EaseType.Out);
//}
//
// Keep for reference for new Heal animation
//public void HealAnimation()
//{
// EmitSignalHealed();