SlimeoosOdyssey/godot/Level/World/DayNightEnvironment.tscn

44 lines
1.2 KiB
Plaintext
Raw Normal View History

2023-08-20 16:49:08 -06:00
[gd_scene load_steps=4 format=3 uid="uid://6ycop5t3nra5"]
2023-08-20 13:31:48 -06:00
2023-08-20 16:49:08 -06:00
[ext_resource type="Script" path="res://Level/World/DayNightEnvironment.gd" id="1_82go6"]
2023-08-20 13:31:48 -06:00
[sub_resource type="Animation" id="Animation_l6y5u"]
resource_name = "DayNightCycle"
2023-08-20 13:43:47 -06:00
length = 300.0
2023-08-20 13:31:48 -06:00
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("DirectionalLight3D:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
2023-08-20 13:43:47 -06:00
"times": PackedFloat32Array(0, 300),
2023-08-20 13:31:48 -06:00
"transitions": PackedFloat32Array(1, 1),
"update": 0,
2023-08-20 13:43:47 -06:00
"values": [Vector3(0, 0, 0), Vector3(0, 0, 0)]
2023-08-20 13:31:48 -06:00
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_2t5g8"]
_data = {
"DayNightCycle": SubResource("Animation_l6y5u")
}
[node name="DayNightEnvironment" type="Node3D"]
2023-08-20 16:49:08 -06:00
script = ExtResource("1_82go6")
2023-08-20 13:31:48 -06:00
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
2023-08-20 13:43:47 -06:00
light_energy = 0.75
2023-08-20 13:31:48 -06:00
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "DayNightCycle"
libraries = {
"": SubResource("AnimationLibrary_2t5g8")
}
2023-08-20 16:49:08 -06:00
[node name="ChangeWorldEnvTimer" type="Timer" parent="."]
wait_time = 60.0
autostart = true
[connection signal="timeout" from="ChangeWorldEnvTimer" to="." method="randomize_env"]