Compare commits

...

2 Commits

Author SHA1 Message Date
4b840bbe7f Door hit 2023-09-07 01:21:05 -07:00
379ef0189c Add wall boundaries 2023-09-06 20:53:38 -07:00
14 changed files with 782 additions and 52 deletions

View File

@@ -1,21 +1,13 @@
[gd_scene load_steps=13 format=3 uid="uid://vwrw05ob2caq"]
[gd_scene load_steps=5 format=3 uid="uid://vwrw05ob2caq"]
[ext_resource type="Script" path="res://GameLogic/Main.cs" id="1_g4hua"]
[ext_resource type="PackedScene" uid="uid://dqv03pua4j8ga" path="res://Levels/Scenes/Level1.tscn" id="2_8xl51"]
[ext_resource type="PackedScene" uid="uid://b12gq4yqc3d8i" path="res://UI/MainMenu.tscn" id="2_kvovw"]
[ext_resource type="PackedScene" uid="uid://basequfmpg04f" path="res://Levels/Scenes/Level2.tscn" id="3_t7swd"]
[ext_resource type="PackedScene" uid="uid://btl5fdyjewnwc" path="res://Levels/Scenes/Level3.tscn" id="4_bs7wi"]
[ext_resource type="PackedScene" uid="uid://ctvkevnc0wxka" path="res://Levels/Scenes/Level4.tscn" id="5_n8o1o"]
[ext_resource type="PackedScene" uid="uid://col60npvg7wr1" path="res://Levels/Scenes/Level6.tscn" id="6_pqdlv"]
[ext_resource type="PackedScene" uid="uid://8ukphol1isp2" path="res://Levels/Scenes/Level5.tscn" id="7_8fpis"]
[ext_resource type="PackedScene" uid="uid://bsq7edeueqyjg" path="res://Levels/Scenes/Level7.tscn" id="8_mi3pb"]
[ext_resource type="PackedScene" uid="uid://c4xcka4ekuur8" path="res://Levels/Scenes/Level8.tscn" id="9_1ajc1"]
[ext_resource type="PackedScene" uid="uid://djwln4at4ho44" path="res://Levels/Scenes/Level9.tscn" id="11_hkjaq"]
[ext_resource type="PackedScene" uid="uid://cxj6yeddshy16" path="res://GameLogic/GameManager.tscn" id="11_wiyvp"]
[node name="Main" type="Node3D"]
script = ExtResource("1_g4hua")
Levels = Array[PackedScene]([ExtResource("2_8xl51"), ExtResource("5_n8o1o"), ExtResource("3_t7swd"), ExtResource("4_bs7wi"), ExtResource("6_pqdlv"), ExtResource("7_8fpis"), ExtResource("8_mi3pb"), ExtResource("9_1ajc1"), ExtResource("11_hkjaq"), ExtResource("11_hkjaq")])
Levels = Array[PackedScene]([ExtResource("4_bs7wi")])
GameManager = ExtResource("11_wiyvp")
[node name="MainMenu" parent="." instance=ExtResource("2_kvovw")]

8
Levels/DoorShader.tres Normal file
View File

@@ -0,0 +1,8 @@
[gd_resource type="ShaderMaterial" load_steps=2 format=3 uid="uid://blksoavfhtf06"]
[ext_resource type="Shader" path="res://Levels/Scenes/Door.gdshader" id="1_by6f6"]
[resource]
render_priority = 1
shader = ExtResource("1_by6f6")
shader_parameter/albedo = null

View File

