[gd_scene load_steps=5 format=2]

[ext_resource path="res://Sprites/Items/Sword.png" type="Texture" id=1]

[sub_resource type="RectangleShape2D" id=6]
extents = Vector2( 2.5, 10 )

[sub_resource type="Animation" id=7]
length = 0.001
tracks/0/type = "value"
tracks/0/path = NodePath("Animation:rotation_degrees")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ -45.0 ]
}

[sub_resource type="Animation" id=5]
resource_name = "swing"
length = 0.2
tracks/0/type = "value"
tracks/0/path = NodePath("Animation/Sword:visible")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.01, 0.2 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 1,
"values": [ false, true, false ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("Animation:rotation_degrees")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 0.2 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 1,
"values": [ -45.0, 45.0 ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("Animation:rotation_degrees")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"times": PoolRealArray( 0.01, 0.19 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ -45.0, 45.0 ]
}
tracks/3/type = "value"
tracks/3/path = NodePath("Animation/CollisionShape2D:disabled")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/keys = {
"times": PoolRealArray( 0.01, 0.2 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 1,
"values": [ false, true ]
}

[node name="Sword" type="Node2D"]
light_mask = 0

[node name="Animation" type="Area2D" parent="." groups=["player_weapon_1"]]
light_mask = 0
rotation = -0.785398
collision_layer = 0
collision_mask = 4
input_pickable = false
monitoring = false

[node name="Sword" type="Sprite" parent="Animation"]
visible = false
light_mask = 8
rotation = 0.785398
scale = Vector2( 0.7, 0.7 )
texture = ExtResource( 1 )
offset = Vector2( -16, -16 )

[node name="CollisionShape2D" type="CollisionShape2D" parent="Animation"]
visible = false
light_mask = 0
position = Vector2( 0, -14 )
shape = SubResource( 6 )
disabled = true

[node name="Sword Animation" type="AnimationPlayer" parent="."]
anims/RESET = SubResource( 7 )
anims/swing = SubResource( 5 )
