a_pleasant_stroll/main.lua

35 lines
520 B
Lua

function _init()
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()
if menu_mode then
menu_input""
else
player_input""
end
end
function _draw()
cls""
if (menu_mode) then
draw_menu""
else
draw_world(player_x, player_y)
draw_player""
end
debug_print""
end