This commit is contained in:
megamichi 2024-10-01 15:56:30 +02:00
commit 80f2563cdc
95 changed files with 3327 additions and 0 deletions

20
code/GUI/restartschild.gd Normal file
View file

@ -0,0 +1,20 @@
extends Sprite2D
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
global_position.y = -80
func _process(_delta: float) -> void:
global_position.x = get_viewport().get_visible_rect().size.x * 0.5
func _on_duck_gameover() -> void:
$AnimationPlayer.play("in")
show()
func _on_restart_pressed() -> void:
$"../..".start_game()
$AnimationPlayer.play("out")
await $AnimationPlayer.animation_finished
hide()

18
code/GUI/startschild.gd Normal file
View file

@ -0,0 +1,18 @@
extends Sprite2D
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
$AnimationPlayer.play("in")
show()
func _process(_delta: float) -> void:
global_position.x = get_viewport().get_visible_rect().size.x -51
$Logo.global_position.x = 0
func _on_start_pressed() -> void:
$"../..".start_game()
$AnimationPlayer.play("out")
await $AnimationPlayer.animation_finished
hide()