mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 23:48:11 +00:00
improvements
This commit is contained in:
@@ -60,7 +60,6 @@ func _ready() -> void:
|
||||
SpeedrunHandler.timer = 0
|
||||
get_tree().call_group("PlayerGhosts", "delete")
|
||||
get_tree().paused = false
|
||||
$Timer.start()
|
||||
AudioManager.stop_music_override(AudioManager.MUSIC_OVERRIDES.NONE, true)
|
||||
AudioManager.music_player.stop()
|
||||
PipeArea.exiting_pipe_id = -1
|
||||
@@ -96,7 +95,13 @@ func _ready() -> void:
|
||||
%CustomLevelName.text = LevelEditor.level_name
|
||||
|
||||
await get_tree().create_timer(0.1, false).timeout
|
||||
can_transition = true
|
||||
if Global.current_game_mode != Global.GameMode.CUSTOM_LEVEL:
|
||||
can_transition = true
|
||||
$Timer.start()
|
||||
else:
|
||||
if NewLevelBuilder.sub_levels == [null, null, null, null, null]:
|
||||
NewLevelBuilder.load_level(LevelEditor.level_file)
|
||||
transition()
|
||||
|
||||
func handle_challenge_mode_transition() -> void:
|
||||
$BG/Control/LivesCount.hide()
|
||||
@@ -124,8 +129,11 @@ func transition() -> void:
|
||||
Global.transition_to_scene(PIPE_CUTSCENE_OVERRIDE[Global.current_campaign][[Global.world_num, Global.level_num]])
|
||||
else:
|
||||
Global.transition_to_scene("res://Scenes/Levels/PipeCutscene.tscn")
|
||||
else:
|
||||
elif Global.current_game_mode != Global.GameMode.CUSTOM_LEVEL:
|
||||
Global.transition_to_scene(level_to_transition_to)
|
||||
else:
|
||||
await get_tree().create_timer(0.25, false).timeout
|
||||
Global.transition_to_scene(NewLevelBuilder.sub_levels[Checkpoint.sublevel_id])
|
||||
|
||||
func show_best_time() -> void:
|
||||
var best_time = SpeedrunHandler.best_time
|
||||
|
Reference in New Issue
Block a user