-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainGame.tscn
More file actions
68 lines (50 loc) · 2.61 KB
/
MainGame.tscn
File metadata and controls
68 lines (50 loc) · 2.61 KB
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
[gd_scene load_steps=7 format=3 uid="uid://d3lij6k8jvv7h"]
[ext_resource type="PackedScene" uid="uid://dfwsc20734kqy" path="res://character_body_3d.tscn" id="1_nkdae"]
[ext_resource type="Script" path="res://main_game.gd" id="1_umi7a"]
[sub_resource type="Environment" id="Environment_g3kck"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_5rssi"]
albedo_color = Color(0.254902, 0.909804, 0.941176, 0.937255)
[sub_resource type="PlaneMesh" id="PlaneMesh_m36x0"]
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_x26i6"]
points = PackedVector3Array(1.01587, 0.015873, 1.01587, -1.01587, -0.015873, -1.01587, -1.01587, 0.015873, -1.01587, 1.01587, -0.015873, -1.01587, -1.01587, -0.015873, 1.01587, -1.01587, 0.015873, 1.01587, 1.01587, 0.015873, -1.01587, 1.01587, -0.015873, 1.01587)
[node name="Node3D" type="Node3D"]
script = ExtResource("1_umi7a")
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_g3kck")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 10.5928, 0)
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
transform = Transform3D(20, 0, 0, 0, 1, 0, 0, 0, 20, 0, 0, 0)
material_override = SubResource("StandardMaterial3D_5rssi")
mesh = SubResource("PlaneMesh_m36x0")
[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"]
shape = SubResource("ConvexPolygonShape3D_x26i6")
[node name="Character3d" parent="." instance=ExtResource("1_nkdae")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.58503, 0)
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="Host" type="Button" parent="CanvasLayer"]
offset_left = 11.0
offset_top = 14.0
offset_right = 281.0
offset_bottom = 134.0
text = "Host"
[node name="Join" type="Button" parent="CanvasLayer"]
offset_left = 306.0
offset_top = 19.0
offset_right = 569.0
offset_bottom = 137.0
text = "Join
"
[node name="StartGame" type="Button" parent="CanvasLayer"]
offset_left = 584.0
offset_top = 22.0
offset_right = 835.0
offset_bottom = 134.0
text = "Start Game"
[node name="MultiplayerSpawner" type="MultiplayerSpawner" parent="."]
_spawnable_scenes = PackedStringArray("res://character_body_3d.tscn")
spawn_path = NodePath("..")
[connection signal="pressed" from="CanvasLayer/Host" to="." method="_on_host_pressed"]
[connection signal="pressed" from="CanvasLayer/Join" to="." method="_on_join_pressed"]
[connection signal="pressed" from="CanvasLayer/StartGame" to="." method="_on_start_game_pressed"]