[gd_scene load_steps=12 format=3 uid="uid://d2ut237hxscbo"]

[ext_resource type="Texture2D" uid="uid://3m6opnieiyr2" path="res://assets/sprites/golden_bg.png" id="1_tsh0d"]
[ext_resource type="Shader" uid="uid://d0rylce8i5xtg" path="res://assets/shaders/SACRIFICE.gdshader" id="2_b8skw"]
[ext_resource type="Texture2D" uid="uid://dfmi4cgn6hmsj" path="res://assets/sprites/gold.png" id="3_1ybnd"]
[ext_resource type="AudioStream" uid="uid://lshrnpdrhh77" path="res://assets/audio/music/Смешарики - 194. Метеоритный дождь.mp3" id="4_b8skw"]

[sub_resource type="Gradient" id="Gradient_b8skw"]
colors = PackedColorArray(0, 0, 0, 0, 1, 1, 1, 1)

[sub_resource type="FastNoiseLite" id="FastNoiseLite_1ybnd"]
seed = 4

[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_yu0ma"]
width = 600
height = 400
color_ramp = SubResource("Gradient_b8skw")
noise = SubResource("FastNoiseLite_1ybnd")

[sub_resource type="ShaderMaterial" id="ShaderMaterial_yu0ma"]
shader = ExtResource("2_b8skw")
shader_parameter/noise = SubResource("NoiseTexture2D_yu0ma")

[sub_resource type="Animation" id="Animation_1ybnd"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("TextureRect:self_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_b8skw"]
resource_name = "main"
length = 10.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("TextureRect:self_modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(3, 10),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_yu0ma"]
_data = {
&"RESET": SubResource("Animation_1ybnd"),
&"main": SubResource("Animation_b8skw")
}

[node name="SACRIFICE" type="TextureRect"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("1_tsh0d")

[node name="TextureRect" type="TextureRect" parent="."]
material = SubResource("ShaderMaterial_yu0ma")
layout_mode = 0
offset_right = 40.0
offset_bottom = 40.0
texture = ExtResource("3_1ybnd")

[node name="Musicale" type="AudioStreamPlayer" parent="."]
stream = ExtResource("4_b8skw")
autoplay = true

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