]> Untitled Git - lightcycles.git/blob - map/world.tscn
6cc47f781d3ba1c0491e6f1fb10905b93683b48e
[lightcycles.git] / map / world.tscn
1 [gd_scene load_steps=9 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
7 [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ul8mq"]
8 albedo_color = Color(0.199732, 0.199732, 0.199732, 1)
9 albedo_texture = ExtResource("2_sxhh7")
10 uv1_scale = Vector3(0.5, 0.5, 0.5)
11 uv1_triplanar = true
12 uv1_world_triplanar = true
13 texture_filter = 0
14
15 [sub_resource type="PlaneMesh" id="PlaneMesh_43sel"]
16 material = SubResource("StandardMaterial3D_ul8mq")
17 size = Vector2(50, 50)
18
19 [sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_t6tpe"]
20 data = PackedVector3Array(25, 0, 25, -25, 0, 25, 25, 0, -25, -25, 0, 25, -25, 0, -25, 25, 0, -25)
21
22 [sub_resource type="PlaneMesh" id="PlaneMesh_0exak"]
23 size = Vector2(10, 50)
24
25 [sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_qttgn"]
26 data = PackedVector3Array(5, 0, 25, -5, 0, 25, 5, 0, -25, -5, 0, 25, -5, 0, -25, 5, 0, -25)
27
28 [node name="World" type="Node3D"]
29 script = ExtResource("1_mjcfj")
30
31 [node name="map" type="Node3D" parent="."]
32
33 [node name="DirectionalLight3D" type="DirectionalLight3D" parent="map"]
34 transform = Transform3D(-0.866025, -0.433013, 0.25, 0, 0.5, 0.866025, -0.5, 0.75, -0.433013, 0, 10, 0)
35 shadow_enabled = true
36
37 [node name="ground" type="MeshInstance3D" parent="map"]
38 mesh = SubResource("PlaneMesh_43sel")
39 skeleton = NodePath("../..")
40
41 [node name="StaticBody3D" type="StaticBody3D" parent="map/ground"]
42
43 [node name="CollisionShape3D" type="CollisionShape3D" parent="map/ground/StaticBody3D"]
44 shape = SubResource("ConcavePolygonShape3D_t6tpe")
45
46 [node name="wall" type="MeshInstance3D" parent="map"]
47 transform = Transform3D(-4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0, 1, 25, 5, 0)
48 mesh = SubResource("PlaneMesh_0exak")
49 skeleton = NodePath("../..")
50
51 [node name="StaticBody3D" type="StaticBody3D" parent="map/wall"]
52
53 [node name="CollisionShape3D" type="CollisionShape3D" parent="map/wall/StaticBody3D"]
54 shape = SubResource("ConcavePolygonShape3D_qttgn")
55
56 [node name="wall2" type="MeshInstance3D" parent="map"]
57 transform = Transform3D(4.37114e-08, 1, 8.74228e-08, 1, -4.37114e-08, 0, 3.82137e-15, 8.74228e-08, -1, -25, 5, 0)
58 mesh = SubResource("PlaneMesh_0exak")
59 skeleton = NodePath("../..")
60
61 [node name="StaticBody3D" type="StaticBody3D" parent="map/wall2"]
62
63 [node name="CollisionShape3D" type="CollisionShape3D" parent="map/wall2/StaticBody3D"]
64 shape = SubResource("ConcavePolygonShape3D_qttgn")
65
66 [node name="wall3" type="MeshInstance3D" parent="map"]
67 transform = Transform3D(-5.73206e-15, -1.31134e-07, 1, 1, -4.37114e-08, 0, 4.37114e-08, 1, 1.31134e-07, 0, 5, -25)
68 mesh = SubResource("PlaneMesh_0exak")
69 skeleton = NodePath("../..")
70
71 [node name="StaticBody3D" type="StaticBody3D" parent="map/wall3"]
72
73 [node name="CollisionShape3D" type="CollisionShape3D" parent="map/wall3/StaticBody3D"]
74 shape = SubResource("ConcavePolygonShape3D_qttgn")
75
76 [node name="wall4" type="MeshInstance3D" parent="map"]
77 transform = Transform3D(1.91069e-15, 4.37114e-08, -1, 1, -4.37114e-08, 0, -4.37114e-08, -1, -4.37114e-08, 0, 5, 25)
78 mesh = SubResource("PlaneMesh_0exak")
79 skeleton = NodePath("../..")
80
81 [node name="StaticBody3D" type="StaticBody3D" parent="map/wall4"]
82
83 [node name="CollisionShape3D" type="CollisionShape3D" parent="map/wall4/StaticBody3D"]
84 shape = SubResource("ConcavePolygonShape3D_qttgn")
85
86 [node name="player" parent="." instance=ExtResource("1_3tqxd")]
87 transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -16)
88 distance = 5.0
89
90 [connection signal="playerDestroyed" from="player" to="." method="_on_player_destroyed"]
91 [connection signal="playerRestart" from="player" to="." method="_on_player_player_restart"]
92 [connection signal="playerTurn" from="player" to="." method="_player_add_wall"]