First builds and stuff done yipewaho

This commit is contained in:
2026-02-01 05:32:22 +02:00
parent 12c1360ae7
commit d910018b7b
62 changed files with 1886 additions and 37 deletions
+9 -2
View File
@@ -11,15 +11,20 @@ public partial class Health : Node
[Signal]
public delegate void DeathEventHandler(Node2D node);
[Signal]
public delegate void DamagedEventHandler();
public override void _EnterTree()
{
CurHP = MaxHP = _baseMaxHp * Mathf.Pow(GameController.Instance.Wave, 1.067f);
// CurHP = MaxHP = _baseMaxHp * Mathf.Pow(GameController.Instance.Wave, 1.067f);
Reset();
}
public void Substract(float v)
{
v = Mathf.Abs(v);
CurHP -= v;
EmitSignalDamaged();
if (CurHP <= 0)
{
EmitSignalDeath(_parent);
@@ -34,6 +39,8 @@ public partial class Health : Node
public void Reset()
{
CurHP = MaxHP = _baseMaxHp * Mathf.Pow(GameController.Instance.Wave, 1.067f);
CurHP = MaxHP = _baseMaxHp * Mathf.Pow(1.075f, GameController.Instance.Wave);
GD.Print("Curhp");
GD.Print(CurHP);
}
}