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"]

View File

@@ -1,11 +1,10 @@
[gd_scene load_steps=41 format=3 uid="uid://cfko0vrf1dfod"]
[ext_resource type="Script" uid="uid://ttgieweerpay" path="res://Scripts/Logic/NightManager.gd" id="1_3fysp"]
[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="Script" uid="uid://cxj3fa512gs6r" path="res://Scripts/Logic/cCameraManager.gd" id="4_ufrlt"]
[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"]
@@ -36,6 +35,43 @@
[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[cRoom] = []
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
"
[sub_resource type="ShaderMaterial" id="ShaderMaterial_orox1"]
shader = ExtResource("7_k0myi")
shader_parameter/zoom = 0.54
@@ -196,34 +232,31 @@ officeSprite = NodePath("../Office/Office")
script = ExtResource("1_3fysp")
metadata/_custom_type_script = "uid://ttgieweerpay"
[node name="CameraManager" type="Node" parent="." node_paths=PackedStringArray("display", "rooms")]
script = ExtResource("4_ufrlt")
[node name="CameraManager" type="Node" parent="." node_paths=PackedStringArray("display")]
script = SubResource("GDScript_f84q5")
display = NodePath("../Camera/CameraFeed")
rooms = [NodePath("../Rooms/PowerRoom"), NodePath("../Rooms/HallWayL")]
metadata/_custom_type_script = "uid://cxj3fa512gs6r"
[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" node_paths=PackedStringArray("night_manager")]
[node name="cConstructBrain" type="Node2D" parent="AI"]
position = Vector2(8, -64)
script = ExtResource("2_6edvq")
night_manager = NodePath("../../NightManager")
[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" node_paths=PackedStringArray("enemies")]
[node name="PowerRoom" type="Node" parent="Rooms"]
script = ExtResource("4_ka2vk")
enemies = [NodePath("../../AI/cConstructBrain")]
metadata/_custom_type_script = "uid://d1k3x55514fyq"
[node name="HallWayL" type="Node" parent="Rooms"]
script = ExtResource("7_mm4xn")
room_id = 7
metadata/_custom_type_script = "uid://cfn4cgsc5amet"
[node name="Office" type="CanvasLayer" parent="."]
@@ -256,6 +289,7 @@ 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")
@@ -268,6 +302,7 @@ 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")
@@ -284,6 +319,7 @@ 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")
@@ -291,11 +327,10 @@ sprite_frames = SubResource("SpriteFrames_8uri8")
centered = false
script = ExtResource("29_wj2rx")
[node name="cConstructDebugger" type="Node2D" parent="Camera" node_paths=PackedStringArray("target", "night_manager")]
[node name="cConstructDebugger" type="Node2D" parent="Camera" node_paths=PackedStringArray("target")]
position = Vector2(128, 128)
script = ExtResource("3_uyeer")
target = NodePath("../../AI/cConstructBrain")
night_manager = NodePath("../../NightManager")
[node name="Control" type="Control" parent="Camera"]
layout_mode = 3
@@ -304,6 +339,7 @@ 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)
@@ -315,6 +351,7 @@ 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
@@ -326,6 +363,7 @@ 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
@@ -334,6 +372,7 @@ 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
@@ -346,6 +385,7 @@ 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
@@ -358,6 +398,7 @@ 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
@@ -373,6 +414,7 @@ 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
@@ -385,6 +427,7 @@ 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
@@ -401,6 +444,7 @@ 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
@@ -412,6 +456,7 @@ 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
@@ -426,6 +471,7 @@ grow_horizontal = 0
grow_vertical = 0
text = "Camera 9
"
metadata/_edit_use_anchors_ = true
[node name="CameraUnit" type="CanvasLayer" parent="."]
visible = false
@@ -453,8 +499,5 @@ theme_override_font_sizes/font_size = 41
text = "CAMERA"
[connection signal="night_completed" from="NightManager" to="." method="_on_night_manager_night_completed"]
[connection signal="pressed" from="Camera/Control/Cam0" to="CameraManager" method="_on_cam_pressed" binds= [0]]
[connection signal="pressed" from="Camera/Control/Cam1" to="CameraManager" method="_on_cam_pressed" binds= [1]]
[connection signal="pressed" from="Camera/Control/Cam7" to="CameraManager" method="_on_cam_pressed" binds= [7]]
[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"]

89
Levels/test.tscn Normal file
View File

@@ -0,0 +1,89 @@
[gd_scene load_steps=5 format=3 uid="uid://cqd214exw72db"]
[ext_resource type="Theme" uid="uid://bcxvg2kigp6u1" path="res://Themes/UI/Terminal/tTerminalPrompt.tres" id="2_afen0"]
[ext_resource type="Texture2D" uid="uid://c6m1tx7klorqr" path="res://Renders/Camera/PowerStation/powerstation_1.png" id="2_f87w0"]
[ext_resource type="Texture2D" uid="uid://cv2cadqcahubl" path="res://map.png" id="4_afen0"]
[ext_resource type="Script" uid="uid://dmp22gu6t0fw2" path="res://Scripts/Gameplay/CommandLine/cCommandLine.gd" id="13_tqcie"]
[node name="Node2D" type="Node2D"]
metadata/_edit_horizontal_guides_ = [1136.0]
[node name="Camera2D" type="Camera2D" parent="."]
position = Vector2(640, 368)
[node name="ColorRect" type="ColorRect" parent="."]
offset_right = 1280.0
offset_bottom = 728.0
color = Color(0, 0, 0, 1)
[node name="CommandPrompt" type="CanvasLayer" parent="." node_paths=PackedStringArray("output_text", "input_line")]
script = ExtResource("13_tqcie")
output_text = NodePath("CommandOutput")
input_line = NodePath("CommandInput")
[node name="CommandInput" type="LineEdit" parent="CommandPrompt"]
offset_left = 88.0
offset_top = 256.0
offset_right = 520.0
offset_bottom = 296.0
pivot_offset = Vector2(456, 272)
theme = ExtResource("2_afen0")
placeholder_text = "Enter Command . . ."
emoji_menu_enabled = false
caret_blink = true
[node name="CommandOutput" type="TextEdit" parent="CommandPrompt"]
offset_left = 88.0
offset_top = 24.0
offset_right = 520.0
offset_bottom = 256.0
theme = ExtResource("2_afen0")
editable = false
context_menu_enabled = false
emoji_menu_enabled = false
shortcut_keys_enabled = false
selecting_enabled = false
deselect_on_focus_loss_enabled = false
drag_and_drop_selection_enabled = false
virtual_keyboard_enabled = false
virtual_keyboard_show_on_focus = false
middle_mouse_paste_enabled = false
empty_selection_clipboard_enabled = false
wrap_mode = 1
[node name="Camera" type="CanvasLayer" parent="."]
[node name="Camera" type="TextureRect" parent="Camera"]
offset_left = 552.00006
offset_top = 24.0
offset_right = 4392.0
offset_bottom = 2904.0
scale = Vector2(0.185, 0.185)
texture = ExtResource("2_f87w0")
[node name="B_Shock" type="Button" parent="."]
offset_left = 16.0
offset_top = 24.0
offset_right = 80.0
offset_bottom = 88.0
theme = ExtResource("2_afen0")
text = "SHOCK"
[node name="B_Alarm" type="Button" parent="."]
offset_left = 16.0
offset_top = 96.0
offset_right = 80.0
offset_bottom = 160.0
theme = ExtResource("2_afen0")
text = "ALARM"
[node name="Map" type="CanvasLayer" parent="."]
[node name="Map" type="TextureRect" parent="Map"]
offset_left = 120.0
offset_top = 344.0
offset_right = 1609.6553
offset_bottom = 1542.0
scale = Vector2(0.29, 0.29)
pivot_offset = Vector2(-39.952454, -39.952393)
texture = ExtResource("4_afen0")