Add savegame clearing function.
This commit is contained in:
parent
77f3d49ba9
commit
109283a383
1 changed files with 5 additions and 0 deletions
|
@ -13,3 +13,8 @@ function save_game()
|
||||||
dset(0, player_x)
|
dset(0, player_x)
|
||||||
dset(1, player_y)
|
dset(1, player_y)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- delete the save data
|
||||||
|
function clear_save()
|
||||||
|
memset(0x5e00, 0, 256)
|
||||||
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue