title_screen

This commit is contained in:
2025-06-04 20:07:02 +02:00
parent 63275e31a8
commit 7e18355408
151 changed files with 708 additions and 15568 deletions
+26
View File
@@ -0,0 +1,26 @@
extends CanvasLayer
signal on_transition_finished
@onready var color_rect = $ColorRect
@onready var animation_player = $AnimationPlayer
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
color_rect.visible = false
animation_player.connect("animation_finished", _on_animation_finished)
func _on_animation_finished(anim_name):
if anim_name == "fade_to_black":
on_transition_finished.emit()
animation_player.play("fade_to_normal")
elif anim_name == "fade_to_normal":
color_rect.visible = false
func transition():
color_rect.visible = true
animation_player.play("fade_to_black")