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

[ext_resource type="Script" uid="uid://bqrtsr3mjvv3j" path="res://scripts/attack_axe_swing.gd" id="1_xo3v0"]
[ext_resource type="Texture2D" uid="uid://dkpritx47nd4m" path="res://assets/gfx/pickups/items_n_shit.png" id="2_hb10f"]
[ext_resource type="AudioStream" uid="uid://4vulahdsj4i2" path="res://assets/audio/sfx/swoosh/throw_01.wav.mp3" id="3_v2p0x"]
[ext_resource type="AudioStream" uid="uid://uerx5rib87a6" path="res://assets/audio/sfx/weapons/bone_hit_wall_01.wav.mp3" id="4_ul7bj"]
[ext_resource type="AudioStream" uid="uid://dc7nt8gnjt5u5" path="res://assets/audio/sfx/weapons/melee_attack_12.wav.mp3" id="5_whqew"]

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

[sub_resource type="Animation" id="Animation_p46b1"]
resource_name = "slash_anim"
length = 0.8
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.533333, 0.733333),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_hj6i2"]
_data = {
&"RESET": SubResource("Animation_6bxep"),
&"slash_anim": SubResource("Animation_p46b1")
}

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

[node name="AxeSwing" type="Node2D" unique_id=1568208090]
z_index = 10
y_sort_enabled = true
script = ExtResource("1_xo3v0")

[node name="Sprite2D" type="Sprite2D" parent="." unique_id=461038063]
texture = ExtResource("2_hb10f")
hframes = 20
vframes = 14
frame = 111

[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=691292922]
libraries/ = SubResource("AnimationLibrary_hj6i2")

[node name="AttackSwosh" type="AudioStreamPlayer2D" parent="." unique_id=515041905]
stream = ExtResource("3_v2p0x")
pitch_scale = 0.74
autoplay = true

[node name="DamageArea" type="Area2D" parent="." unique_id=985585639]
collision_layer = 0
collision_mask = 75

[node name="CollisionShape2D" type="CollisionShape2D" parent="DamageArea" unique_id=805714782]
shape = SubResource("RectangleShape2D_3jdng")
debug_color = Color(0.7, 0, 0.18232, 0.42)

[node name="MeleeImpactWall" type="AudioStreamPlayer2D" parent="." unique_id=1016195072]
stream = ExtResource("4_ul7bj")
volume_db = -4.0
pitch_scale = 1.3
max_polyphony = 4

[node name="MeleeImpact" type="AudioStreamPlayer2D" parent="." unique_id=1548143473]
stream = ExtResource("5_whqew")
volume_db = -5.622
pitch_scale = 1.43
max_polyphony = 4

[connection signal="area_entered" from="DamageArea" to="." method="_on_damage_area_area_entered"]
[connection signal="body_entered" from="DamageArea" to="." method="_on_damage_area_body_entered"]
