diff --git a/scenes/interactables/screens/debug_screen.tscn b/scenes/interactables/screens/debug_screen.tscn new file mode 100644 index 0000000..e400ceb --- /dev/null +++ b/scenes/interactables/screens/debug_screen.tscn @@ -0,0 +1,33 @@ +[gd_scene format=3 uid="uid://cfk83h5xyhmor"] + +[node name="DebugScreen" type="Control"] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="ColorRect" type="ColorRect" parent="."] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +color = Color(0, 1, 0.517647, 1) + +[node name="Button" type="Button" parent="."] +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -22.0 +offset_top = -15.5 +offset_right = 22.0 +offset_bottom = 15.5 +grow_horizontal = 2 +grow_vertical = 2 +text = "TEST" diff --git a/scenes/interactables/task_terminal.tscn b/scenes/interactables/task_terminal.tscn new file mode 100644 index 0000000..d1a4094 --- /dev/null +++ b/scenes/interactables/task_terminal.tscn @@ -0,0 +1,57 @@ +[gd_scene load_steps=10 format=3 uid="uid://b8bvidqu7tmfs"] + +[ext_resource type="PackedScene" uid="uid://cfk83h5xyhmor" path="res://scenes/interactables/screens/debug_screen.tscn" id="1_q1qkj"] + +[sub_resource type="BoxShape3D" id="BoxShape3D_sh78v"] + +[sub_resource type="BoxMesh" id="BoxMesh_t4f0s"] + +[sub_resource type="PrismMesh" id="PrismMesh_law6y"] + +[sub_resource type="ViewportTexture" id="ViewportTexture_l2fsg"] +viewport_path = NodePath("ScreenMesh/SubViewport") + +[sub_resource type="ViewportTexture" id="ViewportTexture_ckudb"] +viewport_path = NodePath("ScreenMesh/SubViewport") + +[sub_resource type="ViewportTexture" id="ViewportTexture_01tli"] +viewport_path = NodePath("ScreenMesh/SubViewport") + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_7alnb"] +resource_local_to_scene = true +vertex_color_use_as_albedo = true +albedo_texture = SubResource("ViewportTexture_l2fsg") +rim_tint = 1.0 +rim_texture = SubResource("ViewportTexture_01tli") +backlight_enabled = true +backlight_texture = SubResource("ViewportTexture_ckudb") + +[sub_resource type="PlaneMesh" id="PlaneMesh_hekp8"] +resource_local_to_scene = true +material = SubResource("StandardMaterial3D_7alnb") +size = Vector2(1, 1) + +[node name="StaticBody3D" type="StaticBody3D"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="."] +shape = SubResource("BoxShape3D_sh78v") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="."] +mesh = SubResource("BoxMesh_t4f0s") + +[node name="MeshInstance3D2" type="MeshInstance3D" parent="."] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0) +mesh = SubResource("PrismMesh_law6y") + +[node name="ScreenMesh" type="MeshInstance3D" parent="."] +transform = Transform3D(-4.37114e-08, 0.891007, 0.453991, 0, 0.453991, -0.891007, -1, -3.89471e-08, -1.98446e-08, 0.255, 1, 0) +mesh = SubResource("PlaneMesh_hekp8") + +[node name="SubViewport" type="SubViewport" parent="ScreenMesh"] +render_target_update_mode = 4 + +[node name="DebugScreen" parent="ScreenMesh/SubViewport" instance=ExtResource("1_q1qkj")] + +[node name="OmniLight3D" type="OmniLight3D" parent="."] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.272733, 1.04718, 0) +light_size = 1.0 diff --git a/scenes/levels/debug.tscn b/scenes/levels/debug.tscn index bd9e451..b80a490 100644 --- a/scenes/levels/debug.tscn +++ b/scenes/levels/debug.tscn @@ -2,6 +2,7 @@ [ext_resource type="PackedScene" uid="uid://gg5ph541e4p3" path="res://scenes/player.tscn" id="1_2585i"] [ext_resource type="ArrayMesh" uid="uid://ddwkhfly2xyyt" path="res://models/interior.obj" id="1_lphcl"] +[ext_resource type="PackedScene" uid="uid://b8bvidqu7tmfs" path="res://scenes/interactables/task_terminal.tscn" id="3_30m3x"] [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_voc6l"] cull_mode = 2 @@ -10,9 +11,7 @@ cull_mode = 2 cull_mode = 2 [sub_resource type="BoxShape3D" id="BoxShape3D_067df"] -size = Vector3(10, 0.01, 10) - -[sub_resource type="BoxMesh" id="BoxMesh_8sg6w"] +size = Vector3(16, 0.01, 18) [node name="Debug" type="Node3D"] @@ -28,12 +27,7 @@ surface_material_override/1 = SubResource("StandardMaterial3D_ibyjr") shape = SubResource("BoxShape3D_067df") [node name="Player" parent="." instance=ExtResource("1_2585i")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0) +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 5.23956) -[node name="MeshInstance3D" type="MeshInstance3D" parent="."] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.14051, 0.511925, -2.28447) -mesh = SubResource("BoxMesh_8sg6w") - -[node name="MeshInstance3D2" type="MeshInstance3D" parent="."] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.14051, 0.511925, 2.70502) -mesh = SubResource("BoxMesh_8sg6w") +[node name="StaticBody3D" parent="." instance=ExtResource("3_30m3x")] +transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 0.5, 0, 0) diff --git a/scenes/player.tscn b/scenes/player.tscn index 223dba4..9e71432 100644 --- a/scenes/player.tscn +++ b/scenes/player.tscn @@ -21,5 +21,5 @@ light_indirect_energy = 4.0 light_volumetric_fog_energy = 4.0 light_projector = ExtResource("1_rxdpg") shadow_enabled = true -spot_range = 48.0 +spot_range = 72.0 spot_angle = 40.9175