@@ -0,0 +1,8 @@
shader_type spatial;
uniform vec3 albedo : source_color;
varying float setAlpha;
void fragment() {
ALBEDO = albedo;
ALPHA = setAlpha;
}

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=7 format=3 uid="uid://dqv03pua4j8ga"]
[gd_scene load_steps=11 format=3 uid="uid://dqv03pua4j8ga"]
[ext_resource type="Script" path="res://Levels/Scripts/Level.cs" id="1_k32xj"]
[ext_resource type="PackedScene" uid="uid://dahp73fwld24h" path="res://Enemies/RangedEnemy.tscn" id="2_fyxib"]
@@ -9,8 +9,21 @@
[sub_resource type="CylinderShape3D" id="CylinderShape3D_kv6vl"]
radius = 0.957319
[sub_resource type="BoxShape3D" id="BoxShape3D_hxepo"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_a01sw"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_vtgsw"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_hcwif"]
size = Vector3(5, 20, 27.822)
[node name="Level1" type="Node3D" groups=["Level"]]
process_mode = 3
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.158514, 0)
script = ExtResource("1_k32xj")
[node name="Area3D2" type="Area3D" parent="." groups=["Level"]]
@@ -60,4 +73,27 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.08228, 0, -0.694794)
[node name="RangedEnemy6" parent="Enemies" instance=ExtResource("2_fyxib")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.78224, 0, -0.525299)
[node name="Camera3D3" type="Camera3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.5, 0.866025, 0, -0.866025, 0.5, -0.527878, 10.966, 6.61121)
projection = 1
size = 10.8546
[node name="StaticBody3D" type="StaticBody3D" parent="."]
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -8.52066, 2.71587, 0)
shape = SubResource("BoxShape3D_hxepo")
[node name="CollisionShape3D2" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.4847, 0, 0)
shape = SubResource("BoxShape3D_a01sw")
[node name="CollisionShape3D3" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 2.43488, -8.0292)
shape = SubResource("BoxShape3D_vtgsw")
[node name="CollisionShape3D4" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, 8.54801)
shape = SubResource("BoxShape3D_hcwif")
[connection signal="body_entered" from="Area3D2" to="Area3D2/Exit Portal" method="OnExitEntered"]

View File

@@ -1,15 +1,27 @@
[gd_scene load_steps=8 format=3 uid="uid://0hdnmilwrsq6"]
[gd_scene load_steps=12 format=3 uid="uid://0hdnmilwrsq6"]
[ext_resource type="Script" path="res://Levels/Scripts/FinalLevel.cs" id="1_sy7dk"]
[ext_resource type="Script" path="res://Enemies/HealthbarProgress.cs" id="2_53ar2"]
[ext_resource type="PackedScene" uid="uid://brbshysbgd47q" path="res://Enemies/GodCircuit.tscn" id="4_vmhpd"]
[ext_resource type="Texture2D" uid="uid://ccnmmyvs53gni" path="res://Textures/GUI/Style_1.png" id="5_jjg8p"]
[ext_resource type="Texture2D" uid="uid://ccnmmyvs53gni" path="res://Textures/Style_1.png" id="5_jjg8p"]
[ext_resource type="PackedScene" uid="uid://b0chkusc2bo2v" path="res://Levels/Models/Stage10/AnimatedFinal.tscn" id="6_8beqh"]
[ext_resource type="PackedScene" uid="uid://b1j0g6ikmnibm" path="res://Enemies/HPComponent.tscn" id="7_nvq88"]
[sub_resource type="LabelSettings" id="LabelSettings_cs88m"]
font_color = Color(0, 0, 0, 1)
[sub_resource type="BoxShape3D" id="BoxShape3D_43mih"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_ch2gq"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_hf7lb"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_myhef"]
size = Vector3(5, 20, 27.822)
[node name="Level10" type="Node3D" groups=["Level"]]
process_mode = 3
script = ExtResource("1_sy7dk")
@@ -61,3 +73,21 @@ label_settings = SubResource("LabelSettings_cs88m")
[node name="HP Component" parent="God Circuit" node_paths=PackedStringArray("_healthBar") instance=ExtResource("7_nvq88")]
MaximumHP = 10000000
_healthBar = NodePath("../../FinalBossGUI/TextureProgressBar")
[node name="StaticBody3D" type="StaticBody3D" parent="."]
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -8.52066, 2.71587, 0)
shape = SubResource("BoxShape3D_43mih")
[node name="CollisionShape3D2" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.39414, 0, 0)
shape = SubResource("BoxShape3D_ch2gq")
[node name="CollisionShape3D3" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 2.43488, -8.5122)
shape = SubResource("BoxShape3D_hf7lb")
[node name="CollisionShape3D4" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, 9.03101)
shape = SubResource("BoxShape3D_myhef")

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=7 format=3 uid="uid://basequfmpg04f"]
[gd_scene load_steps=11 format=3 uid="uid://basequfmpg04f"]
[ext_resource type="Script" path="res://Levels/Scripts/Level.cs" id="1_rkcp4"]
[ext_resource type="PackedScene" uid="uid://dvhuxo7h0opvm" path="res://Levels/Models/Stage2/stage_2Collisions.tscn" id="2_gsn0b"]
@@ -9,6 +9,18 @@
[sub_resource type="CylinderShape3D" id="CylinderShape3D_tux5n"]
radius = 0.957319
[sub_resource type="BoxShape3D" id="BoxShape3D_pdbhu"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_krx21"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_xkc5v"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_xtojv"]
size = Vector3(5, 20, 27.822)
[node name="Level2" type="Node3D" groups=["Level"]]
process_mode = 3
script = ExtResource("1_rkcp4")
@@ -66,4 +78,22 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.12321, -0.521506, -1.78045)
[node name="RangedEnemy8" parent="Enemies" instance=ExtResource("3_hfsy3")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.2018, -0.521506, -0.0385171)
[node name="StaticBody3D" type="StaticBody3D" parent="."]
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -8.52066, 2.71587, 0)
shape = SubResource("BoxShape3D_pdbhu")
[node name="CollisionShape3D2" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.39414, 0, 0)
shape = SubResource("BoxShape3D_krx21")
[node name="CollisionShape3D3" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 2.43488, -8.5122)
shape = SubResource("BoxShape3D_xkc5v")
[node name="CollisionShape3D4" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, 9.03101)
shape = SubResource("BoxShape3D_xtojv")
[connection signal="body_entered" from="Area3D2" to="." method="OnExitEntered"]

