added project with nerabochie cows

This commit is contained in:
arrrtemida
2025-08-22 17:16:22 +05:00
commit 0d3f195aff
147 changed files with 5060 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
class_name HurtComponent
extends Area2D
@export var tool : DataTypes.Tools = DataTypes.Tools.None
signal hurt
func _on_area_entered(area: Area2D) -> void:
var hit_component = area as HitComponent
if tool == hit_component.current_tool:
hurt.emit(hit_component.hit_damage)