[gd_scene load_steps=7 format=3 uid="uid://cf6hsqscvsk42"]

[ext_resource type="Script" uid="uid://c5828brdwf0ef" path="res://global.gd" id="1_o7u50"]
[ext_resource type="AudioStream" uid="uid://crgyul2o4b36b" path="res://music/area_0.ogg" id="2_pjt3s"]

[sub_resource type="Animation" id="Animation_2jx0t"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("ColorRect:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 1)]
}

[sub_resource type="Animation" id="Animation_tsy5r"]
resource_name = "fade_in"
length = 0.25
step = 0.01
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("ColorRect:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.24),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
}

[sub_resource type="Animation" id="Animation_wrddv"]
resource_name = "fade_out"
length = 0.25
step = 0.01
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("ColorRect:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.24),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_nsh7t"]
_data = {
&"RESET": SubResource("Animation_2jx0t"),
&"fade_in": SubResource("Animation_tsy5r"),
&"fade_out": SubResource("Animation_wrddv")
}

[node name="Global" type="CanvasLayer"]
script = ExtResource("1_o7u50")

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
&"": SubResource("AnimationLibrary_nsh7t")
}

[node name="ColorRect" type="ColorRect" parent="."]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0, 0, 1)

[node name="MusicPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("2_pjt3s")
autoplay = true
mix_target = 1
bus = &"Music"
