35 lines
1.3 KiB
Text
35 lines
1.3 KiB
Text
[gd_scene load_steps=5 format=3 uid="uid://cvoicwo2xnf7e"]
|
|
|
|
[ext_resource type="Script" uid="uid://b3q5khoqnnicx" path="res://enemies/leech/segment.gd" id="1_o43lr"]
|
|
[ext_resource type="Texture2D" uid="uid://bx4w0yifutm7y" path="res://enemies/leech/segment.png" id="2_jsq5k"]
|
|
[ext_resource type="PackedScene" uid="uid://mtfsdd4cdf3a" path="res://utils/enemy_hurtbox.tscn" id="3_sa5vt"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_fgt1l"]
|
|
|
|
[node name="Segment" type="Area2D"]
|
|
z_index = 4
|
|
collision_layer = 0
|
|
collision_mask = 4
|
|
script = ExtResource("1_o43lr")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
position = Vector2(-1.9073486e-06, 0)
|
|
rotation = 1.5707964
|
|
scale = Vector2(0.6233792, 0.6257627)
|
|
texture = ExtResource("2_jsq5k")
|
|
|
|
[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_sa5vt")]
|
|
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"]
|