56 lines
1.8 KiB
Plaintext
56 lines
1.8 KiB
Plaintext
[gd_scene load_steps=6 format=3 uid="uid://cdojqe2m4kxx1"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://dycw7c3484dir" path="res://assets/sprites/sword.png" id="1_3fwwl"]
|
|
[ext_resource type="Script" uid="uid://db326gu8abue5" path="res://scenes/attacks/attack_sword.gd" id="1_frsqi"]
|
|
|
|
[sub_resource type="Curve2D" id="Curve2D_frsqi"]
|
|
bake_interval = 2.0
|
|
_data = {
|
|
"points": PackedVector2Array(0, 0, 0, 0, 0, 0, 0, 0, 25, 10, 150, 0)
|
|
}
|
|
point_count = 2
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_frsqi"]
|
|
size = Vector2(13.9997, 46.999)
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_3fwwl"]
|
|
radius = 267.002
|
|
|
|
[node name="AttackSword" type="Node2D"]
|
|
script = ExtResource("1_frsqi")
|
|
|
|
[node name="AttackPath" type="Path2D" parent="."]
|
|
curve = SubResource("Curve2D_frsqi")
|
|
|
|
[node name="PathFollow2D" type="PathFollow2D" parent="AttackPath"]
|
|
loop = false
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="AttackPath/PathFollow2D"]
|
|
position = Vector2(0.322462, -0.946582)
|
|
rotation = 0.328329
|
|
scale = Vector2(1, 1)
|
|
texture = ExtResource("1_3fwwl")
|
|
|
|
[node name="AttackArea" type="Area2D" parent="AttackPath/PathFollow2D/Sprite2D"]
|
|
collision_layer = 0
|
|
collision_mask = 2
|
|
|
|
[node name="AttackCollision" type="CollisionShape2D" parent="AttackPath/PathFollow2D/Sprite2D/AttackArea"]
|
|
position = Vector2(-0.0328934, -4.50646)
|
|
shape = SubResource("RectangleShape2D_frsqi")
|
|
|
|
[node name="TriggerArea" type="Area2D" parent="."]
|
|
visible = false
|
|
collision_layer = 0
|
|
collision_mask = 2
|
|
|
|
[node name="TriggerCollision" type="CollisionShape2D" parent="TriggerArea"]
|
|
shape = SubResource("CircleShape2D_3fwwl")
|
|
|
|
[node name="Timer" type="Timer" parent="."]
|
|
one_shot = true
|
|
autostart = true
|
|
|
|
[connection signal="body_entered" from="AttackPath/PathFollow2D/Sprite2D/AttackArea" to="." method="_on_attack_area_body_entered"]
|
|
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|