Added bat enemies with stats and better touch controls
This commit is contained in:
11
ActionRPG-HeartBeast/Stats.gd
Normal file
11
ActionRPG-HeartBeast/Stats.gd
Normal file
@@ -0,0 +1,11 @@
|
||||
extends Node
|
||||
|
||||
export(int) var max_health = 1
|
||||
onready var health = max_health setget set_health
|
||||
|
||||
signal no_health
|
||||
|
||||
func set_health(value):
|
||||
health = value
|
||||
if health <= 0:
|
||||
emit_signal("no_health")
|
||||
Reference in New Issue
Block a user