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

[ext_resource type="Texture2D" uid="uid://ba772auc1t65n" path="res://assets/gfx/arrow.png" id="1_bey2v"]
[ext_resource type="Script" uid="uid://dqbctups3eri6" path="res://scripts/attack_arrow.gd" id="1_if6eb"]
[ext_resource type="AudioStream" uid="uid://hmci4kgvbqib" path="res://assets/audio/sfx/weapons/bow/arrow_fire_swosh.wav" id="3_o8cb2"]
[ext_resource type="AudioStream" uid="uid://b140nlsak4ub7" path="res://assets/audio/sfx/weapons/bow/arrow-hit-brick-wall-01.mp3" id="4_8l43l"]
[ext_resource type="AudioStream" uid="uid://dc7nt8gnjt5u5" path="res://assets/audio/sfx/weapons/melee_attack_12.wav.mp3" id="4_ol4b0"]

[sub_resource type="Gradient" id="Gradient_yp18a"]
colors = PackedColorArray(0, 0, 0, 1, 0, 0, 0, 0)

[sub_resource type="GradientTexture2D" id="GradientTexture2D_gpny7"]
gradient = SubResource("Gradient_yp18a")
fill = 1
fill_from = Vector2(0.504587, 0.504587)
fill_to = Vector2(0.848624, 0.784404)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_b6ybh"]
size = Vector2(2, 6)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_wuwd8"]
size = Vector2(2, 8)

[node name="Arrow" type="CharacterBody2D" unique_id=1519950765]
z_index = 10
y_sort_enabled = true
collision_layer = 0
collision_mask = 0
motion_mode = 1
script = ExtResource("1_if6eb")

[node name="Shadow" type="Sprite2D" parent="." unique_id=1423726915]
z_index = 1
z_as_relative = false
position = Vector2(-2.98023e-08, 0)
scale = Vector2(0.09375, 0.0820313)
texture = SubResource("GradientTexture2D_gpny7")

[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1110211076]
texture = ExtResource("1_bey2v")

[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1017444254]
shape = SubResource("RectangleShape2D_b6ybh")

[node name="ArrowArea" type="Area2D" parent="." unique_id=1075536929]
collision_layer = 0
collision_mask = 75
priority = 1

[node name="CollisionShape2D" type="CollisionShape2D" parent="ArrowArea" unique_id=926133347]
physics_interpolation_mode = 1
position = Vector2(0, 1)
shape = SubResource("RectangleShape2D_wuwd8")
debug_color = Color(0.7, 0, 0.195726, 0.42)

[node name="SfxArrowFire" type="AudioStreamPlayer2D" parent="." unique_id=1413495156]
stream = ExtResource("3_o8cb2")
pitch_scale = 1.61
max_polyphony = 4

[node name="SfxImpactWall" type="AudioStreamPlayer2D" parent="." unique_id=1132726967]
stream = ExtResource("4_8l43l")
volume_db = -4.0
pitch_scale = 1.29
attenuation = 3.4822
max_polyphony = 4
panning_strength = 1.3

[node name="SfxImpactSound" type="AudioStreamPlayer2D" parent="." unique_id=463883211]
stream = ExtResource("4_ol4b0")
volume_db = -4.685
pitch_scale = 1.47
max_polyphony = 4

[connection signal="area_entered" from="ArrowArea" to="." method="_on_arrow_area_area_entered"]
[connection signal="body_entered" from="ArrowArea" to="." method="_on_arrow_area_body_entered"]
