Start implementing a menu system, fix game save/load.

This commit is contained in:
Anna Rose Wiggins 2019-12-11 18:43:11 -05:00
parent 109283a383
commit ea8b0360bc
4 changed files with 35 additions and 7 deletions

View file

@ -1,25 +1,34 @@
function _init()
pal(11, 139, 1)
pal(11, 139, 1) -- tone down the bright green
menu_mode = false -- global used for menu control
-- module inits
init_savegame""
init_menu""
init_sound""
init_world""
init_player""
init_debug""
load_game""
end
function _update()
handle_input""
if menu_mode then
menu_input""
else
player_input""
end
end
function _draw()
cls""
draw_world(player_x, player_y)
draw_player""
if (menu_mode) then
draw_menu""
else
draw_world(player_x, player_y)
draw_player""
end
debug_print""
end