Boss healthbar
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
[gd_scene load_steps=11 format=3 uid="uid://dqv03pua4j8ga"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://dqv03pua4j8ga"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/AreaExit.cs" id="1_owv8t"]
|
||||
[ext_resource type="PackedScene" uid="uid://c0lv8ovqkl3a6" path="res://Levels/Models/STAGE 1.blend" id="1_pwpof"]
|
||||
[ext_resource type="PackedScene" uid="uid://b38hcomu4tpm5" path="res://Scenes/TestCharacter.tscn" id="3_vd8bl"]
|
||||
[ext_resource type="PackedScene" uid="uid://si4byubqnng4" path="res://Scenes/TestBullet.tscn" id="4_usx8k"]
|
||||
[ext_resource type="PackedScene" uid="uid://bq40xbqibrk1y" path="res://Scenes/ShotgunBullet.tscn" id="5_yyoa6"]
|
||||
[ext_resource type="Script" path="res://Scenes/Player2.cs" id="6_eyfbh"]
|
||||
[ext_resource type="PackedScene" uid="uid://jgf7k1r35km1" path="res://Scenes/ExitPortal.tscn" id="6_gegi6"]
|
||||
[ext_resource type="Script" path="res://Scripts/P1SpawnPoint.cs" id="8_43upo"]
|
||||
[ext_resource type="Script" path="res://Scripts/P2SpawnPoint.cs" id="9_8v1uu"]
|
||||
@@ -13,35 +9,11 @@
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_kv6vl"]
|
||||
radius = 0.957319
|
||||
|
||||
[node name="Level1" type="Node3D"]
|
||||
[node name="Level1" type="Node3D" groups=["Level"]]
|
||||
script = ExtResource("1_owv8t")
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.496974, 0.867765, 0, -0.867765, 0.496974, -0.378925, 21.2932, 13.0512)
|
||||
projection = 1
|
||||
fov = 30.0
|
||||
size = 9.0
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(-0.929007, 0.136193, 0.34409, 0.369825, 0.375014, 0.850056, -0.0132668, 0.91696, -0.398758, -3.58319, 11.9025, 0.163277)
|
||||
|
||||
[node name="STAGE 1" parent="." instance=ExtResource("1_pwpof")]
|
||||
|
||||
[node name="Player1" parent="." groups=["Player1"] instance=ExtResource("3_vd8bl")]
|
||||
transform = Transform3D(0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, -2.05794, 0, 5.4546)
|
||||
collision_layer = 17
|
||||
collision_mask = 17
|
||||
_fireProjectile = ExtResource("4_usx8k")
|
||||
_altFireProjectile = ExtResource("5_yyoa6")
|
||||
|
||||
[node name="Player2" parent="." groups=["Player2"] instance=ExtResource("3_vd8bl")]
|
||||
transform = Transform3D(0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, 0.915219, 0, 5.4546)
|
||||
collision_layer = 17
|
||||
collision_mask = 17
|
||||
script = ExtResource("6_eyfbh")
|
||||
_fireProjectile = ExtResource("4_usx8k")
|
||||
_altFireProjectile = ExtResource("5_yyoa6")
|
||||
|
||||
[node name="Area3D2" type="Area3D" parent="." groups=["Level"]]
|
||||
collision_layer = 0
|
||||
collision_mask = 16
|
||||
|
||||
@@ -13,16 +13,6 @@ radius = 0.957319
|
||||
script = ExtResource("1_u04pt")
|
||||
_levelIndex = 1
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.496974, 0.867765, 0, -0.867765, 0.496974, -0.378925, 11.1744, 5.15227)
|
||||
projection = 1
|
||||
fov = 30.0
|
||||
size = 8.0
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(-0.931845, -0.0850834, 0.35274, -0.0909281, 0.995857, 1.46654e-08, -0.351279, -0.032074, -0.935721, -3.58319, 22.5795, 0.163277)
|
||||
visible = false
|
||||
|
||||
[node name="STAGE 2" parent="." instance=ExtResource("1_5pcmj")]
|
||||
|
||||
[node name="Area3D2" type="Area3D" parent="." groups=["Level"]]
|
||||
|
||||
@@ -13,16 +13,6 @@ radius = 0.957319
|
||||
script = ExtResource("1_1tnw5")
|
||||
_levelIndex = 2
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.496974, 0.867765, 0, -0.867765, 0.496974, -0.378925, 11.1744, 5.15227)
|
||||
projection = 1
|
||||
fov = 30.0
|
||||
size = 8.0
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(-0.931845, -0.0850834, 0.35274, -0.0909281, 0.995857, 1.46654e-08, -0.351279, -0.032074, -0.935721, -3.58319, 22.5795, 0.163277)
|
||||
visible = false
|
||||
|
||||
[node name="STAGE 3" parent="." instance=ExtResource("1_blsh8")]
|
||||
|
||||
[node name="Area3D2" type="Area3D" parent="." groups=["Level"]]
|
||||
|
||||
@@ -13,16 +13,6 @@ radius = 0.957319
|
||||
script = ExtResource("1_sqfsi")
|
||||
_levelIndex = 3
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.496974, 0.867765, 0, -0.867765, 0.496974, -0.378925, 11.1744, 5.15227)
|
||||
projection = 1
|
||||
fov = 30.0
|
||||
size = 8.0
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(-0.931845, -0.0850834, 0.35274, -0.0909281, 0.995857, 1.46654e-08, -0.351279, -0.032074, -0.935721, -3.58319, 22.5795, 0.163277)
|
||||
visible = false
|
||||
|
||||
[node name="STAGE 4" parent="." instance=ExtResource("1_qu6ym")]
|
||||
|
||||
[node name="Area3D2" type="Area3D" parent="." groups=["Level"]]
|
||||
|
||||
@@ -13,16 +13,6 @@ radius = 0.957319
|
||||
script = ExtResource("1_qbafj")
|
||||
_levelIndex = 4
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.496974, 0.867765, 0, -0.867765, 0.496974, -0.378925, 11.1744, 5.15227)
|
||||
projection = 1
|
||||
fov = 30.0
|
||||
size = 8.0
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(-0.931845, -0.0850834, 0.35274, -0.0909281, 0.995857, 1.46654e-08, -0.351279, -0.032074, -0.935721, -3.58319, 22.5795, 0.163277)
|
||||
visible = false
|
||||
|
||||
[node name="STAGE 5" parent="." instance=ExtResource("1_fagdb")]
|
||||
|
||||
[node name="Area3D2" type="Area3D" parent="." groups=["Level"]]
|
||||
|
||||
@@ -13,16 +13,6 @@ radius = 0.957319
|
||||
script = ExtResource("1_qlv44")
|
||||
_levelIndex = 5
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.496974, 0.867765, 0, -0.867765, 0.496974, -0.378925, 11.1744, 5.15227)
|
||||
projection = 1
|
||||
fov = 30.0
|
||||
size = 8.0
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(-0.931845, -0.0850834, 0.35274, -0.0909281, 0.995857, 1.46654e-08, -0.351279, -0.032074, -0.935721, -3.58319, 22.5795, 0.163277)
|
||||
visible = false
|
||||
|
||||
[node name="STAGE 6" parent="." instance=ExtResource("1_q1cka")]
|
||||
|
||||
[node name="Area3D2" type="Area3D" parent="." groups=["Level"]]
|
||||
|
||||
@@ -13,16 +13,6 @@ radius = 0.957319
|
||||
script = ExtResource("1_fio4n")
|
||||
_levelIndex = 6
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.496974, 0.867765, 0, -0.867765, 0.496974, -0.378925, 11.1744, 5.15227)
|
||||
projection = 1
|
||||
fov = 30.0
|
||||
size = 8.0
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(-0.931845, -0.0850834, 0.35274, -0.0909281, 0.995857, 1.46654e-08, -0.351279, -0.032074, -0.935721, -3.58319, 22.5795, 0.163277)
|
||||
visible = false
|
||||
|
||||
[node name="STAGE 7" parent="." instance=ExtResource("1_dc67b")]
|
||||
|
||||
[node name="Area3D2" type="Area3D" parent="." groups=["Level"]]
|
||||
|
||||
@@ -13,16 +13,6 @@ radius = 0.957319
|
||||
script = ExtResource("1_mo03n")
|
||||
_levelIndex = 7
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.496974, 0.867765, 0, -0.867765, 0.496974, -0.378925, 11.1744, 5.15227)
|
||||
projection = 1
|
||||
fov = 30.0
|
||||
size = 8.0
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(-0.931845, -0.0850834, 0.35274, -0.0909281, 0.995857, 1.46654e-08, -0.351279, -0.032074, -0.935721, -3.58319, 22.5795, 0.163277)
|
||||
visible = false
|
||||
|
||||
[node name="STAGE 8" parent="." instance=ExtResource("1_wd00s")]
|
||||
|
||||
[node name="Area3D2" type="Area3D" parent="." groups=["Level"]]
|
||||
|
||||
@@ -1,20 +1,60 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://0hdnmilwrsq6"]
|
||||
[gd_scene load_steps=10 format=3 uid="uid://0hdnmilwrsq6"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bs8iqbayeqqm" path="res://Levels/Models/STAGE 9.blend" id="1_ley6w"]
|
||||
[ext_resource type="Script" path="res://Scripts/HealthbarProgress.cs" id="2_53ar2"]
|
||||
[ext_resource type="Script" path="res://Scripts/P1SpawnPoint.cs" id="2_hr1h4"]
|
||||
[ext_resource type="Script" path="res://Scripts/P2SpawnPoint.cs" id="3_xr71f"]
|
||||
[ext_resource type="PackedScene" uid="uid://brbshysbgd47q" path="res://Scenes/god_circuit.tscn" id="4_vmhpd"]
|
||||
[ext_resource type="Texture2D" uid="uid://ccnmmyvs53gni" path="res://Textures/Style_1.png" id="5_jjg8p"]
|
||||
[ext_resource type="PackedScene" uid="uid://b1j0g6ikmnibm" path="res://Scenes/HPComponent.tscn" id="7_nvq88"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_8edkl"]
|
||||
font_color = Color(0, 0, 0, 1)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_slhvd"]
|
||||
size = Vector3(2.65272, 5.04315, 1.02395)
|
||||
|
||||
[node name="Level9" type="Node3D" groups=["Level"]]
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.496974, 0.867765, 0, -0.867765, 0.496974, -0.378925, 11.1744, 5.15227)
|
||||
projection = 1
|
||||
fov = 30.0
|
||||
size = 8.0
|
||||
[node name="Control" type="Control" parent="."]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(-0.931845, -0.0850834, 0.35274, -0.0909281, 0.995857, 1.46654e-08, -0.351279, -0.032074, -0.935721, -3.58319, 22.5795, 0.163277)
|
||||
visible = false
|
||||
[node name="TextureProgressBar" type="TextureProgressBar" parent="Control"]
|
||||
top_level = true
|
||||
z_index = 1
|
||||
layout_mode = 1
|
||||
anchors_preset = 10
|
||||
anchor_right = 1.0
|
||||
offset_left = 4.0
|
||||
offset_top = 44.0
|
||||
offset_right = 4.0
|
||||
offset_bottom = 73.0
|
||||
grow_horizontal = 2
|
||||
max_value = 2e+09
|
||||
value = 2e+09
|
||||
nine_patch_stretch = true
|
||||
texture_progress = ExtResource("5_jjg8p")
|
||||
script = ExtResource("2_53ar2")
|
||||
|
||||
[node name="Label" type="Label" parent="Control"]
|
||||
top_level = true
|
||||
z_index = 1
|
||||
layout_mode = 1
|
||||
anchors_preset = 5
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = -43.0
|
||||
offset_right = 43.0
|
||||
offset_bottom = 26.0
|
||||
grow_horizontal = 2
|
||||
text = "God Circuit
|
||||
"
|
||||
label_settings = SubResource("LabelSettings_8edkl")
|
||||
|
||||
[node name="STAGE 9" parent="." instance=ExtResource("1_ley6w")]
|
||||
|
||||
@@ -25,3 +65,20 @@ script = ExtResource("2_hr1h4")
|
||||
[node name="P2_SpawnPoint" type="Marker3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.29148, 0.123258, 5.44653)
|
||||
script = ExtResource("3_xr71f")
|
||||
|
||||
[node name="God Circuit" parent="." instance=ExtResource("4_vmhpd")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.54956, 1.08022, -0.0539055)
|
||||
|
||||
[node name="Area3D" type="Area3D" parent="God Circuit"]
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="God Circuit/Area3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.89871, 1.49756, -2.3792)
|
||||
shape = SubResource("BoxShape3D_slhvd")
|
||||
|
||||
[node name="HP Component" parent="God Circuit" node_paths=PackedStringArray("_healthBar") instance=ExtResource("7_nvq88")]
|
||||
MaximumHP = 2000000000
|
||||
_healthBar = NodePath("../../Control/TextureProgressBar")
|
||||
|
||||
[connection signal="body_entered" from="God Circuit/Area3D" to="God Circuit" method="OnHit"]
|
||||
|
||||
Reference in New Issue
Block a user