Lots of work on saving, enemies and object positions are now saved

This commit is contained in:
Derek
2024-12-02 22:52:21 -06:00
parent a9aaed9c6f
commit 299257e0d9
22 changed files with 186 additions and 30 deletions

View File

@@ -43,6 +43,7 @@ var engine_time_scale_cache : float = 1.0
# Called when the node enters the scene tree for the first time.
func _ready():
#refresh_scene()
##LOAD DATA
SaveLoad.load_persistent_data()
SaveLoad.load_save_game_data()
@@ -54,7 +55,9 @@ func _ready():
var crown_spawn = crown.instantiate()
if SaveLoad.last_hit_path:
var crown_target = get_node(SaveLoad.last_hit_path)
crown_target.add_child(crown_spawn)
if crown_target:
crown_target.add_child(crown_spawn)
crown_spawn.position = Vector3(0,2,0)
else:
get_tree().get_root().add_child(crown_spawn)
#global randomize function