game_loop nearly done
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user