LD56 is over. This is the game.
This commit is contained in:
9
entities/buildings/building.gd
Normal file
9
entities/buildings/building.gd
Normal file
@@ -0,0 +1,9 @@
|
||||
class_name Building extends StaticBody3D
|
||||
|
||||
@export var max_health := 10
|
||||
@onready var health := max_health
|
||||
|
||||
func hit(damage:int) -> void:
|
||||
health -= damage
|
||||
if health < 0:
|
||||
queue_free()
|
||||
Reference in New Issue
Block a user