From 109283a383fb012d0327695b230f6ee5799c65e5 Mon Sep 17 00:00:00 2001 From: Anna Wiggins Date: Wed, 11 Dec 2019 18:20:13 -0500 Subject: [PATCH] Add savegame clearing function. --- savegame.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/savegame.lua b/savegame.lua index 3d37d86..f1ef788 100644 --- a/savegame.lua +++ b/savegame.lua @@ -13,3 +13,8 @@ function save_game() dset(0, player_x) dset(1, player_y) end + +-- delete the save data +function clear_save() + memset(0x5e00, 0, 256) +end