20 lines
458 B
GDScript
20 lines
458 B
GDScript
extends Node
|
|
|
|
var game_loaded := false
|
|
|
|
func _ready():
|
|
%SplashScreenAnimationPlayer.play("SplashScreen")
|
|
|
|
await %SplashScreenAnimationPlayer.animation_finished
|
|
|
|
load_game()
|
|
|
|
func _input(event):
|
|
if event is InputEventKey or event is InputEventJoypadButton or event is InputEventMouseButton:
|
|
load_game()
|
|
|
|
func load_game():
|
|
if not game_loaded:
|
|
game_loaded = true
|
|
SceneManager.change_to_scene(TitleScene.new(), false)
|