The_Dark_Side_of_Earth/segment.tscn

32 lines
1.2 KiB
Text
Raw Normal View History

[gd_scene load_steps=5 format=3 uid="uid://cvoicwo2xnf7e"]
2025-09-18 00:32:37 +02:00
[ext_resource type="Script" uid="uid://b3q5khoqnnicx" path="res://segment.gd" id="1_o43lr"]
[ext_resource type="Texture2D" uid="uid://cy70quh6k3s1j" path="res://icon.svg" id="2_sa5vt"]
[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 03:09:00 +02:00
[node name="EnemyHurtbox" parent="." node_paths=PackedStringArray("canvasItem") instance=ExtResource("3_sa5vt")]
canvasItem = NodePath("..")
flashColor = Color(2.00392, 2.00392, 2.00392, 1)
[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"]