Updated event_bus to have shield change single; attempted to update
player's set shield but running into problems at runtime.
This commit is contained in:
parent
d64504189a
commit
1ebba28e5d
7 changed files with 18 additions and 12 deletions
|
|
@ -61,6 +61,9 @@ region_rect = Rect2(0, 0, 240, 320)
|
|||
|
||||
[node name="Player" parent="." instance=ExtResource("2_0xm2m")]
|
||||
position = Vector2(123, 270)
|
||||
max_shield = null
|
||||
speed = null
|
||||
cooldown = null
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
|
|
@ -89,6 +92,4 @@ texture_normal = ExtResource("5_lquwl")
|
|||
layout_mode = 2
|
||||
texture = ExtResource("6_7mycd")
|
||||
|
||||
[connection signal="died" from="Player" to="." method="_on_player_died"]
|
||||
[connection signal="shield_changed" from="Player" to="CanvasLayer/UI" method="update_shield"]
|
||||
[connection signal="pressed" from="CanvasLayer/CenterContainer/Start" to="." method="_on_start_pressed"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue