[gd_scene load_steps=10 format=3 uid="uid://dvt585i7m0286"]

[ext_resource type="Script" path="res://scripts/Splash.gd" id="1_3yqra"]
[ext_resource type="Shader" path="res://shaders/pend00-crt-vhs.gdshader" id="2_0jwol"]
[ext_resource type="Shader" path="res://shaders/Splash.gdshader" id="2_5fbyd"]
[ext_resource type="Texture2D" uid="uid://bdshi27v4osg2" path="res://icons/yorchnet_pixel_64.png" id="2_fpfqa"]
[ext_resource type="PackedScene" uid="uid://cnp8h65468543" path="res://scenes/overlays/crt_overlay.tscn" id="5_jurjp"]

[sub_resource type="ShaderMaterial" id="ShaderMaterial_ijjp2"]
shader = ExtResource("2_5fbyd")
shader_parameter/flap_speed = 4.0
shader_parameter/scale = 4.0

[sub_resource type="ShaderMaterial" id="ShaderMaterial_yxw0u"]
shader = ExtResource("2_0jwol")
shader_parameter/overlay = true
shader_parameter/scanlines_opacity = 0.125
shader_parameter/scanlines_width = 0.125
shader_parameter/grille_opacity = 0.125
shader_parameter/resolution = Vector2(640, 320)
shader_parameter/pixelate = false
shader_parameter/roll = true
shader_parameter/roll_speed = 1.0
shader_parameter/roll_size = 0.8
shader_parameter/roll_variation = 2.574
shader_parameter/distort_intensity = 0.0
shader_parameter/noise_opacity = 0.05
shader_parameter/noise_speed = 5.0
shader_parameter/static_noise_intensity = 0.06
shader_parameter/aberration = 0.00500005
shader_parameter/brightness = 1.4
shader_parameter/discolor = true
shader_parameter/warp_amount = 0.0
shader_parameter/clip_warp = false
shader_parameter/vignette_intensity = 0.1
shader_parameter/vignette_opacity = 0.5

[sub_resource type="Animation" id="Animation_2v5v3"]
resource_name = "animation"
length = 3.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("ColorRect:self_modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0.1, 0.5, 2.5, 3),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 0,
"values": [Color(1, 1, 1, 1), Color(0, 0, 0, 0), Color(0, 0, 0, 0), Color(1, 1, 1, 1)]
}
tracks/1/type = "method"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(3),
"transitions": PackedFloat32Array(1),
"values": [{
"args": [],
"method": &"load_start_menu"
}]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_sansa"]
_data = {
"animation": SubResource("Animation_2v5v3")
}

[node name="Splash" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_3yqra")
metadata/_edit_use_anchors_ = true

[node name="CenterContainer" type="CenterContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2

[node name="TextureRect" type="TextureRect" parent="CenterContainer"]
material = SubResource("ShaderMaterial_ijjp2")
layout_mode = 2
texture = ExtResource("2_fpfqa")

[node name="Control" type="Control" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2

[node name="ColorRect" type="ColorRect" parent="Control"]
modulate = Color(1, 1, 1, 0.101961)
light_mask = 0
z_as_relative = false
material = SubResource("ShaderMaterial_yxw0u")
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2

[node name="ColorRect" type="ColorRect" parent="."]
layout_mode = 1
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="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_sansa")
}
autoplay = "animation"

[node name="CRT_Overlay" parent="." instance=ExtResource("5_jurjp")]
layout_mode = 1