File diff suppressed because one or more lines are too long

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=59 format=3 uid="uid://ctvkevnc0wxka"]
[gd_scene load_steps=64 format=3 uid="uid://ctvkevnc0wxka"]
[ext_resource type="Script" path="res://Levels/Scripts/Level.cs" id="1_gkcpw"]
[ext_resource type="Texture2D" uid="uid://c2uop8t70xt1r" path="res://Levels/Models/Stage4/STAGE 4_hakkero.png" id="3_h8wly"]
@@ -762,6 +762,21 @@ _data = {
"Animation": SubResource("Animation_ikspf")
}
[sub_resource type="BoxShape3D" id="BoxShape3D_7qgo5"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_ooasb"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_aaw7g"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_omips"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_5qrun"]
size = Vector3(3.244, 10, 3.17)
[node name="Level4" type="Node3D" groups=["Level"]]
process_mode = 3
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.505, -0.358024, 1.095)
@@ -883,4 +898,31 @@ libraries = {
"": SubResource("AnimationLibrary_aovvl")
}
[node name="StaticBody3D" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1.22039)
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -8.01032, 2.71587, 0)
shape = SubResource("BoxShape3D_7qgo5")
[node name="CollisionShape3D2" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.81573, 0, 0)
shape = SubResource("BoxShape3D_ooasb")
[node name="CollisionShape3D3" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 2.43488, -8.5122)
shape = SubResource("BoxShape3D_aaw7g")
[node name="CollisionShape3D4" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, 9.03101)
shape = SubResource("BoxShape3D_omips")
[node name="CollisionShape3D5" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.93058, -2.24614, -4.79498)
shape = SubResource("BoxShape3D_5qrun")
[node name="CollisionShape3D6" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.67572, -2.24614, -4.79498)
shape = SubResource("BoxShape3D_5qrun")
[connection signal="body_entered" from="Area3D2" to="." method="OnExitEntered"]

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=4 format=3 uid="uid://8ukphol1isp2"]
[gd_scene load_steps=8 format=3 uid="uid://8ukphol1isp2"]
[ext_resource type="PackedScene" uid="uid://jgf7k1r35km1" path="res://Levels/ExitPortal.tscn" id="3_0wdh0"]
[ext_resource type="PackedScene" uid="uid://dldy6w23fyr5t" path="res://Levels/Models/Stage6/Stage6.tscn" id="3_ajkvk"]
@@ -6,6 +6,18 @@
[sub_resource type="CylinderShape3D" id="CylinderShape3D_wu0in"]
radius = 0.957319
[sub_resource type="BoxShape3D" id="BoxShape3D_ismub"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_f5ly1"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_ovwgx"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_1rqjd"]
size = Vector3(5, 20, 27.822)
[node name="Level6" type="Node3D" groups=["Level"]]
process_mode = 3
@@ -24,4 +36,22 @@ shape = SubResource("CylinderShape3D_wu0in")
[node name="STAGE 6" parent="." instance=ExtResource("3_ajkvk")]
[node name="StaticBody3D" type="StaticBody3D" parent="."]
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -8.52066, 2.71587, 0)
shape = SubResource("BoxShape3D_ismub")
[node name="CollisionShape3D2" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.39414, 0, 0)
shape = SubResource("BoxShape3D_f5ly1")
[node name="CollisionShape3D3" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 2.43488, -8.5122)
shape = SubResource("BoxShape3D_ovwgx")
[node name="CollisionShape3D4" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, 9.03101)
shape = SubResource("BoxShape3D_1rqjd")
[connection signal="body_entered" from="Area3D2" to="." method="OnExitEntered"]

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=5 format=3 uid="uid://col60npvg7wr1"]
[gd_scene load_steps=9 format=3 uid="uid://col60npvg7wr1"]
[ext_resource type="Script" path="res://Levels/Scripts/Level.cs" id="1_o0w6s"]
[ext_resource type="PackedScene" uid="uid://jgf7k1r35km1" path="res://Levels/ExitPortal.tscn" id="3_ehcts"]
@@ -7,6 +7,18 @@
[sub_resource type="CylinderShape3D" id="CylinderShape3D_a8pxa"]
radius = 0.957319
[sub_resource type="BoxShape3D" id="BoxShape3D_lhf45"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_g5uqx"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_7mryj"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_2edgb"]
size = Vector3(5, 20, 27.822)
[node name="Level5" type="Node3D" groups=["Level"]]
process_mode = 3
script = ExtResource("1_o0w6s")
@@ -26,4 +38,22 @@ shape = SubResource("CylinderShape3D_a8pxa")
[node name="STAGE 5" parent="." instance=ExtResource("3_yun3r")]
[node name="StaticBody3D" type="StaticBody3D" parent="."]
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -8.52066, 2.71587, 0)
shape = SubResource("BoxShape3D_lhf45")
[node name="CollisionShape3D2" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.39414, 0, 0)
shape = SubResource("BoxShape3D_g5uqx")
[node name="CollisionShape3D3" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 2.43488, -8.5122)
shape = SubResource("BoxShape3D_7mryj")
[node name="CollisionShape3D4" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, 9.03101)
shape = SubResource("BoxShape3D_2edgb")
[connection signal="body_entered" from="Area3D2" to="." method="OnExitEntered"]

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=4 format=3 uid="uid://bsq7edeueqyjg"]
[gd_scene load_steps=8 format=3 uid="uid://bsq7edeueqyjg"]
[ext_resource type="PackedScene" uid="uid://bgf5byqt71kir" path="res://Levels/Models/Stage7/Stage7.tscn" id="2_21i6n"]
[ext_resource type="PackedScene" uid="uid://jgf7k1r35km1" path="res://Levels/ExitPortal.tscn" id="3_sjnhq"]
@@ -6,6 +6,18 @@
[sub_resource type="CylinderShape3D" id="CylinderShape3D_a56hv"]
radius = 0.957319
[sub_resource type="BoxShape3D" id="BoxShape3D_ny8q1"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_3bvlx"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_xgagj"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_cxjq3"]
size = Vector3(5, 20, 27.822)
[node name="Level7" type="Node3D" groups=["Level"]]
process_mode = 3
@@ -17,7 +29,6 @@ collision_mask = 16
[node name="Exit Portal" parent="Area3D2" instance=ExtResource("3_sjnhq")]
transform = Transform3D(0.7, 0, 0, 0, 0.7, 0, 0, 0, 0.7, 0, 0.0799288, -1.92508)
_levelIndex = 6
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D2"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.11323, -2.51823)
@@ -32,4 +43,22 @@ projection = 1
current = true
size = 10.8546
[node name="StaticBody3D" type="StaticBody3D" parent="."]
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -8.80235, 2.71587, 0)
shape = SubResource("BoxShape3D_ny8q1")
[node name="CollisionShape3D2" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.61603, 0, 0)
shape = SubResource("BoxShape3D_3bvlx")
[node name="CollisionShape3D3" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 2.43488, -8.7119)
shape = SubResource("BoxShape3D_xgagj")
[node name="CollisionShape3D4" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, 9.24233)
shape = SubResource("BoxShape3D_cxjq3")
[connection signal="body_entered" from="Area3D2" to="." method="OnExitEntered"]

