[gd_scene load_steps=20 format=3 uid="uid://deah8x3tnm045"] [ext_resource type="Texture2D" uid="uid://b3ecco3iykmlc" path="res://assets/textures/overcast_soil_puresky_4k.hdr" id="1_4mr0e"] [ext_resource type="Script" path="res://core/scripts/main.gd" id="1_eewwe"] [ext_resource type="Script" path="res://core/scripts/camera_3d.gd" id="3_sec6q"] [ext_resource type="Script" path="res://core/scripts/los_view.gd" id="3_supaf"] [ext_resource type="Texture2D" uid="uid://c7ldlo5qe26tx" path="res://assets/textures/drone_screenshot.png" id="4_0ftx7"] [ext_resource type="Script" path="res://core/scripts/main_menu.gd" id="4_bknjq"] [ext_resource type="Script" path="res://core/scripts/pause_menu.gd" id="7_b8wfm"] [ext_resource type="Script" path="res://core/scripts/map_selection.gd" id="9_m0h3c"] [ext_resource type="PackedScene" uid="uid://ctnwdiavrytwe" path="res://core/levels/construction_site.tscn" id="9_uh1ro"] [ext_resource type="PackedScene" uid="uid://5ht1wfq36328" path="res://core/levels/run_down_building.tscn" id="10_u57pm"] [ext_resource type="PackedScene" uid="uid://7umhe6bcjv4v" path="res://core/levels/abstract.tscn" id="11_nccjd"] [sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_qks7v"] panorama = ExtResource("1_4mr0e") energy_multiplier = 0.5 [sub_resource type="Sky" id="Sky_dsv6k"] sky_material = SubResource("PanoramaSkyMaterial_qks7v") [sub_resource type="Environment" id="Environment_ruppb"] background_mode = 2 sky = SubResource("Sky_dsv6k") tonemap_mode = 2 glow_enabled = true [sub_resource type="Curve" id="Curve_nxnkk"] min_value = 1.0 max_value = 90.0 bake_resolution = 1 _data = [Vector2(0, 90), 0.0, -220.055, 0, 0, Vector2(0.0753138, 59.5526), -282.238, -282.238, 0, 0, Vector2(0.449093, 7.72959), -32.7953, -32.7953, 0, 0, Vector2(0.994421, 1), -7.74656, 0.0, 0, 0] point_count = 4 [sub_resource type="LabelSettings" id="LabelSettings_rjteo"] shadow_color = Color(0, 0, 0, 0.611765) [sub_resource type="LabelSettings" id="LabelSettings_ymk35"] shadow_color = Color(0, 0, 0, 0.611765) [sub_resource type="StyleBoxTexture" id="StyleBoxTexture_b4xxx"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_pg658"] bg_color = Color(0, 0, 0, 0) [node name="Main" type="Node3D" node_paths=PackedStringArray("reset_point")] script = ExtResource("1_eewwe") reset_point = NodePath("ResetPoint") [node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] transform = Transform3D(-0.924804, -0.329475, 0.190221, 1.47562e-08, 0.499998, 0.866027, -0.380444, 0.800905, -0.4624, 0, 0, 0) light_color = Color(0.780392, 0.772549, 0.768627, 1) light_energy = 0.5 shadow_enabled = true shadow_bias = 0.0 shadow_blur = 4.542 [node name="WorldEnvironment" type="WorldEnvironment" parent="."] environment = SubResource("Environment_ruppb") [node name="ResetPoint" type="Marker3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.117014, 0) [node name="LOSView" type="Node3D" parent="." node_paths=PackedStringArray("child_camera")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.23896, 0.638642, -1.134) script = ExtResource("3_supaf") zoom_curve = SubResource("Curve_nxnkk") child_camera = NodePath("LOSCamera3D") [node name="LOSCamera3D" type="Camera3D" parent="LOSView"] near = 0.002 far = 8000.0 script = ExtResource("3_sec6q") [node name="CanvasLayer" type="CanvasLayer" parent="."] process_mode = 3 layer = 2 [node name="MainMenu" type="Control" parent="CanvasLayer" node_paths=PackedStringArray("start_button", "quit_button", "controller_mode_button", "joy_controller_label", "fpv_remote_label", "map_selection_menu")] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 script = ExtResource("4_bknjq") start_button = NodePath("HBoxContainer/VBoxContainer/MarginContainer/VBoxContainer/StartButton") quit_button = NodePath("HBoxContainer/VBoxContainer/MarginContainer/VBoxContainer/QuitButton") controller_mode_button = NodePath("HBoxContainer/VBoxContainer/MarginContainer/VBoxContainer/HBoxContainer/ControllerModeButton") joy_controller_label = NodePath("HBoxContainer/VBoxContainer/MarginContainer/VBoxContainer/HBoxContainer/JoyControllerLabel") fpv_remote_label = NodePath("HBoxContainer/VBoxContainer/MarginContainer/VBoxContainer/HBoxContainer/FPVRemoteLabel") map_selection_menu = NodePath("../MapSelection") [node name="TextureRect" type="TextureRect" parent="CanvasLayer/MainMenu"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 texture = ExtResource("4_0ftx7") expand_mode = 1 [node name="HBoxContainer" type="HBoxContainer" parent="CanvasLayer/MainMenu"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 alignment = 2 [node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/MainMenu/HBoxContainer"] layout_mode = 2 alignment = 1 [node name="MarginContainer" type="MarginContainer" parent="CanvasLayer/MainMenu/HBoxContainer/VBoxContainer"] layout_mode = 2 theme_override_constants/margin_right = 65 [node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/MainMenu/HBoxContainer/VBoxContainer/MarginContainer"] layout_mode = 2 theme_override_constants/separation = 20 alignment = 1 [node name="StartButton" type="Button" parent="CanvasLayer/MainMenu/HBoxContainer/VBoxContainer/MarginContainer/VBoxContainer"] layout_mode = 2 focus_neighbor_bottom = NodePath("../HBoxContainer/ControllerModeButton") theme_override_font_sizes/font_size = 50 text = "START" [node name="HBoxContainer" type="HBoxContainer" parent="CanvasLayer/MainMenu/HBoxContainer/VBoxContainer/MarginContainer/VBoxContainer"] layout_mode = 2 alignment = 1 [node name="JoyControllerLabel" type="Label" parent="CanvasLayer/MainMenu/HBoxContainer/VBoxContainer/MarginContainer/VBoxContainer/HBoxContainer"] self_modulate = Color(0, 1, 0, 1) layout_mode = 2 text = "JOY CONTROLLER" label_settings = SubResource("LabelSettings_rjteo") [node name="ControllerModeButton" type="CheckButton" parent="CanvasLayer/MainMenu/HBoxContainer/VBoxContainer/MarginContainer/VBoxContainer/HBoxContainer"] layout_mode = 2 focus_neighbor_top = NodePath("../../StartButton") focus_neighbor_bottom = NodePath("../../QuitButton") alignment = 1 icon_alignment = 1 [node name="FPVRemoteLabel" type="Label" parent="CanvasLayer/MainMenu/HBoxContainer/VBoxContainer/MarginContainer/VBoxContainer/HBoxContainer"] self_modulate = Color(0.498039, 0.498039, 0.498039, 1) layout_mode = 2 text = "FPV REMOTE" label_settings = SubResource("LabelSettings_ymk35") [node name="QuitButton" type="Button" parent="CanvasLayer/MainMenu/HBoxContainer/VBoxContainer/MarginContainer/VBoxContainer"] layout_mode = 2 focus_neighbor_top = NodePath("../HBoxContainer/ControllerModeButton") theme_override_font_sizes/font_size = 50 text = "QUIT" [node name="PauseMenu" type="Control" parent="CanvasLayer" node_paths=PackedStringArray("resume_button", "quit_button")] visible = false layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 script = ExtResource("7_b8wfm") resume_button = NodePath("HBoxContainer/VBoxContainer/MarginContainer2/VBoxContainer/ResumeButton") quit_button = NodePath("HBoxContainer/VBoxContainer/MarginContainer2/VBoxContainer/QuitButton") [node name="ColorRect" type="ColorRect" parent="CanvasLayer/PauseMenu"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 color = Color(0, 0, 0, 0.772549) [node name="HBoxContainer" type="HBoxContainer" parent="CanvasLayer/PauseMenu"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 alignment = 1 [node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/PauseMenu/HBoxContainer"] layout_mode = 2 [node name="MarginContainer" type="MarginContainer" parent="CanvasLayer/PauseMenu/HBoxContainer/VBoxContainer"] layout_mode = 2 theme_override_constants/margin_top = 60 [node name="Label" type="Label" parent="CanvasLayer/PauseMenu/HBoxContainer/VBoxContainer/MarginContainer"] layout_mode = 2 theme_override_font_sizes/font_size = 60 text = "PAUSED" [node name="MarginContainer2" type="MarginContainer" parent="CanvasLayer/PauseMenu/HBoxContainer/VBoxContainer"] layout_mode = 2 theme_override_constants/margin_top = 120 [node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/PauseMenu/HBoxContainer/VBoxContainer/MarginContainer2"] layout_mode = 2 theme_override_constants/separation = 25 alignment = 1 [node name="ResumeButton" type="Button" parent="CanvasLayer/PauseMenu/HBoxContainer/VBoxContainer/MarginContainer2/VBoxContainer"] layout_mode = 2 theme_override_font_sizes/font_size = 25 text = "RESUME" [node name="QuitButton" type="Button" parent="CanvasLayer/PauseMenu/HBoxContainer/VBoxContainer/MarginContainer2/VBoxContainer"] layout_mode = 2 theme_override_font_sizes/font_size = 25 text = "QUIT" [node name="MapSelection" type="Control" parent="CanvasLayer" node_paths=PackedStringArray("construction_site_button", "run_down_building_button", "abstract_button", "start_button")] visible = false layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 script = ExtResource("9_m0h3c") construction_site_button = NodePath("GridContainer/Panel/ConstructionSiteButton") run_down_building_button = NodePath("GridContainer/Panel2/RunDownBuildingButton") abstract_button = NodePath("GridContainer/Panel3/AbstractButton") start_button = NodePath("HBoxContainer/VBoxContainer/MarginContainer/StartButton") construction_site_scene = ExtResource("9_uh1ro") run_down_building_scene = ExtResource("10_u57pm") abstract_scene = ExtResource("11_nccjd") [node name="ColorRect" type="ColorRect" parent="CanvasLayer/MapSelection"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 color = Color(0.262932, 0.262932, 0.262932, 1) [node name="GridContainer" type="GridContainer" parent="CanvasLayer/MapSelection"] layout_mode = 2 offset_left = 236.0 offset_top = 274.0 offset_right = 916.0 offset_bottom = 374.0 grow_horizontal = 2 grow_vertical = 2 size_flags_horizontal = 4 size_flags_vertical = 4 theme_override_constants/h_separation = 40 theme_override_constants/v_separation = 40 columns = 3 [node name="Panel" type="Panel" parent="CanvasLayer/MapSelection/GridContainer"] custom_minimum_size = Vector2(200, 100) layout_mode = 2 theme_override_styles/panel = SubResource("StyleBoxTexture_b4xxx") [node name="ConstructionSiteButton" type="Button" parent="CanvasLayer/MapSelection/GridContainer/Panel"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 focus_neighbor_right = NodePath("../../Panel2/RunDownBuildingButton") focus_neighbor_bottom = NodePath("../../../HBoxContainer/VBoxContainer/MarginContainer/StartButton") text = "Construction Site" [node name="Panel2" type="Panel" parent="CanvasLayer/MapSelection/GridContainer"] custom_minimum_size = Vector2(200, 100) layout_mode = 2 theme_override_styles/panel = SubResource("StyleBoxFlat_pg658") [node name="RunDownBuildingButton" type="Button" parent="CanvasLayer/MapSelection/GridContainer/Panel2"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 focus_neighbor_left = NodePath("../../Panel/ConstructionSiteButton") focus_neighbor_right = NodePath("../../Panel3/AbstractButton") focus_neighbor_bottom = NodePath("../../../HBoxContainer/VBoxContainer/MarginContainer/StartButton") text = "Run Down Building" [node name="Panel3" type="Panel" parent="CanvasLayer/MapSelection/GridContainer"] custom_minimum_size = Vector2(200, 100) layout_mode = 2 theme_override_styles/panel = SubResource("StyleBoxFlat_pg658") [node name="AbstractButton" type="Button" parent="CanvasLayer/MapSelection/GridContainer/Panel3"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 focus_neighbor_left = NodePath("../../Panel2/RunDownBuildingButton") focus_neighbor_right = NodePath("../../../HBoxContainer/VBoxContainer/MarginContainer/StartButton") focus_neighbor_bottom = NodePath("../../../HBoxContainer/VBoxContainer/MarginContainer/StartButton") text = "Abstract" [node name="HBoxContainer" type="HBoxContainer" parent="CanvasLayer/MapSelection"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 alignment = 2 [node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/MapSelection/HBoxContainer"] layout_mode = 2 alignment = 2 [node name="MarginContainer" type="MarginContainer" parent="CanvasLayer/MapSelection/HBoxContainer/VBoxContainer"] layout_mode = 2 theme_override_constants/margin_right = 40 theme_override_constants/margin_bottom = 30 [node name="StartButton" type="Button" parent="CanvasLayer/MapSelection/HBoxContainer/VBoxContainer/MarginContainer"] custom_minimum_size = Vector2(200, 50) layout_mode = 2 focus_neighbor_top = NodePath("../../../../GridContainer/Panel3/AbstractButton") text = "START" [connection signal="toggled" from="CanvasLayer/MainMenu/HBoxContainer/VBoxContainer/MarginContainer/VBoxContainer/HBoxContainer/ControllerModeButton" to="CanvasLayer/MainMenu" method="_on_controller_mode_button_toggled"]