Player now comes up from the bottom of the screen on a new game.
This commit is contained in:
parent
dec3cbe595
commit
099440d27f
3 changed files with 20 additions and 13 deletions
2
main.gd
2
main.gd
|
|
@ -46,8 +46,8 @@ func _on_player_died():
|
|||
func new_game():
|
||||
Global.score = 0
|
||||
EventBus.initialize_shieldbar.emit()
|
||||
$CanvasLayer/UI.update_score(Global.score)
|
||||
$Player.start()
|
||||
$CanvasLayer/UI.update_score(Global.score)
|
||||
spawn_enemies()
|
||||
playing = true
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue