glowlings/entities/mushroom_glow.tscn
2024-06-03 17:34:11 +01:00

100 lines
3.1 KiB
Text

[gd_scene load_steps=8 format=3 uid="uid://dr3yiqpdu3iox"]
[ext_resource type="Script" path="res://entities/scripts/mushroom_glow.gd" id="1_erigl"]
[ext_resource type="Texture2D" uid="uid://b0v24ggq57237" path="res://resources/particles/smallcircle.png" id="2_o6y3e"]
[sub_resource type="Animation" id="Animation_urhq0"]
resource_name = "GlowFlicker"
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("InnerGlow:scale")
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),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
"update": 0,
"values": [Vector2(2, 2), Vector2(1.95, 1.95), Vector2(2, 2), Vector2(1.95, 1.95), Vector2(2, 2), Vector2(1.9375, 1.9375), Vector2(1.95, 1.95), Vector2(2, 2), Vector2(2.05, 2.05), Vector2(1.9875, 1.9875), Vector2(2, 2)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_7ivlt"]
_data = {
"GlowFlicker": SubResource("Animation_urhq0")
}
[sub_resource type="Animation" id="Animation_lk3bq"]
resource_name = "OuterGlowPulse"
length = 5.0
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("OuterGlow:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 1, 2, 3, 3.9, 5),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
"update": 0,
"values": [Vector2(2.7, 2.7), Vector2(2.8, 2.8), Vector2(2.7, 2.7), Vector2(2.8, 2.8), Vector2(2.6, 2.6), Vector2(2.7, 2.7)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_vprws"]
_data = {
"OuterGlowPulse": SubResource("Animation_lk3bq")
}
[sub_resource type="Curve" id="Curve_sgxel"]
_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
[node name="MushroomGlow" type="Node2D"]
script = ExtResource("1_erigl")
[node name="GlowAnimation" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_7ivlt")
}
autoplay = "GlowFlicker"
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_vprws")
}
autoplay = "OuterGlowPulse"
[node name="InnerGlow" type="PointLight2D" parent="."]
scale = Vector2(2, 2)
color = Color(0.298039, 0.772549, 0.980392, 1)
energy = 1.95
shadow_enabled = true
shadow_filter = 2
shadow_filter_smooth = 7.5
texture = ExtResource("2_o6y3e")
[node name="OuterGlow" type="PointLight2D" parent="."]
scale = Vector2(2.7, 2.7)
color = Color(0.298039, 0.772549, 0.980392, 1)
energy = 0.7
shadow_filter = 2
shadow_filter_smooth = 7.5
texture = ExtResource("2_o6y3e")
[node name="CPUParticles2D" type="CPUParticles2D" parent="."]
modulate = Color(1.2, 1.2, 1.2, 0.592)
amount = 3
lifetime = 5.0
randomness = 0.1
lifetime_randomness = 0.15
emission_shape = 1
emission_sphere_radius = 40.0
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_sgxel")
color = Color(1, 1, 1, 0.164706)