|
@ -22,7 +22,7 @@ local game_scene_menu_options = { |
|
|
{ |
|
|
{ |
|
|
texture = TEXTURES.LOAD_GAME_HEX, |
|
|
texture = TEXTURES.LOAD_GAME_HEX, |
|
|
action = function() |
|
|
action = function() |
|
|
local save = am.load_state("save", "json") |
|
|
|
|
|
|
|
|
local save = am.load_state("save", "lua") |
|
|
|
|
|
|
|
|
if save then |
|
|
if save then |
|
|
game_init(save) |
|
|
game_init(save) |
|
@ -741,7 +741,7 @@ function game_end() |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
function game_save() |
|
|
function game_save() |
|
|
am.save_state("save", game_serialize(), "json") |
|
|
|
|
|
|
|
|
am.save_state("save", game_serialize(), "lua") |
|
|
gui_alert("succesfully saved!") |
|
|
gui_alert("succesfully saved!") |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|