Initial Commit

This commit is contained in:
June
2026-03-24 22:00:03 -07:00
parent bf9620bbb6
commit 5533b95cff
73 changed files with 1647 additions and 293 deletions

View File

@@ -0,0 +1,516 @@
[gd_scene load_steps=41 format=3 uid="uid://cfko0vrf1dfod"]
[ext_resource type="Script" uid="uid://ttgieweerpay" path="res://Scripts/Logic/cNight.gd" id="1_3fysp"]
[ext_resource type="Script" uid="uid://vunrx4ig88oq" path="res://Scripts/Levels/lsOffice.gd" id="1_rljuy"]
[ext_resource type="Script" uid="uid://qp1x4i2r65hr" path="res://Scripts/Characters/cConstruct.gd" id="2_6edvq"]
[ext_resource type="Script" uid="uid://cntxldpts5png" path="res://Scripts/Characters/cCharacter_Debug.gd" id="3_uyeer"]
[ext_resource type="Script" uid="uid://d1k3x55514fyq" path="res://Scripts/Levels/Rooms/crPowerRoom.gd" id="4_ka2vk"]
[ext_resource type="Texture2D" uid="uid://b0iv7oawsp72q" path="res://Renders/Office/Office Inside/office.png" id="5_orox1"]
[ext_resource type="Shader" uid="uid://sxb00aj6wt0h" path="res://Shaders/perspective.gdshader" id="7_k0myi"]
[ext_resource type="Script" uid="uid://cfn4cgsc5amet" path="res://Scripts/Levels/Rooms/crHallwayL.gd" id="7_mm4xn"]
[ext_resource type="Texture2D" uid="uid://08sb14xwnkn5" path="res://Renders/Office/Monitor/46.png" id="7_r7ejh"]
[ext_resource type="Texture2D" uid="uid://bweysv245y8k5" path="res://Renders/Office/Monitor/132.png" id="8_md3e2"]
[ext_resource type="Texture2D" uid="uid://duqoximcr7mn4" path="res://Renders/Office/Monitor/133.png" id="9_rljuy"]
[ext_resource type="Shader" uid="uid://dy4tffth3v12b" path="res://Scripts/Logic/video_distortion.gdshader" id="10_jt74f"]
[ext_resource type="Texture2D" uid="uid://dddgpqeg6vwch" path="res://Renders/Office/Monitor/136.png" id="10_qvm5e"]
[ext_resource type="Texture2D" uid="uid://dhcayopmw04og" path="res://Renders/Office/Monitor/137.png" id="11_di7y1"]
[ext_resource type="Script" uid="uid://dauob2yqkuh6m" path="res://Scripts/Effects/efVideoDistortion.gd" id="11_f84q5"]
[ext_resource type="Texture2D" uid="uid://cybdrp5y0gut7" path="res://Renders/Office/Monitor/138.png" id="12_3kdu4"]
[ext_resource type="Texture2D" uid="uid://dbqdormcb15b" path="res://Renders/Office/Monitor/139.png" id="13_qw55p"]
[ext_resource type="Texture2D" uid="uid://de3o1l20w1fv0" path="res://Renders/Office/Monitor/140.png" id="14_gk2h7"]
[ext_resource type="Texture2D" uid="uid://dvrotl2psyj43" path="res://Renders/Office/Monitor/141.png" id="15_frhvm"]
[ext_resource type="Texture2D" uid="uid://b0t51te81bn1f" path="res://Renders/Office/Monitor/142.png" id="16_are38"]
[ext_resource type="Texture2D" uid="uid://c3cyyimucnkup" path="res://Renders/Office/Monitor/144.png" id="17_y8r8c"]
[ext_resource type="Texture2D" uid="uid://cflkeyri73l23" path="res://Renders/Camera/PowerStation/powerstation_wide_1.png" id="18_md3e2"]
[ext_resource type="Shader" uid="uid://cb1jf4frbw7jo" path="res://Shaders/static_blocky.gdshader" id="20_215pv"]
[ext_resource type="Texture2D" uid="uid://frw0kmb23qcv" path="res://Renders/Locations/Names/71.png" id="20_md3e2"]
[ext_resource type="Texture2D" uid="uid://demhjv3dvqv7j" path="res://Renders/Static & Menu/Full Static/12.png" id="21_jriy1"]
[ext_resource type="Texture2D" uid="uid://dpu5xkpl55gf1" path="res://Renders/Static & Menu/Full Static/13.png" id="22_jt74f"]
[ext_resource type="Texture2D" uid="uid://xogv0gtd81oa" path="res://Renders/Static & Menu/Full Static/14.png" id="23_f84q5"]
[ext_resource type="Texture2D" uid="uid://cx4kees6td1yl" path="res://Renders/Static & Menu/Full Static/15.png" id="24_mm4xn"]
[ext_resource type="Texture2D" uid="uid://cbm30gs7fsjyg" path="res://Renders/Static & Menu/Full Static/16.png" id="25_fweg3"]
[ext_resource type="Texture2D" uid="uid://da45s38mhie03" path="res://Renders/Static & Menu/Full Static/17.png" id="26_arhhw"]
[ext_resource type="Texture2D" uid="uid://bhyc5ojiegof5" path="res://Renders/Static & Menu/Full Static/18.png" id="27_hhn4j"]
[ext_resource type="Texture2D" uid="uid://c47r1lgi7hn8l" path="res://Renders/Static & Menu/Full Static/20.png" id="28_nm5vp"]
[ext_resource type="Script" uid="uid://cw6yeu0c7lgr2" path="res://Scripts/Effects/efStatic.gd" id="29_wj2rx"]
[ext_resource type="Script" uid="uid://c14ey58hfx7i8" path="res://Scripts/Logic/cPlayerCamera.gd" id="32_jriy1"]
[sub_resource type="GDScript" id="GDScript_f84q5"]
script/source = "# CameraSystem.gd
extends Node
class_name CameraManager
@export var display: TextureRect
var current_room: cRoom
@export var rooms: Array[Room] = []
func select_room(room_id: Global):
for room in rooms:
print(room, room.room_id)
print(\"Comparing room id: \", room.room_id, \" With: \", room_id)
if room.room_id == room_id:
current_room = room
break
func force_room(index: int):
if index >= 0 and index < rooms.size():
current_room = rooms[index]
else:
print(\"force_room: invalid index \", index)
func _process(_delta):
if current_room == null:
current_room = rooms[0]
if current_room:
current_room._process(_delta)
display.texture = current_room.getTexture()
func _on_cam_pressed(id:int) -> void:
print(\"Camera Change with: \", id)
force_room(id)
return
var eRoom: Global.LocationID
match id:
0: eRoom = Global.LocationID.POWER_STATION
1: eRoom = Global.LocationID.DINING_AREA
2: eRoom = Global.LocationID.WEST_HALL
3: eRoom = Global.LocationID.EAST_HALL
4: eRoom = Global.LocationID.SUPPLY_CLOSET
5: eRoom = Global.LocationID.BACKSTAGE
6: eRoom = Global.LocationID.LIVING_AREA
7: eRoom = Global.LocationID.OFFICE_LEFT_DOOR
8: eRoom = Global.LocationID.OFFICE_RIGHT_DOOR
9: eRoom = Global.LocationID.OFFICE
select_room(eRoom)
"
[sub_resource type="ShaderMaterial" id="ShaderMaterial_orox1"]
shader = ExtResource("7_k0myi")
shader_parameter/zoom = 0.54
shader_parameter/sharpness = 2.0
shader_parameter/direction = Vector2(0, 1)
shader_parameter/wrapping_mode = 0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_f84q5"]
shader = ExtResource("10_jt74f")
shader_parameter/amount = 0.5270000250325
shader_parameter/seed = 0.465
shader_parameter/line_density = 0.858000040755
shader_parameter/offset_mul = 1.0
shader_parameter/screen_offset = Vector2(0, 0)
shader_parameter/screen_bend_amount = Vector2(0.02, 0.02)
[sub_resource type="ShaderMaterial" id="ShaderMaterial_kh8bn"]
shader = ExtResource("20_215pv")
shader_parameter/alpha_threshold = 0.022000001045
shader_parameter/alpha_modifier = 0.400000019
[sub_resource type="SpriteFrames" id="SpriteFrames_8uri8"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("21_jriy1")
}, {
"duration": 1.0,
"texture": ExtResource("22_jt74f")
}, {
"duration": 1.0,
"texture": ExtResource("23_f84q5")
}, {
"duration": 1.0,
"texture": ExtResource("24_mm4xn")
}, {
"duration": 1.0,
"texture": ExtResource("25_fweg3")
}, {
"duration": 1.0,
"texture": ExtResource("26_arhhw")
}, {
"duration": 1.0,
"texture": ExtResource("27_hhn4j")
}, {
"duration": 1.0,
"texture": ExtResource("28_nm5vp")
}],
"loop": true,
"name": &"default",
"speed": 10.0
}]
[sub_resource type="SpriteFrames" id="SpriteFrames_er86o"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("16_are38")
}, {
"duration": 1.0,
"texture": ExtResource("7_r7ejh")
}, {
"duration": 1.0,
"texture": ExtResource("17_y8r8c")
}, {
"duration": 1.0,
"texture": ExtResource("8_md3e2")
}, {
"duration": 1.0,
"texture": ExtResource("9_rljuy")
}, {
"duration": 1.0,
"texture": ExtResource("10_qvm5e")
}, {
"duration": 1.0,
"texture": ExtResource("11_di7y1")
}, {
"duration": 1.0,
"texture": ExtResource("12_3kdu4")
}, {
"duration": 1.0,
"texture": ExtResource("13_qw55p")
}, {
"duration": 1.0,
"texture": ExtResource("14_gk2h7")
}, {
"duration": 1.0,
"texture": ExtResource("15_frhvm")
}],
"loop": false,
"name": &"flipdown",
"speed": 30.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("7_r7ejh")
}, {
"duration": 1.0,
"texture": ExtResource("8_md3e2")
}, {
"duration": 1.0,
"texture": ExtResource("9_rljuy")
}, {
"duration": 1.0,
"texture": ExtResource("10_qvm5e")
}, {
"duration": 1.0,
"texture": ExtResource("11_di7y1")
}, {
"duration": 1.0,
"texture": ExtResource("12_3kdu4")
}, {
"duration": 1.0,
"texture": ExtResource("13_qw55p")
}, {
"duration": 1.0,
"texture": ExtResource("14_gk2h7")
}, {
"duration": 1.0,
"texture": ExtResource("15_frhvm")
}, {
"duration": 1.0,
"texture": ExtResource("16_are38")
}, {
"duration": 1.0,
"texture": ExtResource("17_y8r8c")
}],
"loop": false,
"name": &"flipup",
"speed": 30.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("7_r7ejh")
}],
"loop": false,
"name": &"idle",
"speed": 0.0
}]
[node name="Node2D" type="Node2D" node_paths=PackedStringArray("officeLayer", "cameraUnit", "cameraAnimation", "cameraLayer")]
script = ExtResource("1_rljuy")
officeLayer = NodePath("Office")
cameraUnit = NodePath("CameraUnit")
cameraAnimation = NodePath("CameraUnit/AnimatedSprite2D")
cameraLayer = NodePath("Camera")
metadata/_edit_horizontal_guides_ = [1136.0]
[node name="Camera2D" type="Camera2D" parent="." node_paths=PackedStringArray("officeSprite")]
position = Vector2(640, 368)
script = ExtResource("32_jriy1")
scrollArea = 800
scrollSpeed = 800.0
scrollDivisions = 2
officeSprite = NodePath("../Office/Office")
[node name="NightManager" type="Node" parent="."]
script = ExtResource("1_3fysp")
metadata/_custom_type_script = "uid://ttgieweerpay"
[node name="CameraManager" type="Node" parent="." node_paths=PackedStringArray("display")]
script = SubResource("GDScript_f84q5")
display = NodePath("../Camera/CameraFeed")
[node name="AI" type="Container" parent="."]
offset_left = -8.0
offset_right = 32.0
offset_bottom = 40.0
metadata/_edit_use_anchors_ = true
[node name="cConstructBrain" type="Node2D" parent="AI"]
position = Vector2(8, -64)
script = ExtResource("2_6edvq")
[node name="Rooms" type="Container" parent="."]
offset_right = 40.0
offset_bottom = 40.0
metadata/_edit_use_anchors_ = true
[node name="PowerRoom" type="Node" parent="Rooms"]
script = ExtResource("4_ka2vk")
metadata/_custom_type_script = "uid://d1k3x55514fyq"
[node name="HallWayL" type="Node" parent="Rooms"]
script = ExtResource("7_mm4xn")
metadata/_custom_type_script = "uid://cfn4cgsc5amet"
[node name="Office" type="CanvasLayer" parent="."]
[node name="Office" type="Sprite2D" parent="Office"]
position = Vector2(-264, -80)
scale = Vector2(0.3, 0.3)
texture = ExtResource("5_orox1")
centered = false
[node name="Shader_Perspective" type="ColorRect" parent="Office"]
material = SubResource("ShaderMaterial_orox1")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -264.0
offset_top = -80.0
offset_right = 256.0
offset_bottom = 64.0
grow_horizontal = 2
grow_vertical = 2
[node name="Camera" type="CanvasLayer" parent="."]
[node name="CameraFeed" type="TextureRect" parent="Camera"]
offset_left = -248.0
offset_top = -72.0
offset_right = 7578.087
offset_bottom = 3684.5217
scale = Vector2(0.23, 0.23)
texture = ExtResource("18_md3e2")
expand_mode = 1
metadata/_edit_use_anchors_ = true
[node name="ColorRect" type="ColorRect" parent="Camera"]
material = SubResource("ShaderMaterial_orox1")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -305.04
offset_top = -88.56
offset_right = 214.95996
offset_bottom = 55.440002
grow_horizontal = 2
grow_vertical = 2
metadata/_edit_use_anchors_ = true
[node name="Video_Distortion" type="ColorRect" parent="Camera"]
material = SubResource("ShaderMaterial_f84q5")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -264.0
offset_top = -80.0
offset_right = 256.0
offset_bottom = 64.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("11_f84q5")
amount_base = 0.43
amount_amp = 0.72
amount_speed = 1.455
metadata/_edit_use_anchors_ = true
[node name="Static" type="AnimatedSprite2D" parent="Camera"]
material = SubResource("ShaderMaterial_kh8bn")
sprite_frames = SubResource("SpriteFrames_8uri8")
centered = false
script = ExtResource("29_wj2rx")
[node name="cConstructDebugger" type="Node2D" parent="Camera" node_paths=PackedStringArray("target")]
position = Vector2(128, 128)
script = ExtResource("3_uyeer")
target = NodePath("../../AI/cConstructBrain")
[node name="Control" type="Control" parent="Camera"]
layout_mode = 3
anchors_preset = 0
offset_left = 1032.0
offset_top = 392.0
offset_right = 1256.0
offset_bottom = 616.0
metadata/_edit_use_anchors_ = true
[node name="71" type="Sprite2D" parent="Camera/Control"]
position = Vector2(112, -24)
texture = ExtResource("20_md3e2")
[node name="Cam0" type="Button" parent="Camera/Control"]
layout_mode = 1
offset_right = 82.0
offset_bottom = 31.0
text = "Camera 0
"
metadata/_edit_use_anchors_ = true
[node name="Cam1" type="Button" parent="Camera/Control"]
layout_mode = 1
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -82.0
offset_bottom = 31.0
grow_horizontal = 0
text = "Camera 1
"
metadata/_edit_use_anchors_ = true
[node name="Cam2" type="Button" parent="Camera/Control"]
layout_mode = 1
offset_top = 48.0
offset_right = 82.0
offset_bottom = 79.0
text = "Camera 2
"
metadata/_edit_use_anchors_ = true
[node name="Cam3" type="Button" parent="Camera/Control"]
layout_mode = 1
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -80.0
offset_top = 48.0
offset_right = 2.0
offset_bottom = 79.0
grow_horizontal = 0
text = "Camera 3"
metadata/_edit_use_anchors_ = true
[node name="Cam4" type="Button" parent="Camera/Control"]
layout_mode = 1
anchors_preset = 4
anchor_top = 0.5
anchor_bottom = 0.5
offset_top = -15.5
offset_right = 82.0
offset_bottom = 15.5
grow_vertical = 2
text = "Camera 4
"
metadata/_edit_use_anchors_ = true
[node name="Cam5" type="Button" parent="Camera/Control"]
layout_mode = 1
anchors_preset = 6
anchor_left = 1.0
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_left = -82.0
offset_top = -15.5
offset_bottom = 15.5
grow_horizontal = 0
grow_vertical = 2
text = "Camera 5
"
metadata/_edit_use_anchors_ = true
[node name="Cam6" type="Button" parent="Camera/Control"]
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_top = -74.0
offset_right = 82.0
offset_bottom = -43.0
grow_vertical = 0
text = "Camera 6
"
metadata/_edit_use_anchors_ = true
[node name="Cam7" type="Button" parent="Camera/Control"]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -80.0
offset_top = -74.0
offset_right = 2.0
offset_bottom = -43.0
grow_horizontal = 0
grow_vertical = 0
text = "Camera 7
"
metadata/_edit_use_anchors_ = true
[node name="Cam8" type="Button" parent="Camera/Control"]
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_top = -31.0
offset_right = 82.0
grow_vertical = 0
text = "Camera 8
"
metadata/_edit_use_anchors_ = true
[node name="Cam9" type="Button" parent="Camera/Control"]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -82.0
offset_top = -31.0
grow_horizontal = 0
grow_vertical = 0
text = "Camera 9
"
metadata/_edit_use_anchors_ = true
[node name="CameraUnit" type="CanvasLayer" parent="."]
visible = false
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="CameraUnit"]
position = Vector2(640, 360)
sprite_frames = SubResource("SpriteFrames_er86o")
animation = &"flipdown"
[node name="GlobalUI" type="CanvasLayer" parent="."]
layer = 4
[node name="CameraButton" type="Button" parent="GlobalUI"]
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -264.0
offset_top = -72.0
offset_right = 264.0
grow_horizontal = 2
grow_vertical = 0
theme_override_font_sizes/font_size = 41
text = "CAMERA"
[connection signal="night_completed" from="NightManager" to="." method="_on_night_manager_night_completed"]
[connection signal="mouse_entered" from="GlobalUI/CameraButton" to="." method="_on_camerabutton_mouse_entered"]
[connection signal="mouse_exited" from="GlobalUI/CameraButton" to="." method="_on_camerabutton_mouse_exited"]