2025-09-18 02:53:20 +02:00
|
|
|
[gd_scene load_steps=5 format=3 uid="uid://cvoicwo2xnf7e"]
|
2025-09-18 00:32:37 +02:00
|
|
|
|
2025-09-18 22:57:36 +02:00
|
|
|
[ext_resource type="Script" uid="uid://b3q5khoqnnicx" path="res://enemies/leech/segment.gd" id="1_o43lr"]
|
2025-09-18 00:32:37 +02:00
|
|
|
[ext_resource type="Texture2D" uid="uid://cy70quh6k3s1j" path="res://icon.svg" id="2_sa5vt"]
|
2025-09-18 02:53:20 +02:00
|
|
|
[ext_resource type="PackedScene" uid="uid://mtfsdd4cdf3a" path="res://utils/enemy_hurtbox.tscn" id="3_sa5vt"]
|
2025-09-18 00:32:37 +02:00
|
|
|
|
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_fgt1l"]
|
|
|
|
|
|
|
|
|
|
[node name="Segment" type="Area2D"]
|
|
|
|
|
collision_layer = 0
|
|
|
|
|
collision_mask = 4
|
|
|
|
|
script = ExtResource("1_o43lr")
|
|
|
|
|
|
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
|
|
|
modulate = Color(0.309804, 0.113725, 0, 1)
|
|
|
|
|
scale = Vector2(0.315, 0.16)
|
|
|
|
|
texture = ExtResource("2_sa5vt")
|
|
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
|
|
|
scale = Vector2(2, 1)
|
|
|
|
|
shape = SubResource("RectangleShape2D_fgt1l")
|
2025-09-18 02:53:20 +02:00
|
|
|
|
2025-09-18 03:09:00 +02:00
|
|
|
[node name="EnemyHurtbox" parent="." node_paths=PackedStringArray("canvasItem") instance=ExtResource("3_sa5vt")]
|
2025-09-19 14:54:13 +02:00
|
|
|
collision_layer = 16
|
2025-09-18 03:09:00 +02:00
|
|
|
canvasItem = NodePath("..")
|
|
|
|
|
flashColor = Color(2.00392, 2.00392, 2.00392, 1)
|
2025-09-18 02:53:20 +02:00
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="EnemyHurtbox"]
|
|
|
|
|
scale = Vector2(2, 1)
|
|
|
|
|
shape = SubResource("RectangleShape2D_fgt1l")
|
|
|
|
|
|
|
|
|
|
[connection signal="damage_taken" from="EnemyHurtbox" to="." method="_on_hurtbox_damaged"]
|