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() menu_mode = false -- todo: implement an actual menu end function draw_menu() end