8 lines
110 B
GDScript
8 lines
110 B
GDScript
extends Node2D
|
|
|
|
var base_hp := 100.0
|
|
|
|
var damage := 0.0
|
|
|
|
func get_health() -> float:
|
|
return base_hp - damage
|