mirror of
https://github.com/creyD/ludum_dare_46.git
synced 2026-06-13 14:02:23 +02:00
Progress on the boss
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user