function init_menu() -- add pause menu items first menuitem(1, "save game", save_game) menuitem(2, "erase save data", clear_save) end function menu_input() -- todo: implement an actual menu menu_mode = false end function draw_menu() end