started building out hub more

This commit is contained in:
derek
2025-03-28 16:48:27 -05:00
parent a591865d4b
commit d64ef7ccde
20 changed files with 158 additions and 156 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1,11 +1,18 @@
[gd_scene load_steps=3 format=3 uid="uid://bpw6mp2qrukr1"] [gd_scene load_steps=4 format=3 uid="uid://bpw6mp2qrukr1"]
[ext_resource type="Material" uid="uid://hg5phpsguoh5" path="res://assets/materials/glass.tres" id="1_k08ia"] [ext_resource type="Material" uid="uid://hg5phpsguoh5" path="res://assets/materials/glass.tres" id="1_k08ia"]
[sub_resource type="BoxMesh" id="BoxMesh_0rnq1"] [sub_resource type="BoxMesh" id="BoxMesh_0rnq1"]
[sub_resource type="PlaneMesh" id="PlaneMesh_wo7e8"]
[node name="Glass" type="Node3D"] [node name="Glass" type="Node3D"]
[node name="MeshInstance3D" type="MeshInstance3D" parent="."] [node name="MeshInstance3D" type="MeshInstance3D" parent="."]
mesh = SubResource("BoxMesh_0rnq1") mesh = SubResource("BoxMesh_0rnq1")
surface_material_override/0 = ExtResource("1_k08ia") surface_material_override/0 = ExtResource("1_k08ia")
[node name="MeshInstance3D2" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, -0.479994, 0.877272, 0, -0.877272, -0.479994, 0, 0.929894, 0)
mesh = SubResource("PlaneMesh_wo7e8")
surface_material_override/0 = ExtResource("1_k08ia")

View File

@@ -0,0 +1,9 @@
[gd_resource type="StandardMaterial3D" format=3 uid="uid://cg4kr88nfqx13"]
[resource]
cull_mode = 2
albedo_color = Color(0, 0, 0, 1)
metallic = 1.0
emission_enabled = true
emission = Color(0.5859, 0.6, 0.318, 1)
emission_energy_multiplier = 7.0

View File

@@ -2,7 +2,10 @@
[resource] [resource]
transparency = 1 transparency = 1
cull_mode = 2
albedo_color = Color(0.6364, 0.763107, 0.86, 0.352941) albedo_color = Color(0.6364, 0.763107, 0.86, 0.352941)
metallic = 1.0 metallic = 1.0
roughness = 0.0 roughness = 0.0
backlight_enabled = true
backlight = Color(1, 1, 1, 1)
refraction_enabled = true refraction_enabled = true

View File

@@ -7,6 +7,7 @@
[ext_resource type="Texture2D" uid="uid://2wpykg2p5dlp" path="res://assets/materials/96_gray ceiling perforated metal texture-seamless_hr/96_gray ceiling perforated metal texture-seamless_hr_normal.jpg" id="5_mm3fv"] [ext_resource type="Texture2D" uid="uid://2wpykg2p5dlp" path="res://assets/materials/96_gray ceiling perforated metal texture-seamless_hr/96_gray ceiling perforated metal texture-seamless_hr_normal.jpg" id="5_mm3fv"]
[resource] [resource]
cull_mode = 2
albedo_color = Color(0.400698, 0.400698, 0.400698, 1) albedo_color = Color(0.400698, 0.400698, 0.400698, 1)
albedo_texture = ExtResource("1_rwy7p") albedo_texture = ExtResource("1_rwy7p")
metallic = 1.0 metallic = 1.0

View File

@@ -6,6 +6,7 @@
[ext_resource type="Texture2D" uid="uid://blrqd7fw5g4hn" path="res://assets/materials/94_tadao ando concrete plates-seamless_hr/94_tadao ando concrete_NORM (Custom).jpg" id="4_7t6g2"] [ext_resource type="Texture2D" uid="uid://blrqd7fw5g4hn" path="res://assets/materials/94_tadao ando concrete plates-seamless_hr/94_tadao ando concrete_NORM (Custom).jpg" id="4_7t6g2"]
[resource] [resource]
cull_mode = 2
albedo_color = Color(0.450648, 0.450648, 0.450648, 1) albedo_color = Color(0.450648, 0.450648, 0.450648, 1)
albedo_texture = ExtResource("1_wceq1") albedo_texture = ExtResource("1_wceq1")
normal_enabled = true normal_enabled = true

View File

@@ -35,7 +35,6 @@ ssil_enabled = true
sdfgi_enabled = true sdfgi_enabled = true
glow_enabled = true glow_enabled = true
fog_density = 0.0005 fog_density = 0.0005
volumetric_fog_density = 0.0
[node name="Realtime Day Night Cycle" type="Node3D"] [node name="Realtime Day Night Cycle" type="Node3D"]
script = ExtResource("1_idjmm") script = ExtResource("1_idjmm")

Binary file not shown.

View File

