[gd_scene load_steps=24 format=2]

[ext_resource path="res://objects/coin/assets/bronze_1.png" type="Texture" id=1]
[ext_resource path="res://objects/coin/assets/bronze_2.png" type="Texture" id=2]
[ext_resource path="res://objects/coin/assets/bronze_3.png" type="Texture" id=3]
[ext_resource path="res://objects/coin/assets/bronze_4.png" type="Texture" id=4]
[ext_resource path="res://objects/coin/assets/bronze_6.png" type="Texture" id=5]
[ext_resource path="res://objects/coin/assets/bronze_5.png" type="Texture" id=6]
[ext_resource path="res://objects/coin/coin.gd" type="Script" id=7]
[ext_resource path="res://objects/coin/assets/silver_5.png" type="Texture" id=8]
[ext_resource path="res://objects/coin/assets/silver_6.png" type="Texture" id=9]
[ext_resource path="res://objects/coin/assets/silver_2.png" type="Texture" id=10]
[ext_resource path="res://objects/coin/assets/silver_4.png" type="Texture" id=11]
[ext_resource path="res://objects/coin/assets/silver_3.png" type="Texture" id=12]
[ext_resource path="res://objects/coin/assets/silver_1.png" type="Texture" id=13]
[ext_resource path="res://objects/coin/assets/gold_6.png" type="Texture" id=14]
[ext_resource path="res://objects/coin/assets/gold_5.png" type="Texture" id=15]
[ext_resource path="res://objects/coin/assets/gold_1.png" type="Texture" id=16]
[ext_resource path="res://objects/coin/assets/gold_2.png" type="Texture" id=17]
[ext_resource path="res://objects/coin/assets/gold_3.png" type="Texture" id=18]
[ext_resource path="res://objects/coin/assets/gold_4.png" type="Texture" id=19]
[ext_resource path="res://common/soundeffects/coin01.wav" type="AudioStream" id=20]

[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 16 ), ExtResource( 17 ), ExtResource( 18 ), ExtResource( 19 ), ExtResource( 15 ), ExtResource( 14 ) ],
"loop": true,
"name": "gold",
"speed": 10.0
}, {
"frames": [ ExtResource( 13 ), ExtResource( 10 ), ExtResource( 12 ), ExtResource( 11 ), ExtResource( 8 ), ExtResource( 9 ) ],
"loop": true,
"name": "silver",
"speed": 10.0
}, {
"frames": [ ExtResource( 1 ), ExtResource( 2 ), ExtResource( 3 ), ExtResource( 4 ), ExtResource( 6 ), ExtResource( 5 ) ],
"loop": true,
"name": "bronze",
"speed": 10.0
} ]

[sub_resource type="CapsuleShape2D" id=2]
radius = 36.0

[sub_resource type="CapsuleShape2D" id=3]
radius = 36.0

[node name="Coin" type="StaticBody2D"]
z_index = -10
collision_layer = 8
collision_mask = 0
script = ExtResource( 7 )

[node name="Sprite" type="AnimatedSprite" parent="."]
frames = SubResource( 1 )
animation = "bronze"
frame = 4
playing = true

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

[node name="PlayerCollision" type="Area2D" parent="."]
collision_layer = 8

[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerCollision"]
shape = SubResource( 3 )

[node name="SoundCollected" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 20 )
volume_db = -12.0

[connection signal="body_entered" from="PlayerCollision" to="." method="_on_Player_entered"]
[connection signal="finished" from="SoundCollected" to="." method="_on_SoundCollected_finished"]
