mlpcardgame/Scenes/Scripts/TitleScreen.gd

17 lines
315 B
GDScript

extends Control
signal loaded()
func _ready():
emit_signal("loaded")
func _anim_finished(anim_name):
if anim_name == "FadeIn":
$Intro/AnimationPlayer.play("FadeTitle")
# Load bgm
BGM.set_volume(BGM.HIGH)
BGM.load_music("title")
pass
func _go_to_lobby():
Loader.load_scene("res://Scenes/Lobby.tscn")