netmasked/scenes/scythe_attack.tscn

144 lines
4.6 KiB
Text

[gd_scene 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"]
[ext_resource type="Script" uid="uid://bxqbkdomwqbtc" path="res://scripts/trail.gd" id="5_aw0er"]
[sub_resource type="FastNoiseLite" id="FastNoiseLite_aw0er"]
noise_type = 5
frequency = 0.0087
fractal_type = 0
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_5mjrn"]
noise = SubResource("FastNoiseLite_aw0er")
[sub_resource type="ShaderMaterial" id="ShaderMaterial_5b14r"]
shader = ExtResource("2_aw0er")
shader_parameter/noise_texture = SubResource("NoiseTexture2D_5mjrn")
shader_parameter/progress = 0.0
shader_parameter/edge_softness = 0.0
[sub_resource type="Curve" id="Curve_aw0er"]
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0]
point_count = 2
[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]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath(".:material:shader_parameter/progress")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0]
}
[sub_resource type="Animation" id="Animation_0m7gt"]
resource_name = "swing"
length = 0.53333336
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]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath(".:material:shader_parameter/progress")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [0.0, 1.0]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_8jfvf"]
_data = {
&"RESET": SubResource("Animation_lx8lr"),
&"swing": SubResource("Animation_0m7gt")
}
[node name="ScitheAttack" type="Node2D" unique_id=622535335]
script = ExtResource("1_p6kik")
[node name="Anchor" type="Node2D" parent="." unique_id=330712092]
[node name="Scithe" type="Sprite2D" parent="Anchor" unique_id=1611161092]
material = SubResource("ShaderMaterial_5b14r")
scale = Vector2(0.904629, 0.904629)
texture = ExtResource("3_5mjrn")
flip_h = true
[node name="Hitbox" parent="Anchor/Scithe" unique_id=2078242519 instance=ExtResource("4_ek4qm")]
position = Vector2(-17.68681, -3.3162766)
rotation = 0.79253083
scale = Vector2(0.77211297, 3.2192266)
[node name="Trail" type="Line2D" parent="Anchor/Scithe" unique_id=462665408]
show_behind_parent = true
position = Vector2(28.741066, -14.370532)
rotation = 1.5707961
scale = Vector2(1.1054256, 1.1054256)
points = PackedVector2Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
width = 16.285
width_curve = SubResource("Curve_aw0er")
script = ExtResource("5_aw0er")
metadata/_custom_type_script = "uid://bxqbkdomwqbtc"
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=824911322]
root_node = NodePath("../Anchor/Scithe")
libraries/ = SubResource("AnimationLibrary_8jfvf")
autoplay = &"swing"
[connection signal="animation_finished" from="AnimationPlayer" to="." method="_on_animation_player_animation_finished"]