[gd_scene load_steps=10 format=2]

[ext_resource path="res://Rooms/BedRoom/BedRoom.tscn" type="PackedScene" id=1]
[ext_resource path="res://Other/Cursor.png" type="Texture" id=2]
[ext_resource path="res://Player/Player.tscn" type="PackedScene" id=3]
[ext_resource path="res://Other/Cursor.gd" type="Script" id=4]
[ext_resource path="res://Inventory/Inventory.tscn" type="PackedScene" id=5]
[ext_resource path="res://Other/Logo.tscn" type="PackedScene" id=6]
[ext_resource path="res://Music/main.ogg" type="AudioStream" id=7]

[sub_resource type="Animation" id=1]
resource_name = "Hide"
length = 0.5
tracks/0/type = "value"
tracks/0/path = NodePath("Transition:visible")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.5 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 1,
"values": [ true, false ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("Transition:position")
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 0.5 ),
"transitions": PoolRealArray( 5, 5 ),
"update": 0,
"values": [ Vector2( 0, 0 ), Vector2( 0, -32 ) ]
}

[sub_resource type="Animation" id=2]
length = 0.5
tracks/0/type = "value"
tracks/0/path = NodePath("Transition:visible")
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.5 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 1,
"values": [ false, true, false ]
}

[node name="Game" type="Node2D"]

[node name="Player" parent="." instance=ExtResource( 3 )]
position = Vector2( 17, 26 )
z_index = 1

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

[node name="BedRoom" parent="Room" instance=ExtResource( 1 )]

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

[node name="CanvasLayer" type="CanvasLayer" parent="."]
layer = 5

[node name="Inventory" parent="CanvasLayer" instance=ExtResource( 5 )]
visible = false

[node name="Cursor" type="Node2D" parent="CanvasLayer"]
z_index = 5
script = ExtResource( 4 )

[node name="Sprite" type="Sprite" parent="CanvasLayer/Cursor"]
texture = ExtResource( 2 )
centered = false
offset = Vector2( -1, -1 )
hframes = 2

[node name="TransitionPlayer" type="AnimationPlayer" parent="CanvasLayer"]
anims/Hide = SubResource( 1 )
anims/Show = SubResource( 2 )

[node name="Transition" type="Polygon2D" parent="CanvasLayer"]
visible = false
z_index = 5
color = Color( 0.0235294, 0.121569, 0.105882, 1 )
polygon = PoolVector2Array( 0, 0, 32, 0, 32, 32, 0, 32 )

[node name="Logo" parent="CanvasLayer" instance=ExtResource( 6 )]

[node name="Music" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 7 )
autoplay = true
