fix(scene): replace BoxShape3D.new() with SubResource blocks in test_level
SubResource UIDs: box_floor, box_wall_north, box_wall_east, box_wall_west Removes parse error at line 9
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
[gd_scene format=3]
|
[gd_scene load_steps=2 format=3]
|
||||||
|
|
||||||
[node name="TestLevel" type="Node3D"]
|
[node name="TestLevel" type="Node3D"]
|
||||||
|
|
||||||
@@ -6,32 +6,31 @@
|
|||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.1, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.1, 0)
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticFloor"]
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticFloor"]
|
||||||
shape = BoxShape3D.new()
|
shape = SubResource("uid://box_floor")
|
||||||
|
|
||||||
[node name="WallN" type="StaticBody3D" parent="."]
|
[node name="WallN" type="StaticBody3D" parent="."]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -15)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -15)
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="WallN"]
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="WallN"]
|
||||||
shape = BoxShape3D.new()
|
shape = SubResource("uid://box_wall_north")
|
||||||
|
|
||||||
[node name="WallE" type="StaticBody3D" parent="."]
|
[node name="WallE" type="StaticBody3D" parent="."]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 15, 3, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 15, 3, 0)
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="WallE"]
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="WallE"]
|
||||||
shape = BoxShape3D.new()
|
shape = SubResource("uid://box_wall_east")
|
||||||
|
|
||||||
[node name="WallW" type="StaticBody3D" parent="."]
|
[node name="WallW" type="StaticBody3D" parent="."]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -15, 3, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -15, 3, 0)
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="WallW"]
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="WallW"]
|
||||||
shape = BoxShape3D.new()
|
shape = SubResource("uid://box_wall_west")
|
||||||
|
|
||||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||||
transform = Transform3D(0.92388, -0.25, 0.288675, 0, 0.866025, 0.5, -0.382683, -0.433013, 0.75, 0, 8, 0)
|
transform = Transform3D(0.92388, -0.25, 0.288675, 0, 0.866025, 0.5, -0.382683, -0.433013, 0.75, 0, 8, 0)
|
||||||
light_color = Color(1, 0.95, 0.85, 1)
|
light_color = Color(1, 0.95, 0.85, 1)
|
||||||
light_energy = 1.0
|
light_energy = 1.0
|
||||||
shadow_enabled = true
|
shadow_enabled = true
|
||||||
sky_mode = 1
|
|
||||||
|
|
||||||
[node name="PlayerSpawn" type="Node3D" parent="."]
|
[node name="PlayerSpawn" type="Node3D" parent="."]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 8)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 8)
|
||||||
@@ -56,3 +55,15 @@ text = "WASD Move | Sprint=Shift | Slide=Ctrl+S | Double-Jump=Space twice | Dash
|
|||||||
current = true
|
current = true
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.7, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.7, 0)
|
||||||
fov = 90.0
|
fov = 90.0
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="box_floor"]
|
||||||
|
size = Vector3(30, 0.4, 30)
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="box_wall_north"]
|
||||||
|
size = Vector3(30, 6, 0.4)
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="box_wall_east"]
|
||||||
|
size = Vector3(30, 6, 0.4)
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="box_wall_west"]
|
||||||
|
size = Vector3(30, 6, 0.4)
|
||||||
|
|||||||
Reference in New Issue
Block a user