[gd_scene load_steps=13 format=2]

[ext_resource path="res://Rooms/BedRoom3/gramophone.png" type="Texture" id=1]
[ext_resource path="res://Rooms/BedRoom3/winder.png" type="Texture" id=2]
[ext_resource path="res://Helpers/CanQuit.tscn" type="PackedScene" id=3]
[ext_resource path="res://Rooms/BedRoom3/Gramophone.gd" type="Script" id=4]
[ext_resource path="res://Rooms/Outdoors2/note.png" type="Texture" id=5]
[ext_resource path="res://Rooms/BedRoom3/Note.gd" type="Script" id=6]

[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 3, 4 )

[sub_resource type="Animation" id=2]
resource_name = "Idle"
length = 0.1
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ 0 ]
}

[sub_resource type="Animation" id=3]
resource_name = "Wind"
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ),
"update": 1,
"values": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ]
}

[sub_resource type="RectangleShape2D" id=4]
extents = Vector2( 3, 2 )

[sub_resource type="Animation" id=5]
resource_name = "Fly"
length = 1.6
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.3, 0.6, 0.8, 1.2, 1.4, 1.6 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1 ),
"update": 0,
"values": [ Vector2( 8, 9 ), Vector2( 21, 16 ), Vector2( 28, 12 ), Vector2( 27, 9 ), Vector2( 7, 18 ), Vector2( 5, 15 ), Vector2( 8, 9 ) ]
}

[sub_resource type="Animation" id=6]
length = 0.5
tracks/0/type = "value"
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.2, 0.3, 0.4 ),
"transitions": PoolRealArray( 1, 1, 1, 1 ),
"update": 0,
"values": [ Vector2( 14, 4 ), Vector2( 8, 3 ), Vector2( 6, 6 ), Vector2( 8, 9 ) ]
}

[node name="Gramophone" type="Node2D"]
script = ExtResource( 4 )

[node name="CanQuit" parent="." instance=ExtResource( 3 )]

[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 1 )
centered = false
hframes = 2

[node name="Winder" type="Area2D" parent="."]
position = Vector2( 27, 20 )

[node name="CollisionShape2D" type="CollisionShape2D" parent="Winder"]
shape = SubResource( 1 )

[node name="Sprite" type="Sprite" parent="Winder"]
texture = ExtResource( 2 )
hframes = 10

[node name="AnimationPlayer" type="AnimationPlayer" parent="Winder"]
autoplay = "Idle"
anims/Idle = SubResource( 2 )
anims/Wind = SubResource( 3 )

[node name="Note" type="Area2D" parent="."]
visible = false
position = Vector2( 8, 9 )
script = ExtResource( 6 )

[node name="CollisionShape2D" type="CollisionShape2D" parent="Note"]
shape = SubResource( 4 )

[node name="Sprite" type="Sprite" parent="Note"]
texture = ExtResource( 5 )

[node name="AnimationPlayer" type="AnimationPlayer" parent="Note"]
anims/Fly = SubResource( 5 )
anims/Start = SubResource( 6 )

[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
[connection signal="input_event" from="Winder" to="." method="_on_Winder_input_event"]
[connection signal="input_event" from="Note" to="." method="_on_Note_input_event"]
