ld39-dead_in_the_water/game/health_bar.gd

20 lines
455 B
GDScript3
Raw Permalink Normal View History

2017-07-31 00:17:24 +00:00
extends Node2D
# class member variables go here, for example:
# var a = 2
# var b = "textvar"
func _ready():
# Called every time the node is added to the scene.
# Initialization here
pass
func _on_area_base_game_area_health_changed(old, new, max_health):
get_node('Label').set_text('%d / %d' %[new, max_health])
func _on_reactor_game_area_health_changed(old, new, max_health):
self._on_area_base_game_area_health_changed(old, new, max_health)