summaryrefslogtreecommitdiff
path: root/scripts/splashscreen.gd
blob: 22675a7110cce1b1a60612c3af9fb2c2e9813624 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extends Control

func _ready():
	global_variables.startup = true
	$AnimationPlayer.play("splashscreen")

func _on_AnimationPlayer_animation_finished(_splashscreen):
	change_scene()

func _input(event):
	if event.is_action_pressed("escape"):
		change_scene()

func change_scene():
	get_tree().change_scene("res://scenes/mainmenu.tscn")