@@ -38,6 +38,14 @@ _subresources={
"use_external/enabled": true, "use_external/enabled": true,
"use_external/path": "uid://b6hhomp4kcjvb" "use_external/path": "uid://b6hhomp4kcjvb"
}, },
"FootLight": {
"use_external/enabled": true,
"use_external/path": "uid://cg4kr88nfqx13"
},
"Glass": {
"use_external/enabled": true,
"use_external/path": "uid://hg5phpsguoh5"
},
"LightCeiling": { "LightCeiling": {
"use_external/enabled": true, "use_external/enabled": true,
"use_external/path": "uid://isd7ca2ymvs8" "use_external/path": "uid://isd7ca2ymvs8"

Binary file not shown.

View File

@@ -1,12 +1,9 @@
[gd_scene load_steps=27 format=3 uid="uid://uo43j7bomkf3"] [gd_scene load_steps=18 format=3 uid="uid://uo43j7bomkf3"]
[ext_resource type="Script" uid="uid://bkii8jwf0k7tq" path="res://scripts/LevelManager.gd" id="1_8o3mm"] [ext_resource type="Script" uid="uid://b81yg4r8e5ecj" path="res://scripts/subscene.gd" id="1_ie2kr"]
[ext_resource type="Resource" uid="uid://dn3t7wcoumlm3" path="res://GameModes/standard.tres" id="2_knkyv"]
[ext_resource type="PackedScene" uid="uid://drwae3loscbw7" path="res://assets/player.tscn" id="3_sn6s8"]
[ext_resource type="PackedScene" uid="uid://cwy8iv8nlwqrc" path="res://assets/realtime_day_night_cycle.tscn" id="3_uc3ig"] [ext_resource type="PackedScene" uid="uid://cwy8iv8nlwqrc" path="res://assets/realtime_day_night_cycle.tscn" id="3_uc3ig"]
[ext_resource type="Script" uid="uid://12l74jckdnpl" path="res://scripts/room_manager.gd" id="4_iqtg8"] [ext_resource type="Script" uid="uid://12l74jckdnpl" path="res://scripts/room_manager.gd" id="4_iqtg8"]
[ext_resource type="PackedScene" uid="uid://djr7vnr1hcx82" path="res://assets/spider2.tscn" id="5_vb31s"] [ext_resource type="PackedScene" uid="uid://djr7vnr1hcx82" path="res://assets/spider2.tscn" id="5_vb31s"]
[ext_resource type="Script" uid="uid://bw1uh8yc13tjy" path="res://scripts/switch_door.gd" id="6_xph2x"]
[ext_resource type="Script" uid="uid://dv1oc7x3gwtes" path="res://scripts/room_check.gd" id="7_3a6nw"] [ext_resource type="Script" uid="uid://dv1oc7x3gwtes" path="res://scripts/room_check.gd" id="7_3a6nw"]
[ext_resource type="Material" uid="uid://tvyunfk6vvya" path="res://assets/materials/prototype/prototype_orange.tres" id="9_qcaui"] [ext_resource type="Material" uid="uid://tvyunfk6vvya" path="res://assets/materials/prototype/prototype_orange.tres" id="9_qcaui"]
[ext_resource type="PackedScene" uid="uid://df34olntmk0wl" path="res://assets/vent_1.tscn" id="11_0hcft"] [ext_resource type="PackedScene" uid="uid://df34olntmk0wl" path="res://assets/vent_1.tscn" id="11_0hcft"]
@@ -17,49 +14,8 @@
[ext_resource type="PackedScene" uid="uid://20csd6dmwj4y" path="res://assets/jump_platform.tscn" id="18_1ool5"] [ext_resource type="PackedScene" uid="uid://20csd6dmwj4y" path="res://assets/jump_platform.tscn" id="18_1ool5"]
[ext_resource type="PackedScene" uid="uid://do6gt53xr2l23" path="res://assets/garbage_bin.tscn" id="18_r6s5q"] [ext_resource type="PackedScene" uid="uid://do6gt53xr2l23" path="res://assets/garbage_bin.tscn" id="18_r6s5q"]
[ext_resource type="PackedScene" uid="uid://bessq6hl7qsh8" path="res://assets/stats.tscn" id="19_p7jxd"] [ext_resource type="PackedScene" uid="uid://bessq6hl7qsh8" path="res://assets/stats.tscn" id="19_p7jxd"]
[ext_resource type="Material" uid="uid://b6hhomp4kcjvb" path="res://assets/materials/prototype/tadaoando.tres" id="21_s6xxg"]
[ext_resource type="PackedScene" uid="uid://dgapcuvg0gtmm" path="res://assets/scene_changer.tscn" id="22_6kw07"] [ext_resource type="PackedScene" uid="uid://dgapcuvg0gtmm" path="res://assets/scene_changer.tscn" id="22_6kw07"]
[sub_resource type="Animation" id="Animation_3e03q"]
length = 0.001
tracks/0/type = "position_3d"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Door")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = PackedFloat32Array(0, 1, 26.3852, 31.9616, -34.5929)
[sub_resource type="Animation" id="Animation_haspb"]
resource_name = "close"
tracks/0/type = "position_3d"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Door")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = PackedFloat32Array(0, 1, 26.3852, 31.9616, -40.6238, 1, 1, 26.3852, 31.9616, -34.5929)
[sub_resource type="Animation" id="Animation_pkxro"]
resource_name = "open"
tracks/0/type = "position_3d"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Door")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = PackedFloat32Array(0, 1, 26.3852, 31.9616, -34.5929, 1, 1, 26.3852, 31.9616, -40.6238)
[sub_resource type="AnimationLibrary" id="AnimationLibrary_s1qpx"]
_data = {
&"RESET": SubResource("Animation_3e03q"),
&"close": SubResource("Animation_haspb"),
&"open": SubResource("Animation_pkxro")
}
[sub_resource type="BoxShape3D" id="BoxShape3D_oood3"]
size = Vector3(19.709, 15.8262, 9.0301)
[sub_resource type="NavigationMesh" id="NavigationMesh_8aw3d"] [sub_resource type="NavigationMesh" id="NavigationMesh_8aw3d"]
vertices = PackedVector3Array(-208.234, 0.304932, -90.1395, -208.234, 0.304932, -67.8895, -183.734, 0.304932, -67.8895, -183.734, 0.304932, -90.1395, -168.984, 26.3049, -72.6395, -168.984, 26.3049, -50.1395, -144.484, 26.3049, -50.1395, -144.484, 26.3049, -72.6395, 14.2661, 0.304932, -25.1395, 14.2661, 0.304932, -22.8895, 18.0161, 0.304932, -22.8895, 18.2661, 0.304932, -25.3895, 18.2661, 0.304932, -31.3895, 38.5161, 0.304932, -20.6395, 18.2661, 0.304932, -20.6395, 14.2661, 0.304932, -43.1395, 14.2661, 0.304932, -31.6395, 38.5161, 0.304932, -43.1395, -202.984, 144.305, -42.3895, -202.984, 144.305, -19.8895, -178.484, 144.305, -19.8895, -178.484, 144.305, -42.3895, -147.484, 0.304932, -25.3895, -147.484, 0.304932, -28.8895, -148.234, 0.304932, -28.8895, -148.484, 0.304932, -29.8895, -150.984, 0.304932, -32.1395, -145.234, 0.304932, -31.6395, -142.984, 0.304932, -31.6395, -142.984, 0.304932, -35.3895, -148.234, 0.304932, -34.3895, -147.484, 0.304932, -22.6395, -142.984, 0.304932, -22.8895, -142.984, 0.304932, -25.1395, -150.984, 0.304932, -33.1395, -167.484, 0.304932, -35.3895, -149.984, 0.304932, -34.3895, -142.984, 0.304932, -13.1395, -142.984, 0.304932, -16.3895, -147.484, 0.304932, -16.6395, -167.484, 0.304932, -13.1395, -148.734, 2.30493, -31.6395, -147.484, 1.80493, -30.8895, -147.484, 2.05493, -31.6395, -148.984, 2.80493, -32.6395, -146.484, 41.0549, -30.6395, -146.484, 41.0549, -26.1395, 17.2661, 41.0549, -26.1395, 17.2661, 41.0549, -30.6395, -142.984, 0.304932, -30.3895, -145.484, 0.304932, -30.3895, -146.234, 0.304932, -29.3895, -146.234, 0.304932, -26.3895, -142.984, 0.304932, -26.3895, 14.2661, 0.304932, -30.3895, 14.2661, 0.304932, -26.3895, 17.0161, 0.304932, -26.3895, 17.0161, 0.304932, -30.3895, -146.484, 41.0549, -21.8895, -146.484, 41.0549, -17.3895, 17.2661, 41.0549, -17.3895, 17.2661, 41.0549, -21.8895, -146.234, 0.304932, -21.6395, -146.234, 0.304932, -17.6395, -142.984, 0.304932, -17.6395, -142.984, 0.304932, -21.6395, 14.2661, 0.304932, -21.6395, 14.2661, 0.304932, -20.6395, 17.0161, 0.304932, -20.6395, 17.0161, 0.304932, -21.6395) vertices = PackedVector3Array(-208.234, 0.304932, -90.1395, -208.234, 0.304932, -67.8895, -183.734, 0.304932, -67.8895, -183.734, 0.304932, -90.1395, -168.984, 26.3049, -72.6395, -168.984, 26.3049, -50.1395, -144.484, 26.3049, -50.1395, -144.484, 26.3049, -72.6395, 14.2661, 0.304932, -25.1395, 14.2661, 0.304932, -22.8895, 18.0161, 0.304932, -22.8895, 18.2661, 0.304932, -25.3895, 18.2661, 0.304932, -31.3895, 38.5161, 0.304932, -20.6395, 18.2661, 0.304932, -20.6395, 14.2661, 0.304932, -43.1395, 14.2661, 0.304932, -31.6395, 38.5161, 0.304932, -43.1395, -202.984, 144.305, -42.3895, -202.984, 144.305, -19.8895, -178.484, 144.305, -19.8895, -178.484, 144.305, -42.3895, -147.484, 0.304932, -25.3895, -147.484, 0.304932, -28.8895, -148.234, 0.304932, -28.8895, -148.484, 0.304932, -29.8895, -150.984, 0.304932, -32.1395, -145.234, 0.304932, -31.6395, -142.984, 0.304932, -31.6395, -142.984, 0.304932, -35.3895, -148.234, 0.304932, -34.3895, -147.484, 0.304932, -22.6395, -142.984, 0.304932, -22.8895, -142.984, 0.304932, -25.1395, -150.984, 0.304932, -33.1395, -167.484, 0.304932, -35.3895, -149.984, 0.304932, -34.3895, -142.984, 0.304932, -13.1395, -142.984, 0.304932, -16.3895, -147.484, 0.304932, -16.6395, -167.484, 0.304932, -13.1395, -148.734, 2.30493, -31.6395, -147.484, 1.80493, -30.8895, -147.484, 2.05493, -31.6395, -148.984, 2.80493, -32.6395, -146.484, 41.0549, -30.6395, -146.484, 41.0549, -26.1395, 17.2661, 41.0549, -26.1395, 17.2661, 41.0549, -30.6395, -142.984, 0.304932, -30.3895, -145.484, 0.304932, -30.3895, -146.234, 0.304932, -29.3895, -146.234, 0.304932, -26.3895, -142.984, 0.304932, -26.3895, 14.2661, 0.304932, -30.3895, 14.2661, 0.304932, -26.3895, 17.0161, 0.304932, -26.3895, 17.0161, 0.304932, -30.3895, -146.484, 41.0549, -21.8895, -146.484, 41.0549, -17.3895, 17.2661, 41.0549, -17.3895, 17.2661, 41.0549, -21.8895, -146.234, 0.304932, -21.6395, -146.234, 0.304932, -17.6395, -142.984, 0.304932, -17.6395, -142.984, 0.304932, -21.6395, 14.2661, 0.304932, -21.6395, 14.2661, 0.304932, -20.6395, 17.0161, 0.304932, -20.6395, 17.0161, 0.304932, -21.6395)
polygons = [PackedInt32Array(3, 2, 0), PackedInt32Array(0, 2, 1), PackedInt32Array(7, 6, 4), PackedInt32Array(4, 6, 5), PackedInt32Array(9, 8, 10), PackedInt32Array(10, 8, 11), PackedInt32Array(13, 11, 12), PackedInt32Array(10, 11, 14), PackedInt32Array(14, 11, 13), PackedInt32Array(12, 16, 15), PackedInt32Array(15, 17, 12), PackedInt32Array(12, 17, 13), PackedInt32Array(21, 20, 18), PackedInt32Array(18, 20, 19), PackedInt32Array(24, 23, 22), PackedInt32Array(26, 25, 24), PackedInt32Array(28, 27, 29), PackedInt32Array(29, 27, 30), PackedInt32Array(32, 31, 33), PackedInt32Array(33, 31, 22), PackedInt32Array(35, 34, 26), PackedInt32Array(34, 35, 36), PackedInt32Array(38, 37, 39), PackedInt32Array(39, 37, 40), PackedInt32Array(24, 22, 31), PackedInt32Array(30, 36, 29), PackedInt32Array(29, 36, 35), PackedInt32Array(24, 31, 26), PackedInt32Array(26, 31, 39), PackedInt32Array(26, 39, 35), PackedInt32Array(35, 39, 40), PackedInt32Array(42, 41, 43), PackedInt32Array(43, 41, 44), PackedInt32Array(48, 47, 45), PackedInt32Array(45, 47, 46), PackedInt32Array(50, 49, 51), PackedInt32Array(51, 49, 52), PackedInt32Array(52, 49, 53), PackedInt32Array(57, 56, 54), PackedInt32Array(54, 56, 55), PackedInt32Array(61, 60, 58), PackedInt32Array(58, 60, 59), PackedInt32Array(65, 64, 62), PackedInt32Array(62, 64, 63), PackedInt32Array(69, 68, 66), PackedInt32Array(66, 68, 67)] polygons = [PackedInt32Array(3, 2, 0), PackedInt32Array(0, 2, 1), PackedInt32Array(7, 6, 4), PackedInt32Array(4, 6, 5), PackedInt32Array(9, 8, 10), PackedInt32Array(10, 8, 11), PackedInt32Array(13, 11, 12), PackedInt32Array(10, 11, 14), PackedInt32Array(14, 11, 13), PackedInt32Array(12, 16, 15), PackedInt32Array(15, 17, 12), PackedInt32Array(12, 17, 13), PackedInt32Array(21, 20, 18), PackedInt32Array(18, 20, 19), PackedInt32Array(24, 23, 22), PackedInt32Array(26, 25, 24), PackedInt32Array(28, 27, 29), PackedInt32Array(29, 27, 30), PackedInt32Array(32, 31, 33), PackedInt32Array(33, 31, 22), PackedInt32Array(35, 34, 26), PackedInt32Array(34, 35, 36), PackedInt32Array(38, 37, 39), PackedInt32Array(39, 37, 40), PackedInt32Array(24, 22, 31), PackedInt32Array(30, 36, 29), PackedInt32Array(29, 36, 35), PackedInt32Array(24, 31, 26), PackedInt32Array(26, 31, 39), PackedInt32Array(26, 39, 35), PackedInt32Array(35, 39, 40), PackedInt32Array(42, 41, 43), PackedInt32Array(43, 41, 44), PackedInt32Array(48, 47, 45), PackedInt32Array(45, 47, 46), PackedInt32Array(50, 49, 51), PackedInt32Array(51, 49, 52), PackedInt32Array(52, 49, 53), PackedInt32Array(57, 56, 54), PackedInt32Array(54, 56, 55), PackedInt32Array(61, 60, 58), PackedInt32Array(58, 60, 59), PackedInt32Array(65, 64, 62), PackedInt32Array(62, 64, 63), PackedInt32Array(69, 68, 66), PackedInt32Array(66, 68, 67)]
@@ -67,20 +23,14 @@ polygons = [PackedInt32Array(3, 2, 0), PackedInt32Array(0, 2, 1), PackedInt32Arr
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_6yrih"] [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_6yrih"]
albedo_color = Color(0.300579, 0.462784, 0.249767, 1) albedo_color = Color(0.300579, 0.462784, 0.249767, 1)
[node name="EnemyWork" type="Node3D" node_paths=PackedStringArray("player")] [node name="Highwire" type="Node3D"]
script = ExtResource("1_8o3mm") script = ExtResource("1_ie2kr")
map_name = "Wall Runnin"
gamemode = ExtResource("2_knkyv")
player = NodePath("Player")
MAX_PARTICLES = 75
[node name="Realtime Day Night Cycle" parent="." instance=ExtResource("3_uc3ig")] [node name="Realtime Day Night Cycle" parent="." instance=ExtResource("3_uc3ig")]
transform = Transform3D(0.510503, -0.00501647, 0.859861, 0.00982605, 0.999952, 3.48377e-10, -0.85982, 0.00844904, 0.510528, 0, 0, 0) transform = Transform3D(0.510503, -0.00501647, 0.859861, 0.00982605, 0.999952, 1.08313e-09, -0.85982, 0.00844904, 0.510527, -27.2217, 0, 32.4834)
[node name="Player" parent="." instance=ExtResource("3_sn6s8")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 26.4194, 277.483, -34.6215)
[node name="Level" type="Node3D" parent="." groups=["enemy_hivemind"]] [node name="Level" type="Node3D" parent="." groups=["enemy_hivemind"]]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -27.2217, 0, 32.4834)
script = ExtResource("4_iqtg8") script = ExtResource("4_iqtg8")
room_lockdown = true room_lockdown = true
number_of_drops = 30 number_of_drops = 30
@@ -127,31 +77,14 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -150.448, 26.7374, -50.9784)
[node name="spider10" parent="Level" instance=ExtResource("5_vb31s")] [node name="spider10" parent="Level" instance=ExtResource("5_vb31s")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -146.731, 26.7374, -50.1737) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -146.731, 26.7374, -50.1737)
[node name="Door" type="CSGBox3D" parent="Level" node_paths=PackedStringArray("anim_player")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 26.3852, 31.9616, -34.5929)
use_collision = true
size = Vector3(16.8439, 1, 8.61108)
script = ExtResource("6_xph2x")
anim_player = NodePath("AnimationPlayer")
door_open_start = true
[node name="AnimationPlayer" type="AnimationPlayer" parent="Level/Door"]
root_node = NodePath("../..")
libraries = {
&"": SubResource("AnimationLibrary_s1qpx")
}
[node name="RoomCheck" type="Area3D" parent="Level"] [node name="RoomCheck" type="Area3D" parent="Level"]
collision_layer = 2 collision_layer = 2
collision_mask = 2 collision_mask = 2
script = ExtResource("7_3a6nw") script = ExtResource("7_3a6nw")
one_way = true one_way = true
[node name="CollisionShape3D" type="CollisionShape3D" parent="Level/RoomCheck"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 26.9144, 29.7998, -34.0515)
shape = SubResource("BoxShape3D_oood3")
[node name="NavigationRegion3D" type="NavigationRegion3D" parent="."] [node name="NavigationRegion3D" type="NavigationRegion3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -27.2217, 0, 32.4834)
navigation_mesh = SubResource("NavigationMesh_8aw3d") navigation_mesh = SubResource("NavigationMesh_8aw3d")
[node name="CSGBox3D" type="CSGBox3D" parent="NavigationRegion3D"] [node name="CSGBox3D" type="CSGBox3D" parent="NavigationRegion3D"]
@@ -299,104 +232,74 @@ size = Vector3(164.524, 131.832, 5.27209)
material = SubResource("StandardMaterial3D_6yrih") material = SubResource("StandardMaterial3D_6yrih")
[node name="JumpPlatform" parent="NavigationRegion3D" instance=ExtResource("18_1ool5")] [node name="JumpPlatform" parent="NavigationRegion3D" instance=ExtResource("18_1ool5")]
transform = Transform3D(0.610047, -1.32451, -1.36876, 1.81658, 0.836685, 0, 0.572612, -1.24323, 1.45825, -146.87, -0.12112, -30.6138) transform = Transform3D(0.610047, -1.32451, -1.36876, 1.81658, 0.836683, -7.99155e-07, 0.572612, -1.24323, 1.45825, -146.87, -0.12112, -30.6138)
[node name="Vent1" parent="NavigationRegion3D" instance=ExtResource("11_0hcft")] [node name="Vent1" parent="NavigationRegion3D" instance=ExtResource("11_0hcft")]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 16.9673, 0.57067, -31.7536) transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 16.9673, 0.57067, -31.7536)
[node name="PostProcessing" parent="." instance=ExtResource("17_6thjn")] [node name="PostProcessing" parent="." instance=ExtResource("17_6thjn")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -27.2217, 0, 32.4834)
[node name="Stats" parent="." instance=ExtResource("19_p7jxd")] [node name="Stats" parent="." instance=ExtResource("19_p7jxd")]
transform = Transform3D(-0.98212, 0, 0.188255, 0, 1, 0, -0.188255, 0, -0.98212, 21.9998, 1.4638, -25.9657) transform = Transform3D(-0.98212, 0, 0.188255, 0, 1, 0, -0.188255, 0, -0.98212, -5.22191, 1.4638, 6.51766)
[node name="CSGBox3D2" type="CSGBox3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 28.2103, 410.907, -39.074)
material_override = ExtResource("21_s6xxg")
use_collision = true
size = Vector3(21.6041, 760.743, 6.07715)
[node name="CSGBox3D3" type="CSGBox3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 28.1646, 406.656, -27.5644)
material_override = ExtResource("21_s6xxg")
use_collision = true
size = Vector3(21.6041, 769.246, 6.07715)
[node name="CSGBox3D4" type="CSGBox3D" parent="."]
transform = Transform3D(0.00661471, 0, -0.999978, 0, 1, 0, 0.999978, 0, 0.00661471, 17.116, 402.696, -36.2374)
material_override = ExtResource("21_s6xxg")
use_collision = true
size = Vector3(21.6041, 756.867, 6.07715)
[node name="CSGBox3D5" type="CSGBox3D" parent="."]
transform = Transform3D(0.00661471, 0, -0.999978, 0, 1, 0, 0.999978, 0, 0.00661471, 35.6991, 405.739, -33.0713)
material_override = ExtResource("21_s6xxg")
use_collision = true
size = Vector3(21.6041, 771.124, 6.07715)
[node name="CSGBox3D6" type="CSGBox3D" parent="."]
transform = Transform3D(0.00661471, 0, -0.999978, 0, 1, 0, 0.999978, 0, 0.00661471, 28.7459, 791.677, -33.1393)
material_override = ExtResource("21_s6xxg")
use_collision = true
size = Vector3(18.9743, 2.36012, 19.9824)
[node name="JumpPlatform3" parent="." instance=ExtResource("18_1ool5")] [node name="JumpPlatform3" parent="." instance=ExtResource("18_1ool5")]
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, 27.2325, -0.170555, -32.4933) transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, 0.0107899, -0.170555, -0.00993741)
jump_amount = 100 jump_amount = 100
[node name="Scene Changer" parent="." instance=ExtResource("22_6kw07")] [node name="Scene Changer" parent="." instance=ExtResource("22_6kw07")]
transform = Transform3D(15.1486, 0, 0, 0, 405.877, 0, 0, 0, 9.59561, 29.1358, 544.113, -33.0379) transform = Transform3D(15.1486, 0, 0, 0, 405.877, 0, 0, 0, 9.59561, 1.91409, 544.113, -0.554535)
scene_path = "res://scenes/HUBWORLD.tscn"
[node name="Oildrum1" parent="." instance=ExtResource("15_tuvfy")] [node name="Oildrum1" parent="." instance=ExtResource("15_tuvfy")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -148.5, 26.7937, -51.6846) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -175.722, 26.7937, -19.2012)
[node name="Oildrum2" parent="." instance=ExtResource("15_tuvfy")] [node name="Oildrum2" parent="." instance=ExtResource("15_tuvfy")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -154.14, 26.6991, -52.137) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -181.362, 26.6991, -19.6536)
[node name="Oildrum3" parent="." instance=ExtResource("15_tuvfy")] [node name="Oildrum3" parent="." instance=ExtResource("15_tuvfy")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -149.933, 0.60477, -27.2493) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -177.155, 0.60477, 5.23406)
[node name="Spikes 1" parent="." instance=ExtResource("17_hpnr5")] [node name="Spikes 1" parent="." instance=ExtResource("17_hpnr5")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -149.512, -0.1705, -21.1035) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -176.734, -0.1705, 11.3799)
[node name="Spikes 2" parent="." instance=ExtResource("17_hpnr5")] [node name="Spikes 2" parent="." instance=ExtResource("17_hpnr5")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -149.512, -0.1705, -25.291) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -176.734, -0.1705, 7.19236)
[node name="Spikes 3" parent="." instance=ExtResource("17_hpnr5")] [node name="Spikes 3" parent="." instance=ExtResource("17_hpnr5")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -155.117, -0.1705, -29.0475) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -182.339, -0.1705, 3.43586)
[node name="Spikes 4" parent="." instance=ExtResource("17_hpnr5")] [node name="Spikes 4" parent="." instance=ExtResource("17_hpnr5")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -153.371, -0.1705, -18.4897) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -180.593, -0.1705, 13.9937)
[node name="Spikes 6" parent="." instance=ExtResource("17_hpnr5")] [node name="Spikes 6" parent="." instance=ExtResource("17_hpnr5")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -161.865, -0.1705, -20.048) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -189.087, -0.1705, 12.4354)
[node name="Spikes 7" parent="." instance=ExtResource("17_hpnr5")] [node name="Spikes 7" parent="." instance=ExtResource("17_hpnr5")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -155.119, -0.1705, -23.3871) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -182.341, -0.1705, 9.09626)
[node name="Spikes 8" parent="." instance=ExtResource("17_hpnr5")] [node name="Spikes 8" parent="." instance=ExtResource("17_hpnr5")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -165.201, -0.1705, -24.2851) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -192.423, -0.1705, 8.19826)
[node name="Spikes 9" parent="." instance=ExtResource("17_hpnr5")] [node name="Spikes 9" parent="." instance=ExtResource("17_hpnr5")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 26.1138, -0.1705, -28.4552) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.10791, -0.1705, 4.02816)
[node name="Spikes 5" parent="." instance=ExtResource("17_hpnr5")] [node name="Spikes 5" parent="." instance=ExtResource("17_hpnr5")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -162.158, -0.1705, -29.457) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -189.38, -0.1705, 3.02636)
[node name="ChestSpawner" parent="." instance=ExtResource("17_mw655")] [node name="ChestSpawner" parent="." instance=ExtResource("17_mw655")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -156.034, 28.7598, -63.6704) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -183.256, 28.7598, -31.187)
[node name="ChestSpawner2" parent="." instance=ExtResource("17_mw655")] [node name="ChestSpawner2" parent="." instance=ExtResource("17_mw655")]
transform = Transform3D(0.326146, 0, 0.94532, 0, 1, 0, -0.94532, 0, 0.326146, -204.942, 17.0575, -67.4807) transform = Transform3D(0.326146, 0, 0.94532, 0, 1, 0, -0.94532, 0, 0.326146, -232.164, 17.0575, -34.9973)
[node name="ChestSpawner3" parent="." instance=ExtResource("17_mw655")] [node name="ChestSpawner3" parent="." instance=ExtResource("17_mw655")]
transform = Transform3D(0.419579, 0, 0.907719, 0, 1, 0, -0.907719, 0, 0.419579, -196.179, 1.26645, -79.8687) transform = Transform3D(0.419579, 0, 0.907719, 0, 1, 0, -0.907719, 0, 0.419579, -223.401, 1.26645, -47.3853)
[node name="ChestSpawner4" parent="." instance=ExtResource("17_mw655")] [node name="ChestSpawner4" parent="." instance=ExtResource("17_mw655")]
transform = Transform3D(0.419579, 0, 0.907719, 0, 1, 0, -0.907719, 0, 0.419579, -196.179, 1.26645, -111.452) transform = Transform3D(0.419579, 0, 0.907719, 0, 1, 0, -0.907719, 0, 0.419579, -223.401, 1.26645, -78.9686)
[node name="ChestSpawner5" parent="." instance=ExtResource("17_mw655")] [node name="ChestSpawner5" parent="." instance=ExtResource("17_mw655")]
transform = Transform3D(0.419579, 0, 0.907719, 0, 1, 0, -0.907719, 0, 0.419579, -196.179, 1.26645, -138.959) transform = Transform3D(0.419579, 0, 0.907719, 0, 1, 0, -0.907719, 0, 0.419579, -223.401, 1.26645, -106.476)
[node name="GarbageBin" parent="." instance=ExtResource("18_r6s5q")] [node name="GarbageBin" parent="." instance=ExtResource("18_r6s5q")]
transform = Transform3D(-0.714729, 0, -0.699401, 0, 1, 0, 0.699401, 0, -0.714729, 36.0529, -0.170516, -22.3309) transform = Transform3D(-0.714729, 0, -0.699401, 0, 1, 0, 0.699401, 0, -0.714729, 8.83119, -0.170516, 10.1525)

