[gd_scene load_steps=8 format=3 uid="uid://di05lhhav43s7"]

[ext_resource type="Texture2D" uid="uid://durqtk0juny64" path="res://resources/particles/light_beam.png" id="1_px2l5"]
[ext_resource type="Script" path="res://entities/scripts/crystal_glow.gd" id="2_dtblp"]
[ext_resource type="Texture2D" uid="uid://b0v24ggq57237" path="res://resources/particles/smallcircle.png" id="3_3ioih"]

[sub_resource type="Curve" id="Curve_ffgoa"]
_data = [Vector2(0, 0), 0.0, 1.4, 0, 0, Vector2(0.203642, 1), 0.0, 0.0, 0, 0, Vector2(0.799669, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
point_count = 4

[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_ruaam"]
blend_mode = 1

[sub_resource type="Animation" id="Animation_bf3hv"]
resource_name = "CrystalGlow"
length = 5.0
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("CrystalAreaLight:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 1.9, 3.2, 5),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 0,
"values": [Vector2(1, 1), Vector2(1.1, 1.1), Vector2(0.8, 0.8), Vector2(1, 1)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("CrystalAreaLight:modulate:a")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0.00999999, 0.21, 0.61, 1.01, 1.61, 1.81, 2.2, 2.6, 4, 4.2, 4.6, 5),
"transitions": PackedFloat32Array(-2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2),
"update": 0,
"values": [1.0, 0.5, 0.8, 1.0, 1.0, 0.5, 0.8, 1.0, 1.0, 0.5, 0.8, 1.0]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("CrystalAreaLargeLight:scale")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 2.6, 5),
"transitions": PackedFloat32Array(-2, -2, -2),
"update": 0,
"values": [Vector2(2, 2), Vector2(2.2, 2.2), Vector2(2, 2)]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("CrystalGlowLight:scale")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0, 2, 5),
"transitions": PackedFloat32Array(-2, -2, -2),
"update": 0,
"values": [Vector2(1, 1), Vector2(2, 1), Vector2(1, 1)]
}
tracks/4/type = "value"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("CrystalGlowLight:modulate:a")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(0.1, 1.3, 2.8, 4, 5),
"transitions": PackedFloat32Array(1, -2, 1, -2, 1),
"update": 0,
"values": [1.0, 0.5, 1.0, 0.2, 1.0]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_r67ky"]
_data = {
"CrystalGlow": SubResource("Animation_bf3hv")
}

[node name="CrystalGlow" type="Node2D"]
script = ExtResource("2_dtblp")

[node name="CrystalParticles" type="CPUParticles2D" parent="."]
self_modulate = Color(0, 1, 1, 0.384314)
amount = 2
lifetime = 5.0
randomness = 0.1
lifetime_randomness = 0.15
emission_shape = 4
emission_points = PackedVector2Array(15, 0, -15, -15, 15, -15, -15, 0)
emission_colors = PackedColorArray()
spread = 180.0
gravity = Vector2(0, 0)
initial_velocity_min = 1.0
initial_velocity_max = 2.0
scale_amount_min = 2.0
scale_amount_max = 4.0
scale_amount_curve = SubResource("Curve_ffgoa")
color = Color(1, 1, 1, 0.164706)

[node name="CrystalGlowLight" type="Sprite2D" parent="."]
modulate = Color(1.5, 1.5, 1.5, 1)
self_modulate = Color(0.372549, 1, 0.996078, 0.0823529)
material = SubResource("CanvasItemMaterial_ruaam")
position = Vector2(0, -31)
rotation = 3.14159
texture = ExtResource("1_px2l5")
offset = Vector2(0, 6)

[node name="CrystalAreaLight" type="Sprite2D" parent="."]
self_modulate = Color(1.5, 1.5, 1.5, 0.408)
material = SubResource("CanvasItemMaterial_ruaam")
texture = ExtResource("3_3ioih")
offset = Vector2(0, 6)

[node name="CrystalAreaLargeLight" type="Sprite2D" parent="."]
modulate = Color(1.2, 1.2, 1.2, 1)
self_modulate = Color(0, 1, 1, 0.109804)
material = SubResource("CanvasItemMaterial_ruaam")
position = Vector2(0, -12)
scale = Vector2(2, 2)
texture = ExtResource("3_3ioih")

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