Post Game jam commit
This commit is contained in:
commit
6db2131520
164 changed files with 172524 additions and 0 deletions
11
scripts/health_bar.gd
Normal file
11
scripts/health_bar.gd
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
extends TextureRect
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
EventBus.health_changed.connect(_on_health_changed)
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
func _on_health_changed(new : int):
|
||||
texture.region = Rect2(0, new * 32, 0, 32)
|
||||
Loading…
Add table
Add a link
Reference in a new issue