fixed up some lost levels stuff

This commit is contained in:
JHDev2006
2025-09-29 20:03:19 +01:00
parent 528c4ddfa9
commit 8ae27f63a6
9 changed files with 1665 additions and 1437 deletions

View File

@@ -25,7 +25,9 @@ func _ready() -> void:
func _process(_delta: float) -> void:
if can_exit and Input.is_action_just_pressed("jump_0"):
SaveManager.write_save()
if seen or Global.current_campaign == "SMBANN" or Global.world_num > 8 or Global.current_game_mode != Global.GameMode.CAMPAIGN:
if Global.current_campaign == "SMBANN":
Global.open_disco_results()
elif seen or Global.world_num > 8 or Global.current_game_mode != Global.GameMode.CAMPAIGN:
Global.transition_to_scene("res://Scenes/Levels/TitleScreen.tscn")
else:
CreditsLevel.go_to_title_screen = false

View File

@@ -29,6 +29,9 @@ func set_focus(enabled := false) -> void:
i.focus_mode = 0 if enabled == false else 2
func continue_to_next_level() -> void:
if Global.world_num == 8 and Global.level_num == 4:
go_to_menu()
return
Global.current_level.transition_to_next_level()
Global.disco_level_continued.emit()
close()