105 lines
3.2 KiB
Plaintext
105 lines
3.2 KiB
Plaintext
[gd_scene format=3 uid="uid://clevel2xm8n4p"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/Level.gd" id="1_level"]
|
|
|
|
[sub_resource type="Environment" id="Environment_1"]
|
|
background_mode = 1
|
|
background_color = Color(0.04, 0.04, 0.08, 1)
|
|
ambient_light_source = 2
|
|
ambient_light_color = Color(0.35, 0.35, 0.5, 1)
|
|
ambient_light_energy = 0.6
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_1"]
|
|
albedo_color = Color(0.12, 0.12, 0.18, 1)
|
|
roughness = 1.0
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_2"]
|
|
albedo_color = Color(0.28, 0.28, 0.42, 1)
|
|
roughness = 0.9
|
|
metallic = 0.1
|
|
|
|
[sub_resource type="PlaneMesh" id="PlaneMesh_1"]
|
|
size = Vector2(28, 28)
|
|
subdivide_width = 8
|
|
subdivide_depth = 8
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_1"]
|
|
size = Vector3(28, 0.2, 28)
|
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_1"]
|
|
size = Vector3(30.4, 1.0, 1.2)
|
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_2"]
|
|
size = Vector3(1.2, 1.0, 28.0)
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_2"]
|
|
size = Vector3(30.4, 1.0, 1.2)
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_3"]
|
|
size = Vector3(1.2, 1.0, 28.0)
|
|
|
|
[node name="Level" type="Node3D"]
|
|
script = ExtResource("1_level")
|
|
|
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
|
environment = SubResource("Environment_1")
|
|
|
|
[node name="Sun" type="DirectionalLight3D" parent="."]
|
|
rotation_degrees = Vector3(-55, -25, 0)
|
|
light_energy = 1.8
|
|
shadow_enabled = true
|
|
|
|
[node name="Floor" type="MeshInstance3D" parent="."]
|
|
mesh = SubResource("PlaneMesh_1")
|
|
material_override = SubResource("StandardMaterial3D_1")
|
|
|
|
[node name="FloorBody" type="StaticBody3D" parent="."]
|
|
position = Vector3(0, -0.1, 0)
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="FloorBody"]
|
|
shape = SubResource("BoxShape3D_1")
|
|
|
|
[node name="WallNorth" type="StaticBody3D" parent="."]
|
|
position = Vector3(0, 0.5, -14.6)
|
|
metadata/is_wall = true
|
|
|
|
[node name="Mesh" type="MeshInstance3D" parent="WallNorth"]
|
|
mesh = SubResource("BoxMesh_1")
|
|
material_override = SubResource("StandardMaterial3D_2")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="WallNorth"]
|
|
shape = SubResource("BoxShape3D_2")
|
|
|
|
[node name="WallSouth" type="StaticBody3D" parent="."]
|
|
position = Vector3(0, 0.5, 14.6)
|
|
metadata/is_wall = true
|
|
|
|
[node name="Mesh" type="MeshInstance3D" parent="WallSouth"]
|
|
mesh = SubResource("BoxMesh_1")
|
|
material_override = SubResource("StandardMaterial3D_2")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="WallSouth"]
|
|
shape = SubResource("BoxShape3D_2")
|
|
|
|
[node name="WallEast" type="StaticBody3D" parent="."]
|
|
position = Vector3(14.6, 0.5, 0)
|
|
metadata/is_wall = true
|
|
|
|
[node name="Mesh" type="MeshInstance3D" parent="WallEast"]
|
|
mesh = SubResource("BoxMesh_2")
|
|
material_override = SubResource("StandardMaterial3D_2")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="WallEast"]
|
|
shape = SubResource("BoxShape3D_3")
|
|
|
|
[node name="WallWest" type="StaticBody3D" parent="."]
|
|
position = Vector3(-14.6, 0.5, 0)
|
|
metadata/is_wall = true
|
|
|
|
[node name="Mesh" type="MeshInstance3D" parent="WallWest"]
|
|
mesh = SubResource("BoxMesh_2")
|
|
material_override = SubResource("StandardMaterial3D_2")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="WallWest"]
|
|
shape = SubResource("BoxShape3D_3")
|