Reworked ending code to be more player node determined; added heart
animation; added reversable cloud scale toggle.
This commit is contained in:
parent
2db69a689b
commit
5bf3078953
10 changed files with 125 additions and 34 deletions
|
|
@ -116,6 +116,9 @@ func new_game():
|
|||
add_child(instance)
|
||||
$Player.start()
|
||||
|
||||
# Reset Clouds
|
||||
EventBus.cloud_speed.emit(false)
|
||||
|
||||
# Do some DapperGoose talk
|
||||
await get_tree().create_timer(1.5).timeout
|
||||
EventBus.goose_talk.emit(6)
|
||||
|
|
@ -158,8 +161,9 @@ func _on_secret_win_game():
|
|||
|
||||
func _on_win_game():
|
||||
playing = false
|
||||
game_over.show()
|
||||
$Player._on_player_victory()
|
||||
await $Player._on_player_victory()
|
||||
game_over.show()
|
||||
await get_tree().create_timer(8).timeout
|
||||
game_over.hide()
|
||||
$CanvasLayer/Title.show()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue