netmasked/scenes/scythe_attack.tscn

99 lines
3 KiB
Text

[gd_scene load_steps=10 format=3 uid="uid://bmwgnwqj3scm5"]
[ext_resource type="Script" uid="uid://c1anp8np0aw0" path="res://scripts/scythe_attack.gd" id="1_p6kik"]
[ext_resource type="Shader" uid="uid://bwcmfh6twfdpi" path="res://shaders/fade_in.gdshader" id="2_aw0er"]
[ext_resource type="Texture2D" uid="uid://cskpxmrlwc0gg" path="res://assets/masks/lavender_scythe.png" id="3_5mjrn"]
[ext_resource type="PackedScene" uid="uid://crptu0w0l57dd" path="res://scenes/hitbox.tscn" id="4_ek4qm"]
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_2r5ap"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_5b14r"]
shader = ExtResource("2_aw0er")
shader_parameter/mask = SubResource("CompressedTexture2D_2r5ap")
shader_parameter/progress = 1.0
[sub_resource type="Animation" id="Animation_lx8lr"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0, 0)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("..:rotation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0]
}
[sub_resource type="Animation" id="Animation_0m7gt"]
resource_name = "swing"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(0, 0), Vector2(0, -30)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("..:rotation")
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.2, 0.5),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [1.5707963267948966, 1.5707963267948966, -7.853981633974483]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_8jfvf"]
_data = {
&"RESET": SubResource("Animation_lx8lr"),
&"swing": SubResource("Animation_0m7gt")
}
[node name="ScitheAttack" type="Node2D"]
script = ExtResource("1_p6kik")
[node name="Anchor" type="Node2D" parent="."]
[node name="Scithe" type="Sprite2D" parent="Anchor"]
material = SubResource("ShaderMaterial_5b14r")
scale = Vector2(0.904629, 0.904629)
texture = ExtResource("3_5mjrn")
flip_h = true
[node name="Hitbox" parent="Anchor/Scithe" instance=ExtResource("4_ek4qm")]
position = Vector2(-17.68681, -3.3162766)
rotation = 0.79253083
scale = Vector2(0.77211297, 3.2192266)
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
root_node = NodePath("../Anchor/Scithe")
libraries = {
&"": SubResource("AnimationLibrary_8jfvf")
}
autoplay = "swing"
[connection signal="animation_finished" from="AnimationPlayer" to="." method="_on_animation_player_animation_finished"]