DuckRun/code/GUI/startschild.gd

22 lines
482 B
GDScript3
Raw Permalink Normal View History

2024-10-03 21:12:20 +02:00
extends TextureRect
2024-10-01 15:56:30 +02:00
2024-10-01 15:56:30 +02:00
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
$"../StartSchildLogo/AnimationPlayer".pop_in()
$AnimationPlayer.pop_in()
$Start.grab_focus()
2024-10-01 15:56:30 +02:00
func _on_start_pressed() -> void:
$AnimationPlayer.pop_out()
$"../StartSchildLogo/AnimationPlayer".pop_out()
2024-10-01 15:56:30 +02:00
$"../..".start_game()
2024-10-03 21:12:20 +02:00
func _on_settings_pressed() -> void:
$"../StartSchildLogo/AnimationPlayer".pop_out()
$AnimationPlayer.pop_out()
2024-10-03 21:12:20 +02:00
$"../Settings".open()