View File

@@ -36,6 +36,7 @@ func _ready():
level_name = self.get_name() level_name = self.get_name()
GameGlobals.current_level = str(self.scene_file_path) GameGlobals.current_level = str(self.scene_file_path)
if GameGlobals.loading_gamemode != null: if GameGlobals.loading_gamemode != null:
gamemode = GameGlobals.loading_gamemode gamemode = GameGlobals.loading_gamemode
GameGlobals.loading_gamemode = null GameGlobals.loading_gamemode = null
@@ -103,8 +104,6 @@ func _ready():
func refresh_scene(): func refresh_scene():
GameGlobals.health = gamemode.start_health GameGlobals.health = gamemode.start_health
respawn_position = player.camera.global_position
respawn_cam_rotation = player.global_transform.basis
func gun_spawn(index): func gun_spawn(index):

View File

@@ -0,0 +1,20 @@
extends Node3D
class_name SkySwitcher
@export var skies : Array[Node] = []
var current_sky
func _ready() -> void:
for i in skies:
i.visible = false
func update_environment_sky(set_to_sky):
if set_to_sky != current_sky:
for i in skies:
if i != set_to_sky:
i.visible = false
skies[set_to_sky].visible = true

View File

@@ -0,0 +1 @@
uid://lvs6mktummv1

