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

[ext_resource type="Script" path="res://Scripts/Trap.gd" id="1_mkuig"]
[ext_resource type="Texture2D" uid="uid://cmtjkdyl36uyk" path="res://Assets/textures/other/Spiked Ball.png" id="1_udsb0"]

[sub_resource type="CircleShape2D" id="CircleShape2D_4evgo"]
radius = 11.07

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

[sub_resource type="Animation" id="Animation_cwy1o"]
resource_name = "move"
length = 2.0
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Area2D:position")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 1),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(0, 0), Vector2(100, 0)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_0njx3"]
_data = {
"RESET": SubResource("Animation_nmqn4"),
"move": SubResource("Animation_cwy1o")
}

[node name="SpikeBalls" type="Node2D" groups=["traps"]]
script = ExtResource("1_mkuig")

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

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

[node name="Sprite2D" type="Sprite2D" parent="Area2D"]
texture = ExtResource("1_udsb0")

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_0njx3")
}
autoplay = "move"
speed_scale = 0.5

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