From fd057deff593d501f4c94c92023fee0112b65bc0 Mon Sep 17 00:00:00 2001 From: Shea Frembling Date: Wed, 25 Mar 2026 13:01:19 -0500 Subject: [PATCH] Add four walls to surround player --- Testing/Materials/prototype_floor.tres | 7 ++++ Testing/floor_prototype.tscn | 44 +++++++++++++++++++------- 2 files changed, 40 insertions(+), 11 deletions(-) create mode 100644 Testing/Materials/prototype_floor.tres diff --git a/Testing/Materials/prototype_floor.tres b/Testing/Materials/prototype_floor.tres new file mode 100644 index 0000000..6de44ea --- /dev/null +++ b/Testing/Materials/prototype_floor.tres @@ -0,0 +1,7 @@ +[gd_resource type="StandardMaterial3D" format=3 uid="uid://014h3kro2gsv"] + +[ext_resource type="Texture2D" uid="uid://domgof2sjx7qt" path="res://Assets/External/kenney_prototype-textures/texture_08.svg" id="1_0wcts"] + +[resource] +albedo_texture = ExtResource("1_0wcts") +uv1_scale = Vector3(8, 8, 8) diff --git a/Testing/floor_prototype.tscn b/Testing/floor_prototype.tscn index a8074f6..5df40d7 100644 --- a/Testing/floor_prototype.tscn +++ b/Testing/floor_prototype.tscn @@ -2,7 +2,7 @@ [ext_resource type="PackedScene" uid="uid://diipi3w18rk4v" path="res://Player/player_controller.tscn" id="1_fau6w"] [ext_resource type="Texture2D" uid="uid://fnlm5dao21d8" path="res://Assets/skybox-panorama.png" id="1_gfyfu"] -[ext_resource type="Texture2D" uid="uid://domgof2sjx7qt" path="res://Assets/External/kenney_prototype-textures/texture_08.svg" id="2_7f328"] +[ext_resource type="Material" uid="uid://014h3kro2gsv" path="res://Testing/Materials/prototype_floor.tres" id="2_7f328"] [sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_7f328"] panorama = ExtResource("1_gfyfu") @@ -19,13 +19,9 @@ ssao_enabled = true sdfgi_enabled = true glow_enabled = true -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_6h3kg"] -albedo_texture = ExtResource("2_7f328") -uv1_scale = Vector3(8, 8, 8) - [node name="FloorPrototype" type="Node" unique_id=1720046870] -[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=315302175] +[node name="Sun" type="DirectionalLight3D" parent="." unique_id=315302175] transform = Transform3D(-0.8660254, -0.43301278, 0.25, 0, 0.49999997, 0.86602545, -0.50000006, 0.75, -0.43301266, 0, 0, 0) shadow_enabled = true @@ -34,10 +30,6 @@ environment = SubResource("Environment_7f328") [node name="WorldGeometry" type="Node" parent="." unique_id=1261921789] -[node name="CSGBox3D" type="CSGBox3D" parent="WorldGeometry" unique_id=175577734] -transform = Transform3D(31.289293, 0, 0, 0, 4.969168, 0, 0, 0, 1.000001, 0, 2.6095836, 4.2897425) -collision_layer = 2 - [node name="Floor" type="Node" parent="WorldGeometry" unique_id=693029045] [node name="Floor" type="CSGBox3D" parent="WorldGeometry/Floor" unique_id=2080275060] @@ -45,7 +37,37 @@ use_collision = true collision_layer = 2 collision_mask = 3 size = Vector3(100, 0.25, 100) -material = SubResource("StandardMaterial3D_6h3kg") +material = ExtResource("2_7f328") + +[node name="Walls" type="Node" parent="WorldGeometry" unique_id=1363002484] + +[node name="WallOne" type="CSGBox3D" parent="WorldGeometry/Walls" unique_id=175577734] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 7.625, 5.2575006) +use_collision = true +collision_layer = 2 +size = Vector3(30, 15, 1) +material = ExtResource("2_7f328") + +[node name="WallTwo" type="CSGBox3D" parent="WorldGeometry/Walls" unique_id=334111110] +transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 14.443025, 7.625, -10.138264) +use_collision = true +collision_layer = 2 +size = Vector3(30, 15, 1) +material = ExtResource("2_7f328") + +[node name="WallThree" type="CSGBox3D" parent="WorldGeometry/Walls" unique_id=343370712] +transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, -0.015110016, 7.625, -24.639809) +use_collision = true +collision_layer = 2 +size = Vector3(30, 15, 1) +material = ExtResource("2_7f328") + +[node name="WallFour" type="CSGBox3D" parent="WorldGeometry/Walls" unique_id=5253357] +transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, -14.458136, 7.625, -9.244044) +use_collision = true +collision_layer = 2 +size = Vector3(30, 15, 1) +material = ExtResource("2_7f328") [node name="PlayerController" parent="." unique_id=1462541278 instance=ExtResource("1_fau6w")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.125, 0)