hero-mark-2/menus/credits.gd
pennyrigate 8b47d86acf ending
2024-07-09 22:44:57 -04:00

13 lines
347 B
GDScript

extends Node
func _notification(what: int) -> void:
match what:
NOTIFICATION_WM_FOCUS_OUT:
$AnimationPlayer.playback_active = false
NOTIFICATION_WM_FOCUS_IN:
$AnimationPlayer.playback_active = true
func _ready():
Fade.fade_in(Options.transition_speed_secs)
Audio.play_music(load("res://audio/music/rev83-wondering-now-short.ogg"))