game_loop nearly done

This commit is contained in:
2025-06-12 22:23:52 +02:00
parent 0730c6d40a
commit 402d44e2bb
30 changed files with 136 additions and 173 deletions
+5 -3
View File
@@ -9,6 +9,8 @@ signal transition_finished
@onready var small_animation = $SmallFading/SmallFadingAnimation
@onready var mask = $Mask
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
@@ -17,7 +19,7 @@ func _ready() -> void:
mask.visible = false
big_animation.connect("animation_finished", _on_animation_finished)
small_animation.connect("animation_finished", _on_animation_finished)
func _on_animation_finished(anim_name):
@@ -31,7 +33,7 @@ func _on_animation_finished(anim_name):
Globals.is_transitioning = false
big_fading.visible = false
small_fading.visible = false
#Handles fading transitions
@@ -45,7 +47,7 @@ func fading(size):
elif size == "small":
small_fading.visible = true
small_animation.play("fade_to_black")
#Transitions the scenes