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

[ext_resource type="Script" uid="uid://bn5vp502u6pf5" path="res://scripts/staff_projectile.gd" id="1_projectile"]
[ext_resource type="Shader" uid="uid://ldl7vaq5n13f" path="res://shaders/cloth.gdshader" id="2_84jgf"]
[ext_resource type="Texture2D" uid="uid://2dya7wnmph5m" path="res://assets/gfx/morph_ball.png" id="2_rkc3p"]
[ext_resource type="AudioStream" uid="uid://bvefpp6la7ehx" path="res://assets/audio/sfx/weapons/schioow.mp3" id="3_84jgf"]
[ext_resource type="AudioStream" uid="uid://d3vo82fiyo076" path="res://assets/audio/sfx/weapons/magic_impact.mp3" id="4_rkc3p"]

[sub_resource type="ShaderMaterial" id="ShaderMaterial_qorvo"]
shader = ExtResource("2_84jgf")
shader_parameter/original_0 = Color(0, 0, 0, 1)
shader_parameter/original_1 = Color(0, 0, 0, 1)
shader_parameter/original_2 = Color(0, 0, 0, 1)
shader_parameter/original_3 = Color(0, 0, 0, 1)
shader_parameter/original_4 = Color(0, 0, 0, 1)
shader_parameter/original_5 = Color(0, 0, 0, 1)
shader_parameter/original_6 = Color(0, 0, 0, 1)
shader_parameter/replace_0 = Color(0, 0, 0, 1)
shader_parameter/replace_1 = Color(0, 0, 0, 1)
shader_parameter/replace_2 = Color(0, 0, 0, 1)
shader_parameter/replace_3 = Color(0, 0, 0, 1)
shader_parameter/replace_4 = Color(0, 0, 0, 1)
shader_parameter/replace_5 = Color(0, 0, 0, 1)
shader_parameter/replace_6 = Color(0, 0, 0, 1)
shader_parameter/tint = Color(1, 1, 1, 1)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_projectile"]
size = Vector2(10, 12)

[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_qorvo"]
random_pitch = 1.0960649
streams_count = 1
stream_0/stream = ExtResource("3_84jgf")

[sub_resource type="Animation" id="Animation_84jgf"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [6]
}

[sub_resource type="Animation" id="Animation_qorvo"]
resource_name = "flying"
length = 0.4
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 1,
"values": [6, 8, 7, 8]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_2q84p"]
_data = {
&"RESET": SubResource("Animation_84jgf"),
&"flying": SubResource("Animation_qorvo")
}

[node name="StaffProjectile" type="Node2D" unique_id=357652786]
y_sort_enabled = true
script = ExtResource("1_projectile")

[node name="Sprite2D" type="Sprite2D" parent="." unique_id=993464286]
material = SubResource("ShaderMaterial_qorvo")
scale = Vector2(0.75, 0.75)
texture = ExtResource("2_rkc3p")
hframes = 6
vframes = 6
frame = 6

[node name="Area2D" type="Area2D" parent="." unique_id=556563629]
collision_layer = 4
collision_mask = 3

[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D" unique_id=520125160]
position = Vector2(-0.25, 0)
shape = SubResource("RectangleShape2D_projectile")
debug_color = Color(0.70196074, 0, 0.09064378, 0.41960785)

[node name="SfxSwosh" type="AudioStreamPlayer2D" parent="." unique_id=1006342490]
stream = SubResource("AudioStreamRandomizer_qorvo")
pitch_scale = 0.95
max_distance = 983.0
attenuation = 7.999991
panning_strength = 1.1
bus = &"Sfx"

[node name="SfxImpact" type="AudioStreamPlayer2D" parent="." unique_id=1627987810]
stream = ExtResource("4_rkc3p")
volume_db = -0.282
pitch_scale = 0.78
max_distance = 983.0
attenuation = 7.999991
max_polyphony = 4
panning_strength = 1.16
bus = &"Sfx"

[node name="SfxImpactWall" type="AudioStreamPlayer2D" parent="." unique_id=77775230]
stream = ExtResource("4_rkc3p")
volume_db = -4.0
pitch_scale = 1.3
max_distance = 951.0
attenuation = 8.282115
max_polyphony = 4
panning_strength = 1.15
bus = &"Sfx"

[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=241170994]
libraries/ = SubResource("AnimationLibrary_2q84p")
autoplay = &"flying"
