Files
GameJam2023/Enemies/HealthPoints.cs
GameJammer 54b044142d fun stuff
2023-09-14 14:17:27 -07:00

21 lines
328 B
C#

using Godot;
public partial class HealthPoints : Node
{
[Export]
public long MaximumHP { get; protected set; }
public long CurrentHP { get; set; }
public override void _Ready()
{
CurrentHP = MaximumHP;
}
public void TakeDamage(long damage)
{
CurrentHP -= damage;
GD.Print(CurrentHP);
}
}