Fixed shield issue by removing old experiments and ensuring the right
values were being used!
This commit is contained in:
parent
c8d578af04
commit
b5d97c0ffb
3 changed files with 32 additions and 20 deletions
6
main.gd
6
main.gd
|
|
@ -75,6 +75,9 @@ func new_game():
|
|||
Global.score = 0
|
||||
$CanvasLayer/UI.update_score(Global.score)
|
||||
|
||||
# Tell the shield to recharge.
|
||||
# EventBus.initialize_shieldbar.emit()
|
||||
# await EventBus.initialize_shieldbar
|
||||
|
||||
# instantiate the Player
|
||||
# await get_tree().create_timer(1).timeout
|
||||
|
|
@ -82,9 +85,6 @@ func new_game():
|
|||
add_child(instance)
|
||||
$Player.start()
|
||||
|
||||
# Tell the shield to recharge.
|
||||
EventBus.initialize_shieldbar.emit()
|
||||
|
||||
# Tell the enemies to spawn!
|
||||
#await get_tree().create_timer(.5).timeout
|
||||
spawn_enemies()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue