summaryrefslogtreecommitdiff
path: root/src/ui/hud/progress_bars/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/hud/progress_bars/scripts')
-rw-r--r--src/ui/hud/progress_bars/scripts/growth_progress.gd10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ui/hud/progress_bars/scripts/growth_progress.gd b/src/ui/hud/progress_bars/scripts/growth_progress.gd
new file mode 100644
index 0000000..a9d455c
--- /dev/null
+++ b/src/ui/hud/progress_bars/scripts/growth_progress.gd
@@ -0,0 +1,10 @@
+extends TextureProgress
+
+
+func _ready():
+ Event.connect("snake_growth_progress", self, "_on_snake_growth_progress")
+ max_value = Global.POINTS_TO_GROW
+
+
+func _on_snake_growth_progress(progress: int) -> void:
+ value = progress