init
This commit is contained in:
13
general/hitbox/hitbox.gd
Normal file
13
general/hitbox/hitbox.gd
Normal 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)
|
||||
1
general/hitbox/hitbox.gd.uid
Normal file
1
general/hitbox/hitbox.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://cmdjqh873unve
|
||||
9
general/hitbox/hitbox.tscn
Normal file
9
general/hitbox/hitbox.tscn
Normal 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")
|
||||
Reference in New Issue
Block a user