[gd_scene load_steps=4 format=3 uid="uid://cufm4g76fik7t"]

[ext_resource type="PackedScene" uid="uid://dc8odchuhx80d" path="res://Objects/AnimTrigger/anim_trigger.tscn" id="1_cq28h"]
[ext_resource type="Script" path="res://Objects/GroundSmasher/DualSmasher.gd" id="1_px0wu"]
[ext_resource type="Texture2D" uid="uid://cnkms0met64fy" path="res://Objects/GroundSmasher/Smasher.png" id="2_6f7iw"]

[node name="Smasher" type="Node2D"]
z_index = -1
script = ExtResource("1_px0wu")

[node name="AnimTrigger" parent="." instance=ExtResource("1_cq28h")]
scale = Vector2(1.6, 4)
collision_layer = 0
collision_mask = 2
script = null

[node name="SmasherBody" type="AnimatableBody2D" parent="."]
position = Vector2(0, -100)

[node name="Sprite2D" type="Sprite2D" parent="SmasherBody"]
position = Vector2(0, -37)
texture = ExtResource("2_6f7iw")
offset = Vector2(0, 40)

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="SmasherBody"]
position = Vector2(0, -8)
polygon = PackedVector2Array(-16, -52, -16, 68, -13, 74, 0, 74, 13, 74, 16, 68, 16, -52)

[node name="SmasherBody2" type="AnimatableBody2D" parent="."]
position = Vector2(0, 100)
rotation = 3.14159

[node name="Sprite2D" type="Sprite2D" parent="SmasherBody2"]
position = Vector2(0, -37)
texture = ExtResource("2_6f7iw")
offset = Vector2(0, 40)

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="SmasherBody2"]
position = Vector2(0, -8)
polygon = PackedVector2Array(-16, -52, -16, 68, -13, 74, 0, 74, 13, 74, 16, 68, 16, -52)

[connection signal="body_shape_entered" from="AnimTrigger" to="." method="_on_anim_trigger_body_shape_entered"]
