-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainScene.tscn
107 lines (82 loc) · 3.19 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
[gd_scene load_steps=10 format=2]
[ext_resource path="res://MainScene.gd" type="Script" id=1]
[ext_resource path="res://aerial_rocks_02_diff_4k.jpg" type="Texture" id=2]
[sub_resource type="ProceduralSky" id=1]
[sub_resource type="Environment" id=2]
background_mode = 2
background_sky = SubResource( 1 )
[sub_resource type="BoxShape" id=3]
extents = Vector3( 50, 0.25, 50 )
[sub_resource type="PlaneMesh" id=4]
size = Vector2( 100, 100 )
[sub_resource type="SpatialMaterial" id=5]
albedo_texture = ExtResource( 2 )
[sub_resource type="CapsuleShape" id=6]
radius = 0.25
[sub_resource type="CapsuleMesh" id=7]
radius = 0.25
[node name="Node" type="Node"]
script = ExtResource( 1 )
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource( 2 )
[node name="DirectionalLight" type="DirectionalLight" parent="."]
transform = Transform( 0.942496, -0.163932, -0.291253, 0.331754, 0.35325, 0.874731, -0.0405109, -0.921054, 0.387322, 0, 29.9334, 0 )
shadow_enabled = true
[node name="Floor" type="StaticBody" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2.03388, 0 )
[node name="CollisionShape" type="CollisionShape" parent="Floor"]
shape = SubResource( 3 )
[node name="MeshInstance" type="MeshInstance" parent="Floor"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.235271, 0 )
mesh = SubResource( 4 )
material/0 = SubResource( 5 )
[node name="SessionTypeLbl" type="Label" parent="."]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -20.0
margin_right = 20.0
margin_bottom = 14.0
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "None"
align = 1
[node name="Menu" type="Control" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
[node name="HBoxContainer" type="HBoxContainer" parent="Menu"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -103.0
margin_top = -7.0
margin_right = 112.0
margin_bottom = 13.0
rect_pivot_offset = Vector2( 0.5, 0.5 )
[node name="ServerButton" type="Button" parent="Menu/HBoxContainer"]
margin_right = 103.0
margin_bottom = 20.0
custom_colors/font_color = Color( 0, 1, 0.262745, 1 )
text = "Start as Server"
[node name="VSeparator" type="VSeparator" parent="Menu/HBoxContainer"]
margin_left = 107.0
margin_right = 111.0
margin_bottom = 20.0
[node name="ClientButton" type="Button" parent="Menu/HBoxContainer"]
margin_left = 115.0
margin_right = 215.0
margin_bottom = 20.0
custom_colors/font_color = Color( 0, 0.988235, 1, 1 )
text = "Start as Client"
[node name="Camera" type="Camera" parent="."]
transform = Transform( -0.707107, 0.353553, -0.612372, 0, 0.866025, 0.5, 0.707107, 0.353553, -0.612372, -71.053, 66.4778, -71.053 )
projection = 1
size = 50.0
far = 2000.0
[node name="StaticBody" type="StaticBody" parent="."]
transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, -0.772334, 2.46257 )
[node name="CollisionShape" type="CollisionShape" parent="StaticBody"]
shape = SubResource( 6 )
[node name="MeshInstance" type="MeshInstance" parent="StaticBody"]
mesh = SubResource( 7 )
[connection signal="pressed" from="Menu/HBoxContainer/ServerButton" to="." method="_start_server"]
[connection signal="pressed" from="Menu/HBoxContainer/ClientButton" to="." method="_start_client"]