Fixed some bugs
This commit is contained in:
@@ -21,3 +21,5 @@ shape = SubResource("CircleShape2D_xxtvk")
|
||||
|
||||
[node name="HeathBar" parent="." node_paths=PackedStringArray("health") instance=ExtResource("3_l62e5")]
|
||||
health = NodePath("../Health")
|
||||
|
||||
[connection signal="depleted" from="Health" to="." method="_on_health_depleted"]
|
||||
|
||||
@@ -11,7 +11,6 @@ script = ExtResource("2_fwvrd")
|
||||
|
||||
[node name="EnemyController" parent="." index="4" instance=ExtResource("3_l8c0n")]
|
||||
|
||||
[connection signal="depleted" from="Health" to="." method="_on_health_depleted"]
|
||||
[connection signal="accelerate" from="EnemyController" to="." method="accelerate"]
|
||||
[connection signal="reload" from="EnemyController" to="." method="reload"]
|
||||
[connection signal="shoot" from="EnemyController" to="." method="shoot"]
|
||||
|
||||
@@ -27,5 +27,6 @@ shape = SubResource("CapsuleShape2D_cuapu")
|
||||
[node name="Health" parent="." index="2"]
|
||||
max_hull = 200
|
||||
|
||||
[node name="HeathBar" parent="." index="4"]
|
||||
position = Vector2(0, 30)
|
||||
[node name="HeathBar" parent="." index="3"]
|
||||
offset_top = 30.0
|
||||
offset_bottom = 30.0
|
||||
|
||||
@@ -26,8 +26,6 @@ shape = SubResource("CapsuleShape2D_4jmkv")
|
||||
[node name="Health" parent="." index="2"]
|
||||
max_hull = 100
|
||||
|
||||
[node name="HeathBar" parent="." index="4"]
|
||||
[node name="HeathBar" parent="." index="3"]
|
||||
offset_top = 30.0
|
||||
offset_bottom = 30.0
|
||||
|
||||
[connection signal="depleted" from="Health" to="." method="_on_health_depleted"]
|
||||
|
||||
@@ -26,5 +26,6 @@ shape = SubResource("CapsuleShape2D_lopve")
|
||||
[node name="Health" parent="." index="2"]
|
||||
max_hull = 50
|
||||
|
||||
[node name="HeathBar" parent="." index="4"]
|
||||
position = Vector2(0, 14)
|
||||
[node name="HeathBar" parent="." index="3"]
|
||||
offset_top = 14.0
|
||||
offset_bottom = 14.0
|
||||
|
||||
@@ -37,7 +37,6 @@ offset_bottom = 22.0
|
||||
|
||||
[node name="PlayerController" parent="." index="4" instance=ExtResource("3_4mjo1")]
|
||||
|
||||
[connection signal="depleted" from="Health" to="." method="_on_health_depleted"]
|
||||
[connection signal="accelerate" from="PlayerController" to="." method="accelerate"]
|
||||
[connection signal="reload" from="PlayerController" to="." method="reload"]
|
||||
[connection signal="shoot" from="PlayerController" to="." method="shoot"]
|
||||
|
||||
Reference in New Issue
Block a user