[gd_scene format=3 uid="uid://bbu38s3w5u3gk"]

[ext_resource type="Script" uid="uid://c1anp8np0aw0" path="res://scripts/scythe_attack.gd" id="1_vnsf0"]
[ext_resource type="Texture2D" uid="uid://cabc77u0tblxv" path="res://assets/masks/purple_attack-2.png" id="2_yhwo8"]
[ext_resource type="Texture2D" uid="uid://c4osojc1tqf77" path="res://assets/masks/purple_attack-1.png" id="3_7i1k2"]
[ext_resource type="Script" uid="uid://ejd25ul4j5pp" path="res://scripts/hitbox.gd" id="4_7i1k2"]
[ext_resource type="Texture2D" uid="uid://d1ybbm5tk1tbd" path="res://assets/vfx/particle_star.png" id="5_vnsf0"]

[sub_resource type="Animation" id="Animation_vnsf0"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [0]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".:position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(-3, -3)]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath(".:rotation")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("Hitbox:monitoring")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
tracks/4/type = "value"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("../GPUParticles2D:emitting")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
tracks/5/type = "value"
tracks/5/imported = false
tracks/5/enabled = true
tracks/5/path = NodePath(".:modulate")
tracks/5/interp = 1
tracks/5/loop_wrap = true
tracks/5/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 1)]
}

[sub_resource type="Animation" id="Animation_ev5qi"]
resource_name = "attack"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0.033333335, 0.3),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [0, 1]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".:position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.06, 0.07, 0.1, 0.12, 0.13, 0.14, 0.15, 0.16, 0.19, 0.20000002, 0.21000001, 0.22, 0.23000002, 0.24000001, 0.25, 0.26, 0.28000003, 0.29000002, 0.3, 0.31, 0.32, 0.33000004, 0.34000003, 0.35000002, 0.37, 0.43),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
"update": 0,
"values": [Vector2(-3, -3), Vector2(-3, -3), Vector2(-3, 5), Vector2(-3, 5), Vector2(7, 7), Vector2(-3, 5), Vector2(-4, -6), Vector2(-3, -3), Vector2(-3, 5), Vector2(-4, -6), Vector2(7, 7), Vector2(-3, 5), Vector2(-3, 5), Vector2(-3, -3), Vector2(-3, 5), Vector2(5, -2), Vector2(5, -2), Vector2(-4, -6), Vector2(7, 7), Vector2(-3, 5), Vector2(7, 7), Vector2(-3, 5), Vector2(-3, 5), Vector2(5, -2), Vector2(5, -2), Vector2(-4, -6), Vector2(5, -2)]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath(".:rotation")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 0.06, 0.07, 0.1, 0.12, 0.13, 0.14, 0.15, 0.16, 0.19, 0.20000002, 0.21000001, 0.22, 0.23000002, 0.24000001, 0.25, 0.26, 0.28000003, 0.29000002, 0.3, 0.31, 0.32, 0.33000004, 0.34000003, 0.35000002, 0.37, 0.43),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
"update": 0,
"values": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
}
tracks/3/type = "method"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("../..")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(1.0333333),
"transitions": PackedFloat32Array(1),
"values": [{
"args": [],
"method": &"queue_free"
}]
}
tracks/4/type = "value"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("Hitbox:monitoring")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(0, 0.36666667, 0.6333333),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 1,
"values": [false, true, false]
}
tracks/5/type = "value"
tracks/5/imported = false
tracks/5/enabled = true
tracks/5/path = NodePath("../GPUParticles2D:emitting")
tracks/5/interp = 1
tracks/5/loop_wrap = true
tracks/5/keys = {
"times": PackedFloat32Array(0.3),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}
tracks/6/type = "value"
tracks/6/imported = false
tracks/6/enabled = true
tracks/6/path = NodePath(".:modulate")
tracks/6/interp = 1
tracks/6/loop_wrap = true
tracks/6/keys = {
"times": PackedFloat32Array(0.6, 0.82),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_0qdgb"]
_data = {
&"RESET": SubResource("Animation_vnsf0"),
&"attack": SubResource("Animation_ev5qi")
}

[sub_resource type="Curve" id="Curve_vnsf0"]
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.6351352, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
point_count = 3

[sub_resource type="CurveTexture" id="CurveTexture_ev5qi"]
curve = SubResource("Curve_vnsf0")

[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_ev5qi"]
particle_flag_disable_z = true
angle_min = -720.0
angle_max = 720.0
spread = 180.0
initial_velocity_max = 186.28
gravity = Vector3(0, -98, 0)
scale_min = 2.0
scale_max = 10.0
color = Color(0.2231029, 0.2231029, 0.22310287, 1)
alpha_curve = SubResource("CurveTexture_ev5qi")

[sub_resource type="SpriteFrames" id="SpriteFrames_2rf1b"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_yhwo8")
}, {
"duration": 1.0,
"texture": ExtResource("3_7i1k2")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_vnsf0"]
size = Vector2(51.75, 16.25)

[node name="PurpleAttack" type="Node2D" unique_id=622535335]
script = ExtResource("1_vnsf0")

[node name="Node2D" type="Node2D" parent="." unique_id=1207589526]
position = Vector2(68, -52)
scale = Vector2(2, 2)

[node name="AnimationPlayer" type="AnimationPlayer" parent="Node2D" unique_id=1330172360]
root_node = NodePath("../AnimatedSprite2D")
libraries/ = SubResource("AnimationLibrary_0qdgb")
autoplay = &"attack"

[node name="GPUParticles2D" type="GPUParticles2D" parent="Node2D" unique_id=1940209552]
position = Vector2(3, 29.5)
scale = Vector2(0.5, 0.5)
emitting = false
amount = 64
texture = ExtResource("5_vnsf0")
lifetime = 0.5
one_shot = true
explosiveness = 1.0
process_material = SubResource("ParticleProcessMaterial_ev5qi")

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="Node2D" unique_id=291763539]
position = Vector2(-3, -3)
sprite_frames = SubResource("SpriteFrames_2rf1b")
flip_h = true

[node name="Hitbox" type="Area2D" parent="Node2D/AnimatedSprite2D" unique_id=88442753]
position = Vector2(3, 3)
monitoring = false
script = ExtResource("4_7i1k2")
dmg = 3
metadata/_custom_type_script = "uid://ejd25ul4j5pp"

[node name="CollisionShape2D" type="CollisionShape2D" parent="Node2D/AnimatedSprite2D/Hitbox" unique_id=1724936885]
position = Vector2(-2.625, 27.625)
shape = SubResource("RectangleShape2D_vnsf0")
