36 lines
1.3 KiB
Text
36 lines
1.3 KiB
Text
|
|
[gd_scene load_steps=5 format=3 uid="uid://dn8qucrpq6k72"]
|
||
|
|
|
||
|
|
[ext_resource type="Script" uid="uid://b3q5khoqnnicx" path="res://enemies/leech/segment.gd" id="1_tokuw"]
|
||
|
|
[ext_resource type="Texture2D" uid="uid://03pv5447noi8" path="res://enemies/leech/segment_end.png" id="2_tokuw"]
|
||
|
|
[ext_resource type="PackedScene" uid="uid://mtfsdd4cdf3a" path="res://utils/enemy_hurtbox.tscn" id="3_ws4kp"]
|
||
|
|
|
||
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_fgt1l"]
|
||
|
|
|
||
|
|
[node name="Segment" type="Area2D"]
|
||
|
|
z_index = 4
|
||
|
|
collision_layer = 0
|
||
|
|
collision_mask = 4
|
||
|
|
script = ExtResource("1_tokuw")
|
||
|
|
|
||
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||
|
|
position = Vector2(-1.9073486e-06, 0)
|
||
|
|
rotation = 1.5707964
|
||
|
|
scale = Vector2(0.6233792, 0.6257627)
|
||
|
|
texture = ExtResource("2_tokuw")
|
||
|
|
|
||
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||
|
|
scale = Vector2(2, 1)
|
||
|
|
shape = SubResource("RectangleShape2D_fgt1l")
|
||
|
|
|
||
|
|
[node name="EnemyHurtbox" parent="." node_paths=PackedStringArray("canvasItem") instance=ExtResource("3_ws4kp")]
|
||
|
|
collision_layer = 16
|
||
|
|
canvasItem = NodePath("..")
|
||
|
|
flashColor = Color(2.00392, 2.00392, 2.00392, 1)
|
||
|
|
|
||
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="EnemyHurtbox"]
|
||
|
|
visible = false
|
||
|
|
scale = Vector2(2, 1)
|
||
|
|
shape = SubResource("RectangleShape2D_fgt1l")
|
||
|
|
|
||
|
|
[connection signal="damage_taken" from="EnemyHurtbox" to="." method="_on_hurtbox_damaged"]
|