initial commit

This commit is contained in:
Brazly
2026-01-13 03:47:51 +00:00
commit b58b59eb96
43 changed files with 3202 additions and 0 deletions

219
Scenes/Levels/office.tscn Normal file
View File

@@ -0,0 +1,219 @@
[gd_scene load_steps=22 format=3 uid="uid://cqtabc6coc58l"]
[ext_resource type="Script" uid="uid://dmtpstry0o0a3" path="res://Assets/Scripts/Player Controls/player_movement.gd" id="1_48dl1"]
[ext_resource type="PackedScene" uid="uid://b2mhoeubwtkuo" path="res://Scenes/UI/fade_in_transition.tscn" id="2_cx0fw"]
[ext_resource type="PackedScene" uid="uid://cbpsnsta7u3wl" path="res://Scenes/Special_Effects/PSX_style.tscn" id="2_gba58"]
[ext_resource type="Script" uid="uid://55cgjgncpb53" path="res://Assets/Scripts/Player Controls/interact.gd" id="2_vwrhx"]
[ext_resource type="PackedScene" uid="uid://b54u8nvjd4p6l" path="res://Scenes/UI/pause_menu.tscn" id="3_cx0fw"]
[ext_resource type="Script" uid="uid://chb1dyhl7cyg1" path="res://Assets/Scripts/UI/crosshair.gd" id="3_vwrhx"]
[ext_resource type="PackedScene" uid="uid://cmyf6lhbn1x6p" path="res://Scenes/Models/Interior/security_office_model.tscn" id="4_vwrhx"]
[ext_resource type="Script" uid="uid://bfsaxhnb0qpuk" path="res://Assets/Scripts/Misc/flickering_light.gd" id="5_nmbs0"]
[ext_resource type="Texture2D" uid="uid://c0qenaw8wxlbv" path="res://Assets/MISC_Textures/DustMote.png" id="6_ayt7b"]
[ext_resource type="PackedScene" uid="uid://c670wtpi4n22q" path="res://Scenes/UI/terminal.tscn" id="10_gba58"]
[sub_resource type="Environment" id="Environment_cumm5"]
background_mode = 1
background_color = Color(0.680932, 0.369129, 0.248985, 1)
background_energy_multiplier = 0.04
ssr_enabled = true
ssao_enabled = true
ssil_enabled = true
sdfgi_use_occlusion = true
glow_normalized = true
fog_light_energy = 15.32
volumetric_fog_density = 0.1974
adjustment_enabled = true
adjustment_brightness = 0.75
[sub_resource type="Gradient" id="Gradient_ayt7b"]
offsets = PackedFloat32Array(0, 0.0824053, 1)
colors = PackedColorArray(0, 0, 0, 1, 0.683742, 0.683742, 0.683742, 1, 1, 1, 1, 0.25098)
[sub_resource type="GradientTexture1D" id="GradientTexture1D_cx0fw"]
gradient = SubResource("Gradient_ayt7b")
[sub_resource type="Curve" id="Curve_vwrhx"]
_data = [Vector2(0, 1), 0.0, 0.471387, 0, 0, Vector2(0.99579, 0), 0.232991, 0.0, 0, 0]
point_count = 2
[sub_resource type="CurveTexture" id="CurveTexture_nmbs0"]
curve = SubResource("Curve_vwrhx")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_cx0fw"]
emission_shape = 3
emission_box_extents = Vector3(1.49, 1.73, 2.42)
initial_velocity_min = 1.0
initial_velocity_max = 2.0
angular_velocity_min = 30.0
angular_velocity_max = 60.0
gravity = Vector3(0, 0, 0)
scale_curve = SubResource("CurveTexture_nmbs0")
color_ramp = SubResource("GradientTexture1D_cx0fw")
turbulence_enabled = true
turbulence_noise_scale = 1.85
collision_mode = 1
collision_friction = 1.0
collision_bounce = 0.0
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_vwrhx"]
transparency = 1
vertex_color_use_as_albedo = true
albedo_texture = ExtResource("6_ayt7b")
billboard_mode = 3
billboard_keep_scale = true
particles_anim_h_frames = 1
particles_anim_v_frames = 1
particles_anim_loop = false
[sub_resource type="QuadMesh" id="QuadMesh_nmbs0"]
material = SubResource("StandardMaterial3D_vwrhx")
size = Vector2(0.01, 0.01)
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_vwrhx"]
[sub_resource type="BoxShape3D" id="BoxShape3D_nmbs0"]
size = Vector3(0.0644531, 0.530029, 0.4646)
[sub_resource type="ViewportTexture" id="ViewportTexture_vwrhx"]
viewport_path = NodePath("Interactables/PC/Sprite3D/SubViewport")
[node name="Node3D" type="Node3D"]
[node name="PlayerController" type="Node3D" parent="."]
process_mode = 1
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.370835, 0, 0)
script = ExtResource("1_48dl1")
psxScene = ExtResource("2_gba58")
[node name="Camera3D" type="Camera3D" parent="PlayerController" node_paths=PackedStringArray("terminal")]
transform = Transform3D(0.0188834, 0, -0.999822, 0, 1, 0, 0.999822, 0, 0.0188834, -0.0640411, 1.42725, 1.30117)
fov = 45.2
near = 0.001
script = ExtResource("2_vwrhx")
terminal = NodePath("../../Interactables/PC/Sprite3D/SubViewport")
[node name="CanvasLayer" type="CanvasLayer" parent="PlayerController/Camera3D"]
layer = 2
[node name="Control" type="Control" parent="PlayerController/Camera3D/CanvasLayer"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 4
size_flags_vertical = 4
[node name="CrosshairCenter" type="CenterContainer" parent="PlayerController/Camera3D/CanvasLayer/Control"]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -20.0
offset_top = -20.0
offset_right = 20.0
offset_bottom = 20.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("3_vwrhx")
[node name="PauseMenu" type="CanvasLayer" parent="."]
[node name="Transition" parent="PauseMenu" instance=ExtResource("2_cx0fw")]
process_priority = 5
layer = 5
[node name="CanvasLayer" type="CanvasLayer" parent="PauseMenu"]
layer = 5
[node name="PauseMenu" parent="PauseMenu/CanvasLayer" instance=ExtResource("3_cx0fw")]
process_mode = 3
z_index = 5
[node name="security office_UwU" parent="." instance=ExtResource("4_vwrhx")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, -6.54)
[node name="Lighting" type="Node3D" parent="."]
[node name="OmniLight3D" type="OmniLight3D" parent="Lighting"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.894977, 0.0786453, 0.971773)
light_color = Color(0.558852, 0.138576, 0.131343, 1)
light_energy = 0.048
[node name="OmniLight3D2" type="OmniLight3D" parent="Lighting"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.982613, 0.0786453, 1.15155)
light_color = Color(0.558852, 0.138576, 0.131343, 1)
light_energy = 0.048
[node name="WorldEnvironment" type="WorldEnvironment" parent="Lighting"]
environment = SubResource("Environment_cumm5")
[node name="SpotLight3D" type="SpotLight3D" parent="Lighting"]
transform = Transform3D(0.313684, -0.884661, -0.344931, -0.446955, -0.458073, 0.768376, -0.837755, -0.0868584, -0.539093, 0.388222, 1.32097, 0.177619)
light_color = Color(1, 0.733333, 0.690196, 1)
light_energy = 0.543
shadow_enabled = true
[node name="OmniLight3D3" type="OmniLight3D" parent="Lighting"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.520964, 3.19324, 0.238268)
light_color = Color(0.101961, 0.054902, 0.0431373, 1)
light_energy = 2.111
light_indirect_energy = 3.59
shadow_enabled = true
script = ExtResource("5_nmbs0")
[node name="Timer" type="Timer" parent="Lighting/OmniLight3D3"]
wait_time = 0.5
autostart = true
[node name="VFX" type="Node3D" parent="Lighting"]
[node name="GPUParticles3D" type="GPUParticles3D" parent="Lighting/VFX"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.72499, 0.354899)
amount = 800
lifetime = 20.0
randomness = 1.0
process_material = SubResource("ParticleProcessMaterial_cx0fw")
draw_pass_1 = SubResource("QuadMesh_nmbs0")
[node name="GPUParticlesCollisionHeightField3D" type="GPUParticlesCollisionHeightField3D" parent="Lighting/VFX"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0385742, -0.168518, 0.386719)
size = Vector3(2.96582, 0.391724, 4.91016)
[node name="GPUParticlesCollisionHeightField3D2" type="GPUParticlesCollisionHeightField3D" parent="Lighting/VFX"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.794207, 0.898239, 1.10249)
size = Vector3(1.29651, 0.0705109, 2.49951)
[node name="GPUParticlesAttractorSphere3D" type="GPUParticlesAttractorSphere3D" parent="Lighting/VFX"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.447443, 1.25731, 0.393826)
strength = 3.0
radius = 0.409208
[node name="GPUParticlesAttractorSphere3D2" type="GPUParticlesAttractorSphere3D" parent="Lighting/VFX"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.569778, 3.12136, 0.370614)
strength = 3.0
radius = 1.01
[node name="Interactables" type="Node3D" parent="."]
[node name="PC" type="StaticBody3D" parent="Interactables"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.521656, 1.06554, 1.25256)
physics_material_override = SubResource("PhysicsMaterial_vwrhx")
[node name="CollisionShape3D" type="CollisionShape3D" parent="Interactables/PC"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0478516, 0.229821, 0.0582275)
shape = SubResource("BoxShape3D_nmbs0")
[node name="Sprite3D" type="Sprite3D" parent="Interactables/PC"]
transform = Transform3D(0.024902493, 0.0022058422, 0, -0.0022058422, 0.024902493, 0, 0, 0, 0.024999999, 0.053893626, 0.2870214, 0.041617036)
flip_h = true
axis = 0
texture = SubResource("ViewportTexture_vwrhx")
[node name="SubViewport" parent="Interactables/PC/Sprite3D" instance=ExtResource("10_gba58")]
[connection signal="timeout" from="Lighting/OmniLight3D3/Timer" to="Lighting/OmniLight3D3" method="_on_timer_timeout"]

View File

@@ -0,0 +1,5 @@
[gd_scene load_steps=2 format=3 uid="uid://cmyf6lhbn1x6p"]
[ext_resource type="PackedScene" uid="uid://djt7surq1h8bt" path="res://Assets/Model/Interior/Security_Office/security office.UwU.glb" id="1_o43w0"]
[node name="security office_UwU" instance=ExtResource("1_o43w0")]

View File

@@ -0,0 +1,26 @@
[gd_scene load_steps=3 format=3 uid="uid://cbpsnsta7u3wl"]
[ext_resource type="Shader" uid="uid://uo56rpfskail" path="res://Assets/Scripts/Shaders/psx.gdshader" id="1_54yrn"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_vwrhx"]
shader = ExtResource("1_54yrn")
shader_parameter/pixel_resolution = 240.0
shader_parameter/color_steps = 16
shader_parameter/noise_strength = 0.1
shader_parameter/enable_dither = true
shader_parameter/dither_strength = 0.3
shader_parameter/enable_glow = true
shader_parameter/glow_strength = 0.4
shader_parameter/glow_spread = 0.005
shader_parameter/enable_vintage = true
shader_parameter/vintage_strength = 0.8
[node name="CanvasLayer" type="CanvasLayer"]
[node name="ColorRect" type="ColorRect" parent="."]
material = SubResource("ShaderMaterial_vwrhx")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2

30
Scenes/UI/crosshair.tscn Normal file
View File

@@ -0,0 +1,30 @@
[gd_scene load_steps=2 format=3 uid="uid://bw5wwerqy6gi2"]
[ext_resource type="Script" uid="uid://chb1dyhl7cyg1" path="res://Assets/Scripts/UI/crosshair.gd" id="1_undt4"]
[node name="Control" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 4
size_flags_vertical = 4
mouse_filter = 1
[node name="CrosshairCenter" type="CenterContainer" parent="."]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -20.0
offset_top = -20.0
offset_right = 20.0
offset_bottom = 20.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_undt4")

View File

@@ -0,0 +1,58 @@
[gd_scene load_steps=5 format=3 uid="uid://b2mhoeubwtkuo"]
[ext_resource type="Script" uid="uid://cs6mhxw52ldo1" path="res://Assets/Scripts/UI/fade_in.gd" id="1_k5wvs"]
[sub_resource type="Animation" id="Animation_vggx3"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("ColorRect:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 1)]
}
[sub_resource type="Animation" id="Animation_llmbb"]
resource_name = "fade_in"
length = 3.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("ColorRect:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(-0.4, 3),
"transitions": PackedFloat32Array(2.2974, 1),
"update": 0,
"values": [Color(0, 0, 0, 1), Color(1, 1, 1, 0)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_cumm5"]
_data = {
&"RESET": SubResource("Animation_vggx3"),
&"fade_in": SubResource("Animation_llmbb")
}
[node name="Transition" type="CanvasLayer"]
script = ExtResource("1_k5wvs")
[node name="ColorRect" type="ColorRect" parent="."]
z_index = 5
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_right = 20.0
offset_bottom = 20.0
grow_horizontal = 2
grow_vertical = 2
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
&"": SubResource("AnimationLibrary_cumm5")
}

35
Scenes/UI/main_menu.tscn Normal file
View File

@@ -0,0 +1,35 @@
[gd_scene load_steps=2 format=3 uid="uid://dq5ojxx2ytfwv"]
[ext_resource type="Script" uid="uid://2sxp2yxkv5k2" path="res://Assets/Scripts/UI/main_menu.gd" id="1_28flt"]
[node name="MainMenu" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_28flt")
[node name="BoxContainer" type="BoxContainer" parent="."]
layout_mode = 1
anchors_preset = 13
anchor_left = 0.5
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -45.5
offset_right = 45.5
grow_horizontal = 2
grow_vertical = 2
[node name="VBoxContainer" type="VBoxContainer" parent="BoxContainer"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
[node name="NewGameButton" type="Button" parent="BoxContainer/VBoxContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 125
text = "new Game"
[connection signal="pressed" from="BoxContainer/VBoxContainer/NewGameButton" to="." method="_on_new_game_button_pressed"]

57
Scenes/UI/pause_menu.tscn Normal file
View File

@@ -0,0 +1,57 @@
[gd_scene load_steps=2 format=3 uid="uid://b54u8nvjd4p6l"]
[ext_resource type="Script" uid="uid://cnw8764a6hljr" path="res://Assets/Scripts/UI/pause_menu.gd" id="1_emv3i"]
[node name="PauseMenu" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_emv3i")
[node name="MarginContainer" type="MarginContainer" 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 = -611.0
offset_top = -549.0
offset_right = 611.0
offset_bottom = 549.0
grow_horizontal = 2
grow_vertical = 2
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
[node name="QuitGameButton" type="Button" parent="MarginContainer/VBoxContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 125
text = "Quit"
[node name="ResumeGameButton" type="Button" parent="MarginContainer/VBoxContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 125
text = "Resume"
[node name="CameraSensitivityLabel" type="Label" parent="MarginContainer/VBoxContainer"]
layout_mode = 2
text = "Camera Sensitivity"
[node name="HSlider" type="HSlider" parent="MarginContainer/VBoxContainer/CameraSensitivityLabel"]
layout_mode = 2
offset_top = -20.0
offset_right = 492.0
offset_bottom = -4.0
max_value = 0.01
step = 0.0
[connection signal="pressed" from="MarginContainer/VBoxContainer/QuitGameButton" to="." method="_on_quit_game_button_pressed"]
[connection signal="pressed" from="MarginContainer/VBoxContainer/ResumeGameButton" to="." method="_on_resume_game_button_pressed"]
[connection signal="value_changed" from="MarginContainer/VBoxContainer/CameraSensitivityLabel/HSlider" to="." method="_on_h_slider_value_changed"]

44
Scenes/UI/terminal.tscn Normal file
View File

@@ -0,0 +1,44 @@
[gd_scene load_steps=3 format=3 uid="uid://c670wtpi4n22q"]
[ext_resource type="Script" uid="uid://ckagscjkf3iiu" path="res://Assets/Scripts/UI/terminal/terminal_controls.gd" id="1_7fm3u"]
[sub_resource type="LabelSettings" id="LabelSettings_nmbs0"]
font_size = 42
[node name="SubViewport" type="SubViewport" node_paths=PackedStringArray("terminalLine")]
transparent_bg = true
size = Vector2i(1830, 1680)
script = ExtResource("1_7fm3u")
terminalLine = NodePath("MarginContainer/ScrollContainer/VBoxContainer/Label")
[node name="MarginContainer" type="MarginContainer" parent="."]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="ScrollContainer" type="ScrollContainer" parent="MarginContainer"]
layout_mode = 2
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/ScrollContainer"]
layout_mode = 2
[node name="Label" type="Label" parent="MarginContainer/ScrollContainer/VBoxContainer"]
clip_contents = true
custom_minimum_size = Vector2(1800, 0)
layout_mode = 2
text = "a0ifjaojkfna"
label_settings = SubResource("LabelSettings_nmbs0")
autowrap_mode = 3
[node name="Caret" type="ColorRect" parent="MarginContainer/ScrollContainer/VBoxContainer/Label"]
layout_mode = 0
offset_right = 24.0
offset_bottom = 42.0
[node name="CaretTimer" type="Timer" parent="MarginContainer/ScrollContainer/VBoxContainer/Label"]
wait_time = 0.5
autostart = true
[connection signal="timeout" from="MarginContainer/ScrollContainer/VBoxContainer/Label/CaretTimer" to="." method="_on_caret_timer_timeout"]