[gd_scene load_steps=7 format=3 uid="uid://c8gsyyeu7nud6"]

[ext_resource type="Texture2D" uid="uid://bjaikhpgqn6e3" path="res://Assets/textures/other/Saw.png" id="1_dgldl"]
[ext_resource type="Script" path="res://Scripts/Trap.gd" id="1_p0gi8"]

[sub_resource type="CircleShape2D" id="CircleShape2D_6fohr"]
radius = 16.09

[sub_resource type="Animation" id="Animation_nspqf"]
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]
}

[sub_resource type="Animation" id="Animation_17333"]
resource_name = "move_spin"
length = 0.8
loop_mode = 1
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, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1),
"update": 1,
"values": [0, 1, 2, 3, 4, 5, 6, 7]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_7vhf2"]
_data = {
"RESET": SubResource("Animation_nspqf"),
"move_spin": SubResource("Animation_17333")
}

[node name="Saw" type="Node2D" groups=["traps"]]
script = ExtResource("1_p0gi8")

[node name="Area2D" type="Area2D" parent="."]
collision_layer = 8
collision_mask = 2

[node name="Sprite2D" type="Sprite2D" parent="Area2D"]
texture = ExtResource("1_dgldl")
hframes = 8

[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("CircleShape2D_6fohr")

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
root_node = NodePath("../Area2D/Sprite2D")
libraries = {
"": SubResource("AnimationLibrary_7vhf2")
}
autoplay = "move_spin"

[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]
