[gd_scene format=3 uid="uid://cxk4tjias8r18"]

[ext_resource type="Texture2D" uid="uid://bbvdtm5iqv7a" path="res://assets/gfx/props/wall_torch.png" id="1_wyl82"]
[ext_resource type="AudioStream" uid="uid://y4632vubgvmk" path="res://assets/audio/sfx/environment/torch/torch_burn_02.wav.mp3" id="3_hab2u"]
[ext_resource type="AudioStream" uid="uid://r55n3trjpluy" path="res://assets/audio/sfx/environment/torch/torch_burn_01.wav.mp3" id="3_slct4"]

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

[sub_resource type="GradientTexture2D" id="GradientTexture2D_hab2u"]
gradient = SubResource("Gradient_wyl82")

[sub_resource type="Gradient" id="Gradient_272bh"]
offsets = PackedFloat32Array(0.603819, 0.673031)
colors = PackedColorArray(1, 0.843137, 0.603922, 0.337255, 1, 1, 1, 0)

[sub_resource type="GradientTexture2D" id="GradientTexture2D_5vw27"]
gradient = SubResource("Gradient_272bh")
width = 22
height = 22
fill = 1
fill_from = Vector2(0.512821, 0.461538)

[sub_resource type="Animation" id="Animation_272bh"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [0]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("FireGlow:scale")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(1, 1)]
}

[sub_resource type="Animation" id="Animation_7mycd"]
resource_name = "torch"
length = 1.6
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1, 1.1, 1.2, 1.3, 1.4, 1.5),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
"update": 1,
"values": [0, 1, 2, 1, 0, 1, 2, 1, 0, 1, 2, 1, 0, 1, 2, 1]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("FireGlow:scale")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.199912, 0.401399, 0.601311, 0.794927, 0.994839, 1.19633, 1.39624),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1),
"update": 1,
"values": [Vector2(1, 1), Vector2(1.1, 1.1), Vector2(1, 1), Vector2(1.1, 1.1), Vector2(1, 1), Vector2(1.1, 1.1), Vector2(1, 1), Vector2(1.1, 1.1)]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("TorchLight:scale")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 0.3, 0.4, 0.7, 0.8, 1.1, 1.2, 1.5),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1),
"update": 1,
"values": [Vector2(1, 1), Vector2(1.05, 1.05), Vector2(1.1, 1.1), Vector2(1.05, 1.05), Vector2(1, 1), Vector2(1.05, 1.05), Vector2(1.1, 1.1), Vector2(1.05, 1.05)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_5vw27"]
_data = {
&"RESET": SubResource("Animation_272bh"),
&"torch": SubResource("Animation_7mycd")
}

[sub_resource type="Gradient" id="Gradient_lquwl"]
offsets = PackedFloat32Array(0.743, 0.74418604)
colors = PackedColorArray(1, 1, 1, 1, 0, 0, 0, 0)

[sub_resource type="GradientTexture2D" id="GradientTexture2D_lt5sp"]
gradient = SubResource("Gradient_lquwl")
fill = 1
fill_from = Vector2(0.508547, 0.487179)
fill_to = Vector2(0.974359, 0.0470085)

[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_1wp5x"]
random_pitch = 1.0175972
streams_count = 2
stream_0/stream = ExtResource("3_hab2u")
stream_1/stream = ExtResource("3_slct4")

[node name="TorchWall" type="Sprite2D" unique_id=677875879]
y_sort_enabled = true
texture = ExtResource("1_wyl82")
hframes = 3

[node name="Sprite2D" type="Sprite2D" parent="." unique_id=643410971]
visible = false
texture = SubResource("GradientTexture2D_hab2u")

[node name="FireGlow" type="Sprite2D" parent="." unique_id=2035776649]
position = Vector2(0, -2)
texture = SubResource("GradientTexture2D_5vw27")

[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=899365305]
libraries/ = SubResource("AnimationLibrary_5vw27")
autoplay = &"torch"

[node name="TorchLight" type="PointLight2D" parent="." unique_id=484638939]
z_index = 10
position = Vector2(0, -1)
blend_mode = 2
range_layer_max = 2
texture = SubResource("GradientTexture2D_lt5sp")

[node name="SfxTorch" type="AudioStreamPlayer2D" parent="." unique_id=171010221]
stream = SubResource("AudioStreamRandomizer_1wp5x")
volume_db = -13.974
autoplay = true
max_distance = 509.0
attenuation = 16.5642
max_polyphony = 2
panning_strength = 1.89
bus = &"Sfx"
