[gd_scene load_steps=9 format=3 uid="uid://dodih3yvylcqm"]

[ext_resource type="Texture2D" uid="uid://cdhsjv718muas" path="res://level/oben von dem drück dings.png" id="1_0mwel"]
[ext_resource type="Script" path="res://drücker.gd" id="2_mhtkn"]
[ext_resource type="Texture2D" uid="uid://di2yxd881w6wt" path="res://sounds/hauer.png" id="3_oxgfl"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_muv5m"]
size = Vector2(72, 234.5)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_h5vut"]
size = Vector2(26, 200)

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

[sub_resource type="Animation" id="Animation_qor5c"]
resource_name = "new_animation"
length = 3.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("..:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0.1, 0.166667, 3),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector2(248, -24), Vector2(248, 128), Vector2(248, -24)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_u5le0"]
_data = {
"RESET": SubResource("Animation_l3wcw"),
"new_animation": SubResource("Animation_qor5c")
}

[node name="Drücker oben" type="Node2D"]

[node name="Area2D" type="Area2D" parent="."]
position = Vector2(240, 128)

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

[node name="ObenVonDemDrückDings" type="Sprite2D" parent="Area2D"]
texture_filter = 1
position = Vector2(0, -112)
texture = ExtResource("1_0mwel")

[node name="Drücker" type="Area2D" parent="." groups=["Gegner"]]
position = Vector2(248, 128)
script = ExtResource("2_mhtkn")

[node name="CollisionShape2D" type="CollisionShape2D" parent="Drücker"]
position = Vector2(0, -96)
shape = SubResource("RectangleShape2D_h5vut")

[node name="Timer" type="Timer" parent="Drücker"]
wait_time = 10.0
one_shot = true

[node name="AnimationPlayer" type="AnimationPlayer" parent="Drücker"]
root_node = NodePath("../Timer")
libraries = {
"": SubResource("AnimationLibrary_u5le0")
}

[node name="Hauer" type="Sprite2D" parent="Drücker"]
position = Vector2(0, -96)
texture = ExtResource("3_oxgfl")

[connection signal="area_entered" from="Area2D" to="Drücker" method="_on_area_2d_area_entered"]
[connection signal="timeout" from="Drücker/Timer" to="." method="_on_timer_timeout"]