View File

@@ -15,7 +15,7 @@ func _ready() -> void:
portals.append(i) portals.append(i)
if GameGlobals.playlist[0][GameGlobals.current_round_id].size() == 0: if current_round.size() == 0:
var next_round = GameGlobals.current_round_id + 1 var next_round = GameGlobals.current_round_id + 1
if next_round <= (GameGlobals.current_match.size() - 1): if next_round <= (GameGlobals.current_match.size() - 1):
GameGlobals.current_round_id = next_round GameGlobals.current_round_id = next_round

View File

@@ -8,6 +8,8 @@ var timer_active = false
var active = true var active = true
var index : int var index : int
const SCENE_SPAWN_OFFSET = Vector3(0,-150,0)
# Called when the node enters the scene tree for the first time. # Called when the node enters the scene tree for the first time.
func _ready() -> void: func _ready() -> void:
pass # Replace with function body. pass # Replace with function body.
@@ -24,8 +26,11 @@ func _on_body_entered(body: Node3D) -> void:
active = false active = false
var scene = load(level_info["level_path"]).instantiate() var scene = load(level_info["level_path"]).instantiate()
if scene.sky_type != null:
SignalBus.emit_signal("update_sky",scene.sky_type)
get_tree().current_scene.add_child(scene) get_tree().current_scene.add_child(scene)
scene.global_position = global_position scene.global_position = global_position + SCENE_SPAWN_OFFSET
func _on_start_activation_timeout() -> void: func _on_start_activation_timeout() -> void:

