-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainscene.tscn
132 lines (102 loc) · 5.01 KB
/
mainscene.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
[gd_scene load_steps=20 format=3 uid="uid://bv06njlc1hyet"]
[ext_resource type="Script" path="res://src/scripts/ui/screen_edge_movement.gd" id="2_5d5ij"]
[ext_resource type="Script" path="res://src/scripts/selected_units_counter.gd" id="2_v1hal"]
[ext_resource type="Script" path="res://src/scripts/ship_spawner_stress_test.gd" id="3_1buft"]
[ext_resource type="Script" path="res://src/scripts/ui/game/rts/CursorManager.cs" id="3_wj6q3"]
[ext_resource type="Script" path="res://src/scripts/ui/game/rts/SelectUnitsControl.cs" id="4_p4mcv"]
[ext_resource type="PackedScene" uid="uid://cjsy1acea5v0w" path="res://src/scenes/height_cursor.tscn" id="6_l3cmy"]
[ext_resource type="Script" path="res://src/scripts/proc_gen/BlueNoiseGenerator.cs" id="8_myra8"]
[ext_resource type="Script" path="res://src/scripts/proc_gen/planet_generator.gd" id="9_0em1f"]
[ext_resource type="PackedScene" path="res://src/scenes/utils/screen_edge_detect.tscn" id="9_4govk"]
[sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_0ycbn"]
[sub_resource type="Sky" id="Sky_3d01s"]
sky_material = SubResource("PanoramaSkyMaterial_0ycbn")
[sub_resource type="Environment" id="Environment_7eeov"]
background_mode = 3
sky = SubResource("Sky_3d01s")
[sub_resource type="CameraAttributesPractical" id="CameraAttributesPractical_dr8pw"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_6nwqg"]
transparency = 1
vertex_color_use_as_albedo = true
[sub_resource type="TorusMesh" id="TorusMesh_snv14"]
material = SubResource("StandardMaterial3D_6nwqg")
outer_radius = 0.6
rings = 16
ring_segments = 4
[sub_resource type="MultiMesh" id="MultiMesh_qgvb6"]
transform_format = 1
use_colors = true
mesh = SubResource("TorusMesh_snv14")
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ttf4x"]
vertex_color_use_as_albedo = true
[sub_resource type="SphereMesh" id="SphereMesh_gf0qy"]
material = SubResource("StandardMaterial3D_ttf4x")
[sub_resource type="MultiMesh" id="MultiMesh_ryke3"]
transform_format = 1
use_colors = true
mesh = SubResource("SphereMesh_gf0qy")
[node name="TrialEnvironment" type="WorldEnvironment"]
environment = SubResource("Environment_7eeov")
camera_attributes = SubResource("CameraAttributesPractical_dr8pw")
[node name="UI" type="Control" parent="."]
layout_mode = 3
anchors_preset = 0
offset_right = 40.0
offset_bottom = 40.0
[node name="UnitSelector" type="Control" parent="UI" node_paths=PackedStringArray("_multiMesh")]
layout_mode = 3
anchors_preset = 0
script = ExtResource("4_p4mcv")
_multiMesh = NodePath("MultiMeshInstance3D")
[node name="MultiMeshInstance3D" type="MultiMeshInstance3D" parent="UI/UnitSelector"]
multimesh = SubResource("MultiMesh_qgvb6")
[node name="Button" type="Button" parent="UI"]
layout_mode = 0
offset_left = 34.0
offset_top = 590.0
offset_right = 256.0
offset_bottom = 644.0
text = "Try to drag from
here betch"
[node name="SelectedUnitsCounter" type="Label" parent="UI"]
layout_mode = 0
offset_right = 40.0
offset_bottom = 23.0
text = "Selected Units: 0"
script = ExtResource("2_v1hal")
[node name="CameraController" type="Node3D" parent="." node_paths=PackedStringArray("_camera_node")]
script = ExtResource("2_5d5ij")
_camera_node = NodePath("Camera3D")
zoom_backward_limit = 200
zoom_speed_multiplier = 200
scroll_speed = 8.0
[node name="Camera3D" type="Camera3D" parent="CameraController"]
transform = Transform3D(1, 0, 0, 0, 0.5, 0.866026, 0, -0.866025, 0.5, 0, 10, 6)
[node name="CursorManager" type="Node3D" parent="CameraController/Camera3D"]
script = ExtResource("3_wj6q3")
heightCursorScene = ExtResource("6_l3cmy")
[node name="Node3D" type="Node3D" parent="."]
[node name="ShipSpawner" type="Node3D" parent="Node3D"]
script = ExtResource("3_1buft")
spread = 3.0
dim_size = 3
[node name="Children" type="Node3D" parent="Node3D/ShipSpawner"]
[node name="OmniLight3D" type="OmniLight3D" parent="Node3D/ShipSpawner"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.17854, 4.90537, -4.55605)
light_color = Color(0.898039, 0, 0.901961, 1)
light_energy = 4.876
omni_range = 11.835
[node name="Units" type="Node" parent="Node3D"]
[node name="Utils" type="Node" parent="."]
[node name="ScreenEdgeCameraMove" parent="Utils" instance=ExtResource("9_4govk")]
[node name="BlueNoiseGen" type="Node3D" parent="."]
script = ExtResource("8_myra8")
SectorCountAxis = 10
[node name="Node3D" type="MultiMeshInstance3D" parent="BlueNoiseGen"]
multimesh = SubResource("MultiMesh_ryke3")
script = ExtResource("9_0em1f")
[connection signal="OnSelectedUnitsChanged" from="UI/UnitSelector" to="UI/SelectedUnitsCounter" method="_on_selected_count_change"]
[connection signal="distance_changed" from="CameraController" to="UI/UnitSelector" method="OnCameraDistanceChanged"]
[connection signal="OnRightClick" from="CameraController/Camera3D/CursorManager" to="UI/UnitSelector" method="MoveSelectedUnitsTowards"]
[connection signal="done_instancing" from="Node3D/ShipSpawner" to="UI/UnitSelector" method="OnSceneDoneInstancing" flags=6]
[connection signal="edge_detected_process" from="Utils/ScreenEdgeCameraMove" to="CameraController" method="on_edge_move"]