summaryrefslogtreecommitdiff
path: root/scripts/life.gd
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-05-24 18:50:01 -0400
committerbd <bdunahu@operationnull.com>2025-05-24 18:50:01 -0400
commit2190d18d8d58f867927126829e7c0d7ef6fac372 (patch)
tree1dd88af4374a9105ef2c723c43a68a0fd67e390f /scripts/life.gd
parentc38a303aad3c3c0d8114524e664da6ad721e21c4 (diff)
Add UI panel which displays actions/upgrades
Diffstat (limited to 'scripts/life.gd')
-rw-r--r--scripts/life.gd11
1 files changed, 0 insertions, 11 deletions
diff --git a/scripts/life.gd b/scripts/life.gd
deleted file mode 100644
index b185cda..0000000
--- a/scripts/life.gd
+++ /dev/null
@@ -1,11 +0,0 @@
-extends Label
-
-func _ready():
- GameData.connect("life_changed", Callable(self, "_on_life_changed"))
- update_label(GameData.get_life())
-
-func _on_life_changed(new_life: int) -> void:
- update_label(new_life)
-
-func update_label(new_life: int) -> void:
- text = "Life:" + str(new_life)