- Gui Improvement

- ground improvement for future bioms
- first sounds
This commit is contained in:
megamichi 2024-10-07 17:02:32 +02:00
parent 9b8f4db275
commit 2f0e5a59d9
15 changed files with 165 additions and 157 deletions

View file

@ -12,12 +12,15 @@ func _process(_delta: float) -> void:
func _on_duck_gameover() -> void:
$AnimationPlayer.play_backwards("out-in")
$"../../Audio/GameOver".play()
$"../../Audio/Gui-in".play()
show()
func _on_restart_pressed() -> void:
$"../..".start_game()
$AnimationPlayer.play("out-in")
$"../../Audio/Gui-out".play()
await $AnimationPlayer.animation_finished
hide()

View file

@ -13,9 +13,11 @@ func _process(_delta: float) -> void:
func open():
show()
$AnimationPlayer.play_backwards("out-in")
$"../../Audio/Gui-in".play()
func _on_back_pressed() -> void:
$AnimationPlayer.play("out-in")
$"../../Audio/Gui-out".play()
await $AnimationPlayer.animation_finished
hide()
$"../StartSchild"._ready()

View file

@ -4,22 +4,24 @@ extends TextureRect
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
$AnimationPlayer.play_backwards("out-in")
$"../../Audio/Gui-in".play()
show()
func _process(_delta: float) -> void:
global_position.x = get_viewport().get_visible_rect().size.x -100
$Logo.global_position.x = 0
func _process(delta: float) -> void:
$Logo.global_position.x = -5
func _on_start_pressed() -> void:
$"../..".start_game()
$AnimationPlayer.play("out-in")
$"../../Audio/Gui-out".play()
await $AnimationPlayer.animation_finished
hide()
func _on_settings_pressed() -> void:
$AnimationPlayer.play("out-in")
$"../../Audio/Gui-out".play()
await $AnimationPlayer.animation_finished
hide()
$"../Settings".open()