View File

@@ -1,13 +1,25 @@
[gd_scene load_steps=5 format=3 uid="uid://c4xcka4ekuur8"]
[gd_scene load_steps=9 format=3 uid="uid://c4xcka4ekuur8"]
[ext_resource type="PackedScene" uid="uid://b6ciyf30f07ll" path="res://Levels/Models/Stage8/STAGE 8.glb" id="2_wcvbl"]
[ext_resource type="PackedScene" uid="uid://jgf7k1r35km1" path="res://Scenes/ExitPortal.tscn" id="3_44edv"]
[ext_resource type="PackedScene" uid="uid://jgf7k1r35km1" path="res://Levels/ExitPortal.tscn" id="3_44edv"]
[sub_resource type="CylinderShape3D" id="CylinderShape3D_3ne7n"]
radius = 0.957319
[sub_resource type="SpriteFrames" id="SpriteFrames_16emx"]
[sub_resource type="BoxShape3D" id="BoxShape3D_3n0wx"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_bimq8"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_gb7u1"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_yia8d"]
size = Vector3(5, 20, 27.822)
[node name="Level8" type="Node3D" groups=["Level"]]
process_mode = 3
@@ -29,4 +41,22 @@ sprite_frames = SubResource("SpriteFrames_16emx")
[node name="STAGE 8" parent="." instance=ExtResource("2_wcvbl")]
[node name="StaticBody3D" type="StaticBody3D" parent="."]
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -8.52066, 2.71587, 0)
shape = SubResource("BoxShape3D_3n0wx")
[node name="CollisionShape3D2" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.39414, 0, 0)
shape = SubResource("BoxShape3D_bimq8")
[node name="CollisionShape3D3" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 2.43488, -8.5122)
shape = SubResource("BoxShape3D_gb7u1")
[node name="CollisionShape3D4" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, 9.03101)
shape = SubResource("BoxShape3D_yia8d")
[connection signal="body_entered" from="Area3D2" to="." method="OnExitEntered"]

View File

@@ -1,7 +1,37 @@
[gd_scene load_steps=2 format=3 uid="uid://djwln4at4ho44"]
[gd_scene load_steps=6 format=3 uid="uid://djwln4at4ho44"]
[ext_resource type="PackedScene" uid="uid://bjnnv5oblx6wh" path="res://Levels/Models/Stage9/STAGE 9.gltf" id="1_ami18"]
[sub_resource type="BoxShape3D" id="BoxShape3D_bbrhu"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_8ppap"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_kcyjt"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_b1svp"]
size = Vector3(5, 20, 27.822)
[node name="Stage9" type="Node3D"]
[node name="STAGE 9" parent="." instance=ExtResource("1_ami18")]
[node name="StaticBody3D" type="StaticBody3D" parent="."]
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -8.52066, 2.71587, 0)
shape = SubResource("BoxShape3D_bbrhu")
[node name="CollisionShape3D2" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.39414, 0, 0)
shape = SubResource("BoxShape3D_8ppap")
[node name="CollisionShape3D3" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 2.43488, -8.5122)
shape = SubResource("BoxShape3D_kcyjt")
[node name="CollisionShape3D4" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, 9.03101)
shape = SubResource("BoxShape3D_b1svp")

View File

@@ -2,7 +2,11 @@ using Godot;
public partial class Level3 : Level
{
private int _numberOfHits = 3;
[Export]
public AnimationPlayer AnimationPlayer { get; set; }
[Export]
private int _numberOfHits = 10;
private MeshInstance3D _door;
public override void _Ready()
@@ -15,7 +19,9 @@ public partial class Level3 : Level
{
_numberOfHits--;
GD.Print(_numberOfHits);
if (_numberOfHits == 0)
AnimationPlayer.Play("HitFlash");
if (_numberOfHits == 0)
{
_door.QueueFree();
}