37 lines
1 KiB
GDScript
37 lines
1 KiB
GDScript
extends Node2D
|
|
|
|
func _ready():
|
|
SaveManager.load_game()
|
|
|
|
var currentLocation = SaveManager.get_save_value("location", LocationManager.Locations.Tutorial)
|
|
var locationEntrance = SaveManager.get_save_value("locationEntrance", 0)
|
|
|
|
GameVariables.get_game_variables()
|
|
DialogueBoxManager.initialize_variables()
|
|
MessageManager.initialize_variables()
|
|
LevelManager.hide_skills()
|
|
AchievementManager.update_achievement_states()
|
|
LocationManager.changeLocation(currentLocation, locationEntrance)
|
|
var launchTip = "Gamers Tip: After you click an object you can use the number keys to select which action you want to do."
|
|
MessageManager.addMessage(launchTip, null, "System", Color.BLACK,
|
|
true, false)
|
|
|
|
func _process(_delta):
|
|
pass
|
|
|
|
func pauseScene():
|
|
# Disable input processing for the base scene
|
|
set_process_input(false)
|
|
set_process(false)
|
|
|
|
# Hide the base scene nodes
|
|
self.visible = false
|
|
|
|
func resumeScene():
|
|
# Enable input processing for the base scene
|
|
set_process_input(true)
|
|
set_process(true)
|
|
|
|
# Show the base scene nodes
|
|
self.visible = true
|