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

[ext_resource type="Script" uid="uid://dmyoo12ntx27" path="res://collectables/crystal/collect_crystal.gd" id="1_ttvq1"]
[ext_resource type="Texture2D" uid="uid://igfk66vn3kwf" path="res://collectables/crystal/sprites/Crystal_0001.png" id="2_s8vun"]
[ext_resource type="Texture2D" uid="uid://bw0jnkq6ypol7" path="res://collectables/crystal/sprites/Crystal_0002.png" id="3_1n2qm"]
[ext_resource type="Texture2D" uid="uid://7xtq4worgob7" path="res://collectables/crystal/sprites/Crystal_0003.png" id="4_m1y8f"]
[ext_resource type="Texture2D" uid="uid://d1rloqj508hvg" path="res://collectables/crystal/sprites/Crystal_0004.png" id="5_dnjya"]

[sub_resource type="SpriteFrames" id="SpriteFrames_4nrqi"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_s8vun")
}, {
"duration": 1.0,
"texture": ExtResource("3_1n2qm")
}, {
"duration": 1.0,
"texture": ExtResource("4_m1y8f")
}, {
"duration": 1.0,
"texture": ExtResource("5_dnjya")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

[sub_resource type="CircleShape2D" id="CircleShape2D_lmbvg"]
radius = 17.0

[sub_resource type="CircleShape2D" id="CircleShape2D_m1y8f"]
radius = 114.07

[node name="crystal" type="Area2D"]
collision_layer = 3
collision_mask = 3
script = ExtResource("1_ttvq1")

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(3, -2)
scale = Vector2(0.136872, 0.136872)
sprite_frames = SubResource("SpriteFrames_4nrqi")
autoplay = "default"

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, -1)
shape = SubResource("CircleShape2D_lmbvg")

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

[node name="CollisionShape2D" type="CollisionShape2D" parent="mouseCollision"]
shape = SubResource("CircleShape2D_m1y8f")
debug_color = Color(0.99368, 0, 0.23394, 0.42)

[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="input_event" from="mouseCollision" to="." method="_on_mouse_collision_input_event"]
