diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2022-06-05 14:09:41 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2022-06-05 14:09:41 -0600 |
commit | 14538d486de312af41ce012836861468b8fb7897 (patch) | |
tree | 569d09c43fd7724a5fbb0898f5c1d1db3fd64b3d /src/ui/hud/progress_bars/scripts/dash_progress.gd | |
parent | 4b42a8ba26f21e2c6c766fa747c8b93a115a53b2 (diff) |
finish all necessary for playability
Diffstat (limited to 'src/ui/hud/progress_bars/scripts/dash_progress.gd')
-rw-r--r-- | src/ui/hud/progress_bars/scripts/dash_progress.gd | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ui/hud/progress_bars/scripts/dash_progress.gd b/src/ui/hud/progress_bars/scripts/dash_progress.gd new file mode 100644 index 0000000..32fb91a --- /dev/null +++ b/src/ui/hud/progress_bars/scripts/dash_progress.gd @@ -0,0 +1,12 @@ +extends HBoxContainer + +onready var progress: TextureProgress = $Progress + + +func _ready(): + Event.connect("snake_dash_progress", self, "_on_snake_dash_progress") + progress.max_value = Global.POINTS_TO_DASH + + +func _on_snake_dash_progress(_progress: int) -> void: + progress.value = _progress |