[gd_scene format=3 uid="uid://gobgnd2pf6bp"]

[ext_resource type="Script" uid="uid://dwymos3js0jm7" path="res://apples.gd" id="1_y85m7"]
[ext_resource type="Texture2D" uid="uid://cx5cmfqledj8v" path="res://assets/images/Collectibles/Apple.png" id="1_yv0ho"]
[ext_resource type="Texture2D" uid="uid://du262n0bexm53" path="res://assets/images/Collectibles/Collected.png" id="2_m3d1t"]
[ext_resource type="AudioStream" uid="uid://d3qa5mqjtjvpg" path="res://assets/sounds/collect_apple.wav" id="4_m3d1t"]

[sub_resource type="AtlasTexture" id="AtlasTexture_5b3pe"]
atlas = ExtResource("2_m3d1t")
region = Rect2(0, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_duca7"]
atlas = ExtResource("2_m3d1t")
region = Rect2(32, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_60q4a"]
atlas = ExtResource("2_m3d1t")
region = Rect2(64, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_oam1c"]
atlas = ExtResource("2_m3d1t")
region = Rect2(96, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_k7f4s"]
atlas = ExtResource("2_m3d1t")
region = Rect2(128, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_1iswn"]
atlas = ExtResource("2_m3d1t")
region = Rect2(160, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_bc4kw"]
atlas = ExtResource("1_yv0ho")
region = Rect2(0, 0, 32, 23)

[sub_resource type="AtlasTexture" id="AtlasTexture_y85m7"]
atlas = ExtResource("1_yv0ho")
region = Rect2(32, 0, 32, 23)

[sub_resource type="AtlasTexture" id="AtlasTexture_m3d1t"]
atlas = ExtResource("1_yv0ho")
region = Rect2(64, 0, 32, 23)

[sub_resource type="AtlasTexture" id="AtlasTexture_rls6e"]
atlas = ExtResource("1_yv0ho")
region = Rect2(96, 0, 32, 23)

[sub_resource type="AtlasTexture" id="AtlasTexture_yhg1g"]
atlas = ExtResource("1_yv0ho")
region = Rect2(128, 0, 32, 23)

[sub_resource type="AtlasTexture" id="AtlasTexture_nrorl"]
atlas = ExtResource("1_yv0ho")
region = Rect2(160, 0, 32, 23)

[sub_resource type="AtlasTexture" id="AtlasTexture_wcupg"]
atlas = ExtResource("1_yv0ho")
region = Rect2(192, 0, 32, 23)

[sub_resource type="AtlasTexture" id="AtlasTexture_nob0y"]
atlas = ExtResource("1_yv0ho")
region = Rect2(224, 0, 32, 23)

[sub_resource type="AtlasTexture" id="AtlasTexture_wk5j3"]
atlas = ExtResource("1_yv0ho")
region = Rect2(256, 0, 32, 23)

[sub_resource type="AtlasTexture" id="AtlasTexture_w5e5q"]
atlas = ExtResource("1_yv0ho")
region = Rect2(288, 0, 32, 23)

[sub_resource type="AtlasTexture" id="AtlasTexture_5hkel"]
atlas = ExtResource("1_yv0ho")
region = Rect2(320, 0, 32, 23)

[sub_resource type="AtlasTexture" id="AtlasTexture_nptbl"]
atlas = ExtResource("1_yv0ho")
region = Rect2(352, 0, 32, 23)

[sub_resource type="AtlasTexture" id="AtlasTexture_4ijtc"]
atlas = ExtResource("1_yv0ho")
region = Rect2(384, 0, 32, 23)

[sub_resource type="AtlasTexture" id="AtlasTexture_sy44s"]
atlas = ExtResource("1_yv0ho")
region = Rect2(416, 0, 32, 23)

[sub_resource type="AtlasTexture" id="AtlasTexture_3yyai"]
atlas = ExtResource("1_yv0ho")
region = Rect2(448, 0, 32, 23)

[sub_resource type="AtlasTexture" id="AtlasTexture_6m6yl"]
atlas = ExtResource("1_yv0ho")
region = Rect2(480, 0, 32, 23)

[sub_resource type="AtlasTexture" id="AtlasTexture_n6xrq"]
atlas = ExtResource("1_yv0ho")
region = Rect2(512, 0, 32, 23)

[sub_resource type="SpriteFrames" id="SpriteFrames_5b3pe"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_5b3pe")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_duca7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_60q4a")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_oam1c")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_k7f4s")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1iswn")
}],
"loop": true,
"name": &"collected",
"speed": 20.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_bc4kw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_y85m7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_m3d1t")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_rls6e")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_yhg1g")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_nrorl")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wcupg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_nob0y")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wk5j3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_w5e5q")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5hkel")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_nptbl")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_4ijtc")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_sy44s")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3yyai")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6m6yl")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_n6xrq")
}],
"loop": true,
"name": &"idle",
"speed": 20.0
}]

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

[node name="Apples" type="Area2D" unique_id=1286053364]
texture_filter = 1
script = ExtResource("1_y85m7")

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=469485744]
sprite_frames = SubResource("SpriteFrames_5b3pe")
animation = &"collected"
autoplay = "idle"

[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1641849669]
position = Vector2(0, 3)
shape = SubResource("CircleShape2D_yv0ho")

[node name="CollectionSound" type="AudioStreamPlayer2D" parent="." unique_id=196521569]
stream = ExtResource("4_m3d1t")

[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="animation_looped" from="AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_looped"]
