mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
couple things, icr
This commit is contained in:
@@ -117,6 +117,10 @@ func check_for_ghost() -> void:
|
||||
|
||||
func get_highscore() -> void:
|
||||
%HighScore.text = "TOP- " + str(Global.high_score).pad_zeros(6)
|
||||
if Global.world_num == 1 and Global.level_num == 1 and Global.score <= 0:
|
||||
%StoryOptions.selected_index = 0
|
||||
else:
|
||||
%StoryOptions.selected_index = 1
|
||||
|
||||
func clear_stats() -> void:
|
||||
Global.clear_saved_values()
|
||||
@@ -132,6 +136,7 @@ func start_game() -> void:
|
||||
Global.transition_to_scene("res://Scenes/Levels/LevelTransition.tscn")
|
||||
|
||||
func start_full_run() -> void:
|
||||
Global.second_quest = false
|
||||
Global.current_game_mode = Global.GameMode.MARATHON
|
||||
SpeedrunHandler.timer = 0
|
||||
if SpeedrunHandler.is_warp_run:
|
||||
@@ -148,6 +153,7 @@ func start_full_run() -> void:
|
||||
Global.transition_to_scene("res://Scenes/Levels/LevelTransition.tscn")
|
||||
|
||||
func start_level_run() -> void:
|
||||
Global.second_quest = false
|
||||
Global.current_game_mode = Global.GameMode.MARATHON_PRACTICE
|
||||
SpeedrunHandler.timer = 0
|
||||
if SpeedrunHandler.is_warp_run:
|
||||
@@ -166,6 +172,7 @@ func _exit_tree() -> void:
|
||||
Global.in_title_screen = false
|
||||
|
||||
func challenge_hunt_selected() -> void:
|
||||
Global.second_quest = false
|
||||
Global.current_game_mode = Global.GameMode.CHALLENGE
|
||||
Global.reset_values()
|
||||
Global.clear_saved_values()
|
||||
@@ -220,6 +227,7 @@ func quit_game() -> void:
|
||||
get_tree().quit()
|
||||
|
||||
func new_game_selected() -> void:
|
||||
Global.second_quest = false
|
||||
Global.current_game_mode = Global.GameMode.CAMPAIGN
|
||||
if Global.game_beaten:
|
||||
%QuestSelect.open()
|
||||
@@ -227,6 +235,7 @@ func new_game_selected() -> void:
|
||||
$CanvasLayer/StoryMode/NewUnbeatenGame/NoBeatenCharSelect.open()
|
||||
|
||||
func continue_game() -> void:
|
||||
SaveManager.apply_save(SaveManager.load_save(Global.current_campaign))
|
||||
Global.current_game_mode = Global.GameMode.CAMPAIGN
|
||||
if Global.game_beaten:
|
||||
$CanvasLayer/StoryMode/ContinueBeatenGame/WorldSelect.open()
|
||||
|
Reference in New Issue
Block a user