-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrts.tscn
93 lines (73 loc) · 3.4 KB
/
rts.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
[gd_scene load_steps=11 format=3 uid="uid://dkhg8e00d02f2"]
[ext_resource type="Script" path="res://scripts/rts.gd" id="1_h4fj1"]
[ext_resource type="Script" path="res://scripts/Button.gd" id="2_dlc7e"]
[ext_resource type="Script" path="res://scripts/HUD.gd" id="2_xl4ej"]
[ext_resource type="ArrayMesh" uid="uid://gmytdjp2bcsq" path="res://level_mesh.res" id="3_1cas0"]
[ext_resource type="NavigationMesh" uid="uid://pum0shrcskft" path="res://rts.res" id="4_u115n"]
[ext_resource type="ArrayMesh" uid="uid://prwe6io8p1iv" path="res://robot.res" id="5_ple0n"]
[ext_resource type="Script" path="res://scripts/character.gd" id="6_lipoc"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_ps07l"]
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="Sky" id="Sky_baxfs"]
sky_material = SubResource("ProceduralSkyMaterial_ps07l")
[sub_resource type="Environment" id="Environment_c0if4"]
background_mode = 2
sky = SubResource("Sky_baxfs")
tonemap_mode = 3
tonemap_white = 6.0
[node name="World1" type="Node3D"]
_import_path = NodePath(".")
script = ExtResource("1_h4fj1")
[node name="HUD" type="Node2D" parent="."]
unique_name_in_owner = true
script = ExtResource("2_xl4ej")
[node name="Button" type="Button" parent="HUD"]
offset_right = 92.0
offset_bottom = 31.0
keep_pressed_outside = true
text = "Swap"
script = ExtResource("2_dlc7e")
[node name="Button2" type="Button" parent="HUD"]
offset_left = 96.0
offset_top = 1.0
offset_right = 199.0
offset_bottom = 32.0
keep_pressed_outside = true
text = "Both"
script = ExtResource("2_dlc7e")
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_c0if4")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(-0.723713, -0.678436, -0.12635, -0.277002, 0.11789, 0.95361, -0.632068, 0.725139, -0.273247, 10.0773, 5.02381, 0)
shadow_enabled = true
directional_shadow_mode = 0
directional_shadow_fade_start = 1.0
directional_shadow_max_distance = 35.0
[node name="NavigationRegion3D" type="NavigationRegion3D" parent="."]
navigation_mesh = ExtResource("4_u115n")
[node name="LevelMesh" type="MeshInstance3D" parent="NavigationRegion3D"]
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, 0, -0.0452547, 0)
mesh = ExtResource("3_1cas0")
[node name="CameraBase" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.07475, 0, 1.96678)
[node name="Camera3D" type="Camera3D" parent="CameraBase"]
transform = Transform3D(-0.560554, -0.429252, 0.708182, 0.106298, 0.8108, 0.575591, -0.821267, 0.397928, -0.408869, 18.091, 14.744, -7.017)
fov = 50.0
near = 0.1
[node name="RobotBase" type="Marker3D" parent="."]
script = ExtResource("6_lipoc")
[node name="Robot" type="MeshInstance3D" parent="RobotBase"]
transform = Transform3D(-0.5, 0, -7.54979e-08, 0, 1, 0, 7.54979e-08, 0, -0.5, 0, 1, 0)
gi_mode = 2
mesh = ExtResource("5_ple0n")
[node name="NavigationAgent3D" type="NavigationAgent3D" parent="RobotBase"]
path_desired_distance = 0.1
[node name="RobotBase2" type="Marker3D" parent="."]
script = ExtResource("6_lipoc")
[node name="Robot" type="MeshInstance3D" parent="RobotBase2"]
transform = Transform3D(-0.5, 0, -7.54979e-08, 0, 1, 0, 7.54979e-08, 0, -0.5, 0, 1, 0)
gi_mode = 2
mesh = ExtResource("5_ple0n")
[node name="NavigationAgent3D" type="NavigationAgent3D" parent="RobotBase2"]
path_desired_distance = 0.1