Functional prototype
This commit is contained in:
@@ -1,16 +1,19 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://deah8x3tnm045"]
|
||||
[gd_scene load_steps=12 format=3 uid="uid://deah8x3tnm045"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bfhw7682gnh22" path="res://core/levels/test_level.tscn" id="1_ylfl7"]
|
||||
[ext_resource type="Texture2D" uid="uid://b3ecco3iykmlc" path="res://assets/textures/overcast_soil_puresky_4k.hdr" id="1_4mr0e"]
|
||||
[ext_resource type="PackedScene" uid="uid://dwvmna8qc0vb4" path="res://core/drone/drone.tscn" id="2_orkyq"]
|
||||
[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="PackedScene" uid="uid://ctnwdiavrytwe" path="res://core/levels/contruction_site.tscn" id="4_oqdxa"]
|
||||
|
||||
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_rtxf7"]
|
||||
sky_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
|
||||
ground_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
|
||||
[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("ProceduralSkyMaterial_rtxf7")
|
||||
sky_material = SubResource("PanoramaSkyMaterial_qks7v")
|
||||
|
||||
[sub_resource type="Environment" id="Environment_ruppb"]
|
||||
background_mode = 2
|
||||
@@ -28,21 +31,28 @@ point_count = 4
|
||||
[node name="Main" type="Node3D"]
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(-0.866023, -0.433016, 0.250001, 0, 0.499998, 0.866027, -0.500003, 0.749999, -0.43301, 0, 0, 0)
|
||||
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="TestLevel" parent="." instance=ExtResource("1_ylfl7")]
|
||||
|
||||
[node name="Drone" parent="." instance=ExtResource("2_orkyq")]
|
||||
[node name="ResetPoint" type="Marker3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.017014, 0)
|
||||
|
||||
[node name="LOSView" type="Node3D" parent="."]
|
||||
[node name="Drone" parent="ResetPoint" node_paths=PackedStringArray("reset_point") instance=ExtResource("2_orkyq")]
|
||||
reset_point = NodePath("..")
|
||||
|
||||
[node name="LOSView" type="Node3D" parent="." node_paths=PackedStringArray("drone", "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")
|
||||
drone = NodePath("../ResetPoint/Drone")
|
||||
child_camera = NodePath("LOSCamera3D")
|
||||
|
||||
[node name="LOSCamera3D" type="Camera3D" parent="LOSView"]
|
||||
near = 0.002
|
||||
@@ -51,21 +61,60 @@ script = ExtResource("3_sec6q")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
layer = 2
|
||||
visible = false
|
||||
|
||||
[node name="MainMenu" type="Control" parent="CanvasLayer"]
|
||||
[node name="MainMenu" type="Control" parent="CanvasLayer" node_paths=PackedStringArray("start_button", "quit_button")]
|
||||
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")
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="CanvasLayer/MainMenu"]
|
||||
[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
|
||||
color = Color(0.351563, 0.351563, 0.351563, 1)
|
||||
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 = 150
|
||||
|
||||
[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("../QuitButton")
|
||||
theme_override_font_sizes/font_size = 50
|
||||
text = "START"
|
||||
|
||||
[node name="QuitButton" type="Button" parent="CanvasLayer/MainMenu/HBoxContainer/VBoxContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
focus_neighbor_top = NodePath("../StartButton")
|
||||
theme_override_font_sizes/font_size = 50
|
||||
text = "QUIT"
|
||||
|
||||
[node name="TestLevel" parent="." instance=ExtResource("4_oqdxa")]
|
||||
|
||||
Reference in New Issue
Block a user