forked from team-sg/hero-mark-2
added saving
This commit is contained in:
parent
1ca21d438f
commit
969364ebce
40 changed files with 625 additions and 88 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue