added saving

This commit is contained in:
pennyrigate 2023-01-03 20:52:30 -05:00
parent 1ca21d438f
commit 969364ebce
40 changed files with 625 additions and 88 deletions

View file

@ -278,4 +278,9 @@ func debug():
if Input.is_action_pressed("debug_move_player"):
position = get_viewport().get_mouse_position()
print(get_viewport().get_mouse_position())
if Input.is_action_just_pressed("debug_1"):
Game.save()
if Input.is_action_just_pressed("debug_2"):
var save = ConfigFile.new()
save.load(str("user://file") + str(1) + str(".pr"))
Game.score = save.get_value(str(Game.current_level),"Score",0)