giants-godot/characters/basecharacter.gd
2021-09-08 18:36:41 +02:00

13 lines
193 B
GDScript

class Player:
export var health = 100
export var speed = 10
export var UI: NodePath
func take_damage(damage: float):
health -= damage
if health <= 0:
die()
func die():
pass