a_pleasant_stroll/main.lua

35 lines
520 B
Lua
Raw Normal View History

2019-12-04 23:48:04 +00:00
function _init()
pal(11, 139, 1) -- tone down the bright green
menu_mode = false -- global used for menu control
2019-12-11 07:13:11 +00:00
-- module inits
init_savegame""
init_menu""
init_sound""
init_world""
init_player""
init_debug""
load_game""
2019-12-04 23:48:04 +00:00
end
function _update()
if menu_mode then
menu_input""
else
player_input""
end
2019-12-04 23:48:04 +00:00
end
function _draw()
cls""
if (menu_mode) then
draw_menu""
else
draw_world(player_x, player_y)
draw_player""
end
debug_print""
2019-12-04 23:48:04 +00:00
end