[gd_scene load_steps=9 format=3 uid="uid://cnau7sr4mu3gf"] [ext_resource type="PackedScene" uid="uid://d0w3tum281vei" path="res://objects/level.tscn" id="1_l6cm7"] [ext_resource type="Texture2D" uid="uid://qxwsryrw0ny4" path="res://rendering/kloppenheim_06_4k.exr" id="2_ekxnf"] [ext_resource type="Texture2D" uid="uid://pa0il6ab7wn5" path="res://ui/title.svg" id="3_bqqt6"] [sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_bqqt6"] panorama = ExtResource("2_ekxnf") energy_multiplier = 0.25 [sub_resource type="Sky" id="Sky_x4b8f"] sky_material = SubResource("PanoramaSkyMaterial_bqqt6") [sub_resource type="Environment" id="Environment_wu84c"] background_mode = 2 background_energy_multiplier = 1.84 sky = SubResource("Sky_x4b8f") ambient_light_source = 3 ssao_radius = 16.0 glow_enabled = true fog_enabled = true fog_mode = 1 fog_light_color = Color(0.272901, 0.471156, 0.543814, 1) fog_light_energy = 2.98 fog_sun_scatter = 0.28 fog_density = 0.0105 fog_sky_affect = 0.0 fog_depth_curve = 1.07178 [sub_resource type="GDScript" id="GDScript_vue75"] script/source = "extends Button func _ready(): self.grab_focus() preload(\"res://scenes/valley.tscn\") func _on_button_up() -> void: self.get_tree().change_scene_to_file(\"res://scenes/valley.tscn\") " [sub_resource type="GDScript" id="GDScript_ekxnf"] script/source = "extends HBoxContainer @onready var container := $\"../../../SubViewportContainer\" func _ready(): updated_scale() func updated_scale(): ValleyRoot.set_render_factor(container.stretch_shrink) $Label.text = \"%.2fx\" % (1.0/container.stretch_shrink) func _on_lower_pressed() -> void: container.stretch_shrink += 1 updated_scale() func _on_increase_pressed() -> void: container.stretch_shrink -= 1 updated_scale() " [node name="MainMenu" type="Control"] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 [node name="SubViewportContainer" type="SubViewportContainer" parent="."] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 stretch = true [node name="SubViewport" type="SubViewport" parent="SubViewportContainer"] handle_input_locally = false size = Vector2i(1152, 648) render_target_update_mode = 4 [node name="Node3D" type="Node3D" parent="SubViewportContainer/SubViewport"] [node name="Level" parent="SubViewportContainer/SubViewport/Node3D" instance=ExtResource("1_l6cm7")] [node name="DirectionalLight3D" type="DirectionalLight3D" parent="SubViewportContainer/SubViewport/Node3D"] transform = Transform3D(-0.881476, -0.298896, -0.365596, 7.45058e-09, -0.774194, 0.632949, -0.472228, 0.557929, 0.682434, 0, 2.39942, 0) light_energy = 1.972 shadow_enabled = true shadow_opacity = 0.55 shadow_blur = 0.973 directional_shadow_split_1 = 0.039 directional_shadow_split_2 = 0.091 directional_shadow_split_3 = 0.17 directional_shadow_max_distance = 1063.4 [node name="WorldEnvironment" type="WorldEnvironment" parent="SubViewportContainer/SubViewport/Node3D"] environment = SubResource("Environment_wu84c") [node name="Camera3D" type="Camera3D" parent="SubViewportContainer/SubViewport/Node3D"] transform = Transform3D(-0.672263, 0.223072, 0.705904, -3.00783e-08, 0.953523, -0.301321, -0.740312, -0.202567, -0.641018, 311.829, 46.925, 423.07) [node name="PanelContainer" type="PanelContainer" parent="."] layout_mode = 1 anchors_preset = 2 anchor_top = 1.0 anchor_bottom = 1.0 offset_top = -163.0 offset_right = 316.0 grow_vertical = 0 [node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer"] layout_mode = 2 [node name="Button" type="Button" parent="PanelContainer/VBoxContainer"] layout_mode = 2 focus_neighbor_bottom = NodePath("../Resolution/Lower") theme_override_font_sizes/font_size = 50 text = "Start" script = SubResource("GDScript_vue75") [node name="Label2" type="Label" parent="PanelContainer/VBoxContainer"] layout_mode = 2 theme_override_font_sizes/font_size = 25 text = "Resolution" [node name="Resolution" type="HBoxContainer" parent="PanelContainer/VBoxContainer"] layout_mode = 2 size_flags_vertical = 3 script = SubResource("GDScript_ekxnf") [node name="Lower" type="Button" parent="PanelContainer/VBoxContainer/Resolution"] layout_mode = 2 focus_neighbor_top = NodePath("../../Button") focus_neighbor_right = NodePath("../Increase") theme_override_font_sizes/font_size = 25 text = "<" [node name="Label" type="Label" parent="PanelContainer/VBoxContainer/Resolution"] layout_mode = 2 size_flags_horizontal = 3 theme_override_font_sizes/font_size = 25 text = "1x" horizontal_alignment = 1 [node name="Increase" type="Button" parent="PanelContainer/VBoxContainer/Resolution"] layout_mode = 2 focus_neighbor_left = NodePath("../Lower") focus_neighbor_top = NodePath("../../Button") theme_override_font_sizes/font_size = 25 text = ">" [node name="TextureRect" type="TextureRect" parent="."] layout_mode = 1 anchors_preset = 13 anchor_left = 0.5 anchor_right = 0.5 anchor_bottom = 1.0 offset_left = -430.0 offset_right = 430.0 grow_horizontal = 2 grow_vertical = 2 texture = ExtResource("3_bqqt6") expand_mode = 2 stretch_mode = 4 [connection signal="button_up" from="PanelContainer/VBoxContainer/Button" to="PanelContainer/VBoxContainer/Button" method="_on_button_up"] [connection signal="pressed" from="PanelContainer/VBoxContainer/Resolution/Lower" to="PanelContainer/VBoxContainer/Resolution" method="_on_lower_pressed"] [connection signal="pressed" from="PanelContainer/VBoxContainer/Resolution/Increase" to="PanelContainer/VBoxContainer/Resolution" method="_on_increase_pressed"]