16 lines
262 B
Lua
16 lines
262 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
|