77 lines
2.2 KiB
Text
77 lines
2.2 KiB
Text
[gd_scene format=3 uid="uid://bikcpm0fyl4pd"]
|
|
|
|
[ext_resource type="Script" uid="uid://0n1gv56pcc74" path="res://src/player/SlashProjectile.cs" id="1_bi0sp"]
|
|
[ext_resource type="PackedScene" uid="uid://cva3ecq7vp3a4" path="res://src/combat/hitbox.tscn" id="2_bi0sp"]
|
|
|
|
[sub_resource type="Animation" id="Animation_3il12"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Hitbox/CollisionShape2D:disabled")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [true]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_eb3da"]
|
|
resource_name = "attack"
|
|
length = 0.4
|
|
step = 0.1
|
|
tracks/0/type = "method"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0.4),
|
|
"transitions": PackedFloat32Array(1),
|
|
"values": [{
|
|
"args": [],
|
|
"method": &"OnAttackFinished"
|
|
}]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("Hitbox/CollisionShape2D:disabled")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 0.1, 0.3),
|
|
"transitions": PackedFloat32Array(1, 1, 1),
|
|
"update": 1,
|
|
"values": [true, false, true]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_12t1i"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_3il12"),
|
|
&"attack": SubResource("Animation_eb3da")
|
|
}
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_qydbd"]
|
|
size = Vector2(32, 10)
|
|
|
|
[node name="SlashProjectile" type="Node2D" unique_id=541992074]
|
|
script = ExtResource("1_bi0sp")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=1896907748]
|
|
unique_name_in_owner = true
|
|
libraries/ = SubResource("AnimationLibrary_12t1i")
|
|
autoplay = &"attack"
|
|
|
|
[node name="Hitbox" parent="." unique_id=1918418417 instance=ExtResource("2_bi0sp")]
|
|
|
|
[node name="CollisionShape2D" parent="Hitbox" index="0" unique_id=2048987579]
|
|
position = Vector2(23, -7)
|
|
shape = SubResource("RectangleShape2D_qydbd")
|
|
|
|
[connection signal="body_entered" from="Hitbox" to="." method="OnHitboxBodyEntered"]
|
|
|
|
[editable path="Hitbox"]
|