]> Untitled Git - lightcycles.git/blob - map/world.tscn
Updated player walls to be same color as player
[lightcycles.git] / map / world.tscn
1 [gd_scene load_steps=10 format=3 uid="uid://6tmryoxhs3yq"]
2
3 [ext_resource type="PackedScene" uid="uid://dysxftv7xniv0" path="res://player/player.tscn" id="1_3tqxd"]
4 [ext_resource type="Script" path="res://map/world.gd" id="1_mjcfj"]
5 [ext_resource type="Texture2D" uid="uid://cp8pv6wya3ep2" path="res://textures/untextured.png" id="2_sxhh7"]
6 [ext_resource type="Script" path="res://map/split_screen_container.gd" id="4_nc5g8"]
7
8 [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ul8mq"]
9 albedo_color = Color(0.199732, 0.199732, 0.199732, 1)
10 albedo_texture = ExtResource("2_sxhh7")
11 uv1_scale = Vector3(0.5, 0.5, 0.5)
12 uv1_triplanar = true
13 uv1_world_triplanar = true
14 texture_filter = 0
15
16 [sub_resource type="PlaneMesh" id="PlaneMesh_43sel"]
17 material = SubResource("StandardMaterial3D_ul8mq")
18 size = Vector2(50, 50)
19
20 [sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_t6tpe"]
21 data = PackedVector3Array(25, 0, 25, -25, 0, 25, 25, 0, -25, -25, 0, 25, -25, 0, -25, 25, 0, -25)
22
23 [sub_resource type="PlaneMesh" id="PlaneMesh_0exak"]
24 size = Vector2(10, 50)
25
26 [sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_qttgn"]
27 data = PackedVector3Array(5, 0, 25, -5, 0, 25, 5, 0, -25, -5, 0, 25, -5, 0, -25, 5, 0, -25)
28
29 [node name="World" type="Node3D"]
30 script = ExtResource("1_mjcfj")
31
32 [node name="map" type="Node3D" parent="."]
33
34 [node name="DirectionalLight3D" type="DirectionalLight3D" parent="map"]
35 transform = Transform3D(-0.866025, -0.433013, 0.25, 0, 0.5, 0.866025, -0.5, 0.75, -0.433013, 0, 10, 0)
36 shadow_enabled = true
37
38 [node name="ground" type="MeshInstance3D" parent="map"]
39 mesh = SubResource("PlaneMesh_43sel")
40 skeleton = NodePath("../..")
41
42 [node name="StaticBody3D" type="StaticBody3D" parent="map/ground"]
43
44 [node name="CollisionShape3D" type="CollisionShape3D" parent="map/ground/StaticBody3D"]
45 shape = SubResource("ConcavePolygonShape3D_t6tpe")
46
47 [node name="wall" type="MeshInstance3D" parent="map"]
48 transform = Transform3D(-4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0, 1, 25, 5, 0)
49 mesh = SubResource("PlaneMesh_0exak")
50 skeleton = NodePath("../..")
51
52 [node name="StaticBody3D" type="StaticBody3D" parent="map/wall"]
53
54 [node name="CollisionShape3D" type="CollisionShape3D" parent="map/wall/StaticBody3D"]
55 shape = SubResource("ConcavePolygonShape3D_qttgn")
56
57 [node name="wall2" type="MeshInstance3D" parent="map"]
58 transform = Transform3D(4.37114e-08, 1, 8.74228e-08, 1, -4.37114e-08, 0, 3.82137e-15, 8.74228e-08, -1, -25, 5, 0)
59 mesh = SubResource("PlaneMesh_0exak")
60 skeleton = NodePath("../..")
61
62 [node name="StaticBody3D" type="StaticBody3D" parent="map/wall2"]
63
64 [node name="CollisionShape3D" type="CollisionShape3D" parent="map/wall2/StaticBody3D"]
65 shape = SubResource("ConcavePolygonShape3D_qttgn")
66
67 [node name="wall3" type="MeshInstance3D" parent="map"]
68 transform = Transform3D(-5.73206e-15, -1.31134e-07, 1, 1, -4.37114e-08, 0, 4.37114e-08, 1, 1.31134e-07, 0, 5, -25)
69 mesh = SubResource("PlaneMesh_0exak")
70 skeleton = NodePath("../..")
71
72 [node name="StaticBody3D" type="StaticBody3D" parent="map/wall3"]
73
74 [node name="CollisionShape3D" type="CollisionShape3D" parent="map/wall3/StaticBody3D"]
75 shape = SubResource("ConcavePolygonShape3D_qttgn")
76
77 [node name="wall4" type="MeshInstance3D" parent="map"]
78 transform = Transform3D(1.91069e-15, 4.37114e-08, -1, 1, -4.37114e-08, 0, -4.37114e-08, -1, -4.37114e-08, 0, 5, 25)
79 mesh = SubResource("PlaneMesh_0exak")
80 skeleton = NodePath("../..")
81
82 [node name="StaticBody3D" type="StaticBody3D" parent="map/wall4"]
83
84 [node name="CollisionShape3D" type="CollisionShape3D" parent="map/wall4/StaticBody3D"]
85 shape = SubResource("ConcavePolygonShape3D_qttgn")
86
87 [node name="Player1" parent="." instance=ExtResource("1_3tqxd")]
88 transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -16)
89 distance = 5.0
90
91 [node name="Player2" parent="." instance=ExtResource("1_3tqxd")]
92 transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 16)
93 color = Color(1, 0, 0, 1)
94 distance = 5.0
95
96 [node name="SplitScreenContainer" type="GridContainer" parent="."]
97 custom_minimum_size = Vector2(3456, 1944)
98 anchors_preset = 15
99 anchor_right = 1.0
100 anchor_bottom = 1.0
101 grow_horizontal = 2
102 grow_vertical = 2
103 script = ExtResource("4_nc5g8")
104
105 [node name="SubViewportContainer" type="SubViewportContainer" parent="SplitScreenContainer"]
106 layout_mode = 2
107 size_flags_horizontal = 3
108 size_flags_vertical = 3
109 stretch = true
110
111 [node name="SubViewport" type="SubViewport" parent="SplitScreenContainer/SubViewportContainer"]
112 handle_input_locally = false
113 size = Vector2i(2, 2)
114 render_target_update_mode = 4
115
116 [node name="SubViewportContainer2" type="SubViewportContainer" parent="SplitScreenContainer"]
117 layout_mode = 2
118 size_flags_horizontal = 3
119 size_flags_vertical = 3
120 stretch = true
121
122 [node name="SubViewport2" type="SubViewport" parent="SplitScreenContainer/SubViewportContainer2"]
123 handle_input_locally = false
124 size = Vector2i(2, 2)
125 render_target_update_mode = 4
126
127 [connection signal="playerDestroyed" from="Player1" to="." method="_on_player_destroyed"]
128 [connection signal="playerRestart" from="Player1" to="." method="_on_player_player_restart"]
129 [connection signal="playerTurn" from="Player1" to="." method="_player_add_wall"]
130 [connection signal="playerDestroyed" from="Player2" to="." method="_on_player_destroyed"]
131 [connection signal="playerRestart" from="Player2" to="." method="_on_player_player_restart"]
132 [connection signal="playerTurn" from="Player2" to="." method="_player_add_wall"]