From 02019c028d46fd3ce98d022f72862f735ca9229c Mon Sep 17 00:00:00 2001 From: rom Date: Sun, 25 Apr 2021 23:55:11 +0200 Subject: hearts and base lebel --- components/button.gd | 2 ++ components/healthbar/healtbar.gd | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'components') 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") -- cgit