Moved godot files into a directory to keep things clean

This commit is contained in:
2025-11-05 15:35:08 +11:00
parent cb85608dfe
commit 9f48ca5ee0
28 changed files with 12 additions and 6 deletions

View File

@@ -0,0 +1,11 @@
extends Area2D
var _durability: int = 3
func _on_body_entered(body: Node2D) -> void:
if body is Character:
_durability -= 1
body.repel_collision(self)
if _durability <= 0:
Inventory.add_item(Inventory.Wood.new())
queue_free()