View File

@@ -15,3 +15,5 @@ signal enemy_hit()
signal enemy_killed() signal enemy_killed()
signal king_killed() signal king_killed()
signal weapon_list_changed() signal weapon_list_changed()
## LEVEL

3
scripts/subscene.gd Normal file
View File

@@ -0,0 +1,3 @@
extends Node3D
@export_enum("Interior","Exterior") var sky_type = 1

1
scripts/subscene.gd.uid Normal file
View File

@@ -0,0 +1 @@
uid://b81yg4r8e5ecj

View File

@@ -264,7 +264,6 @@ func shotgun_pellet_spawn():
player.recoil.add_recoil(Vector3(0,weapon_info.recoil_amount.y,weapon_info.recoil_amount.z),10,10) player.recoil.add_recoil(Vector3(0,weapon_info.recoil_amount.y,weapon_info.recoil_amount.z),10,10)
player.recoil.add_gun_recoil(weapon_info.recoil_amount.x) player.recoil.add_gun_recoil(weapon_info.recoil_amount.x)
player.velocity += player.bullet_ray.global_basis * Vector3(0,0, weapon_info.kick_amount) player.velocity += player.bullet_ray.global_basis * Vector3(0,0, weapon_info.kick_amount)
SignalBus.emit_signal("shot_fired")
func spawn_muzzle_smoke(): func spawn_muzzle_smoke():
var instance_smoke = weapon_info.muzzle_smoke.instantiate() var instance_smoke = weapon_info.muzzle_smoke.instantiate()
@@ -305,7 +304,6 @@ func bullet_fire():
player.recoil.add_recoil(Vector3(0,weapon_info.recoil_amount.y,weapon_info.recoil_amount.z),10,10) player.recoil.add_recoil(Vector3(0,weapon_info.recoil_amount.y,weapon_info.recoil_amount.z),10,10)
player.recoil.add_gun_recoil(weapon_info.recoil_amount.x) player.recoil.add_gun_recoil(weapon_info.recoil_amount.x)
SignalBus.emit_signal("shot_fired")
func random_rotation(random_rotation): func random_rotation(random_rotation):