forked from team-sg/hero-mark-2
global takeover of transition_speed variable
This commit is contained in:
parent
ddafe49d12
commit
bfbc0dfd2b
18 changed files with 42 additions and 42 deletions
|
@ -53,7 +53,7 @@ func _ready() -> void:
|
|||
chosen_name.text = ""
|
||||
file.name = ""
|
||||
# fade in
|
||||
Fade.fade_in(0.4)
|
||||
Fade.fade_in(Options.transition_speed_secs)
|
||||
# focus the difficulty
|
||||
$"%Spicy".call_deferred("grab_focus")
|
||||
|
||||
|
@ -69,13 +69,13 @@ func _set_difficulty(value: int) -> void:
|
|||
|
||||
|
||||
func _difficulty_selected() -> void:
|
||||
Fade.fade_out(0.4)
|
||||
Fade.fade_out(Options.transition_speed_secs)
|
||||
yield(Fade, "fade_finished")
|
||||
$"%DifficultySelect".queue_free()
|
||||
$"%NameEntry".visible = true
|
||||
get_tree().paused = false
|
||||
Game.use_lives = false
|
||||
Fade.fade_in(0.4)
|
||||
Fade.fade_in(Options.transition_speed_secs)
|
||||
|
||||
func _on_letter_chosen(letter: String) -> void:
|
||||
if file.name.length() < 8:
|
||||
|
@ -104,7 +104,7 @@ func _on_player_teleport_finished() -> void:
|
|||
file.save_to_file()
|
||||
Save.current_file = file
|
||||
Game.difficulty = file.difficulty
|
||||
Fade.fade_out(0.4)
|
||||
Fade.fade_out(Options.transition_speed_secs)
|
||||
yield(Fade, "fade_finished")
|
||||
get_tree().paused = false
|
||||
SceneManager.current_scene = load("res://cutscenes/intro_story.tscn").instance()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue