diff options
author | rom <romangraef@gmail.com> | 2021-04-25 23:55:11 +0200 |
---|---|---|
committer | rom <romangraef@gmail.com> | 2021-04-25 23:55:18 +0200 |
commit | 02019c028d46fd3ce98d022f72862f735ca9229c (patch) | |
tree | 22b7a97e979aad715f3a9921680d63e41c1be1a0 /components | |
parent | b43f35d2183ab5fd236ad9c04b7da0cadf55ba00 (diff) | |
download | ldjam48-02019c028d46fd3ce98d022f72862f735ca9229c.tar.gz ldjam48-02019c028d46fd3ce98d022f72862f735ca9229c.tar.bz2 ldjam48-02019c028d46fd3ce98d022f72862f735ca9229c.zip |
hearts and base lebel
Diffstat (limited to 'components')
-rw-r--r-- | components/button.gd | 2 | ||||
-rw-r--r-- | components/healthbar/healtbar.gd | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/components/button.gd b/components/button.gd index 6ed79be..45a3f4f 100644 --- a/components/button.gd +++ b/components/button.gd @@ -39,6 +39,8 @@ func _ready(): func _text(value): text = value + if label == null: + return _text_changed() func _text_changed(): diff --git a/components/healthbar/healtbar.gd b/components/healthbar/healtbar.gd index a78a81d..b2df800 100644 --- a/components/healthbar/healtbar.gd +++ b/components/healthbar/healtbar.gd @@ -1,6 +1,6 @@ extends Node2D -export var maxhealth = 3 +export var maxhealth = 10 export var offset = 40 var h: PackedScene = preload("res://components/healthbar/heart.tscn") |