aboutsummaryrefslogtreecommitdiffstats
path: root/HealthBar.gd
diff options
context:
space:
mode:
Diffstat (limited to 'HealthBar.gd')
-rw-r--r--HealthBar.gd18
1 files changed, 18 insertions, 0 deletions
diff --git a/HealthBar.gd b/HealthBar.gd
new file mode 100644
index 0000000..ae4ce42
--- /dev/null
+++ b/HealthBar.gd
@@ -0,0 +1,18 @@
+extends ProgressBar
+
+
+# Declare member variables here. Examples:
+# var a = 2
+# var b = "text"
+
+
+# Called when the node enters the scene tree for the first time.
+func _ready():
+ pass # Replace with function body.
+
+
+# Called every frame. 'delta' is the elapsed time since the previous frame.
+#func _process(delta):
+# pass
+func _on_player_hit(delta):
+ value -= delta * 20