a_pleasant_stroll/savegame.lua

21 lines
339 B
Lua

-- functions to save and restore cartdata
function init_savegame()
cartdata"annabunches_a_pleasant_stroll_e25d3e5c"
end
function load_game()
player_x = dget(0)
player_y = dget(1)
end
function save_game()
dset(0, player_x)
dset(1, player_y)
end
-- delete the save data
function clear_save()
memset(0x5e00, 0, 256)
end