This repository has been archived on 2025-09-12. You can view files and clone it, but cannot push or open issues or pull requests.
ld48/environment/Breakable.gd
Ryan 85ecd1fec8 Created breakable bush
added variation to tree
2021-04-25 17:10:39 -04:00

9 lines
161 B
GDScript

extends StaticBody2D
var health: float = 100.0
onready var home = self.position
func take_damage(dmg: float):
health -= dmg
if health <= 0.0:
queue_free()