19 lines
419 B
GDScript3
19 lines
419 B
GDScript3
|
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()
|