Progress on the boss

This commit is contained in:
Paul Norberger
2020-04-20 17:52:21 +02:00
parent efacd63543
commit 75a5130121
15 changed files with 671 additions and 152 deletions

View File

@@ -7,6 +7,7 @@ export(float) var max_speed := 125.0
onready var speed := max_speed setget set_speed
signal no_health
signal health_changed
func set_health(value):
if value > max_health:
@@ -15,6 +16,8 @@ func set_health(value):
health = value
if health < 1:
emit_signal("no_health")
emit_signal("health_changed", health)
func set_speed(value):
if value > max_speed: