[gd_scene load_steps=6 format=3 uid="uid://q3f3j7p3t43w"]

[ext_resource type="Script" uid="uid://ba287kjc4mtb2" path="res://entities/button/button.gd" id="1_7gf2j"]
[ext_resource type="SpriteFrames" uid="uid://b31mdngbhms7k" path="res://entities/button/button.aseprite" id="2_7gf2j"]
[ext_resource type="Script" uid="uid://dryjau28sybgd" path="res://common/interactable_body.gd" id="3_6bgj0"]

[sub_resource type="CircleShape2D" id="CircleShape2D_4tlb3"]
radius = 32.0

[sub_resource type="CircleShape2D" id="CircleShape2D_7gf2j"]
radius = 13.0

[node name="Button" type="Node2D"]
script = ExtResource("1_7gf2j")
metadata/_custom_type_script = "uid://csbip0oj1uu0j"

[node name="InteractionArea" type="Area2D" parent="."]
collision_layer = 16
collision_mask = 16

[node name="CollisionShape2D" type="CollisionShape2D" parent="InteractionArea"]
shape = SubResource("CircleShape2D_4tlb3")

[node name="Sprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = ExtResource("2_7gf2j")
animation = &"Press"

[node name="StaticBody2D" type="StaticBody2D" parent="."]
script = ExtResource("3_6bgj0")

[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
shape = SubResource("CircleShape2D_7gf2j")

[connection signal="body_entered" from="InteractionArea" to="." method="_on_interaction_area_body_entered"]
[connection signal="body_exited" from="InteractionArea" to="." method="_on_interaction_area_body_exited"]
