This commit is contained in:
Andriy Yednarovych
2026-02-22 19:26:26 +01:00
parent fd1ff19c4c
commit e877c5f058
211 changed files with 9385 additions and 0 deletions

13
general/hitbox/hitbox.gd Normal file
View File

@@ -0,0 +1,13 @@
class_name Hitbox extends Area2D
signal damaged(hurtbox: Hurtbox)
func _ready() -> void:
pass # Replace with function body.
func _process(_delta: float) -> void:
pass
func take_damage(hurtbox: Hurtbox) -> void:
damaged.emit(hurtbox)

View File

@@ -0,0 +1 @@
uid://cmdjqh873unve

View File

@@ -0,0 +1,9 @@
[gd_scene format=3 uid="uid://cda6fr5vhb4ty"]
[ext_resource type="Script" uid="uid://cmdjqh873unve" path="res://general/hitbox/hitbox.gd" id="1_4tnmp"]
[node name="Hitbox" type="Area2D" unique_id=1876591880]
collision_layer = 256
collision_mask = 0
monitoring = false
script = ExtResource("1_4tnmp")