[gd_scene load_steps=12 format=3 uid="uid://rp4jhx0tuh24"]

[ext_resource type="Texture2D" uid="uid://cy5usvdeabi0t" path="res://Sprites/fragola.png" id="1_5wy11"]
[ext_resource type="Script" path="res://Scenes/Fragola.cs" id="1_nyu4m"]

[sub_resource type="AtlasTexture" id="AtlasTexture_j6kkb"]
atlas = ExtResource("1_5wy11")
region = Rect2(0, 0, 16, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_ahsj2"]
atlas = ExtResource("1_5wy11")
region = Rect2(16, 0, 16, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_b3l4k"]
atlas = ExtResource("1_5wy11")
region = Rect2(32, 0, 16, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_ignt2"]
atlas = ExtResource("1_5wy11")
region = Rect2(48, 0, 16, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_aqfk6"]
atlas = ExtResource("1_5wy11")
region = Rect2(64, 0, 16, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_rbhio"]
atlas = ExtResource("1_5wy11")
region = Rect2(80, 0, 16, 16)

[sub_resource type="SpriteFrames" id="SpriteFrames_7uyln"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_j6kkb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ahsj2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_b3l4k")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ignt2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_aqfk6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_rbhio")
}],
"loop": true,
"name": &"explode",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_j6kkb")
}],
"loop": true,
"name": &"idle",
"speed": 5.0
}]

[sub_resource type="CircleShape2D" id="CircleShape2D_bbnjh"]
radius = 7.0

[sub_resource type="CircleShape2D" id="CircleShape2D_svktn"]
radius = 7.0

[node name="Fragola" type="RigidBody2D" groups=["enemies"]]
collision_layer = 4
collision_mask = 11
mass = 0.03
gravity_scale = 0.0
script = ExtResource("1_nyu4m")
metadata/_edit_group_ = true

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_7uyln")
animation = &"idle"

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_bbnjh")

[node name="Fragola" type="Node2D" parent="."]

[node name="Area2D" type="Area2D" parent="."]

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

[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="area_entered" from="Area2D" to="." method="_on_area_2d_area_entered"]
