Heck yeah, you punch those trees, Gary!

This commit is contained in:
2025-10-31 21:10:55 +11:00
commit ee8deac651
27 changed files with 382 additions and 0 deletions

11
tree/small_tree.gd Normal file
View File

@@ -0,0 +1,11 @@
extends Area2D
var _durability: int = 3
func _on_body_entered(body: Node2D) -> void:
if body is CharacterBody2D:
_durability -= 1
body.repel_collision(self)
if _durability <= 0:
print("tree dead")
queue_free()