2019-12-04 23:48:04 +00:00
|
|
|
function _init()
|
2019-12-11 20:27:50 +00:00
|
|
|
pal(11, 139, 1)
|
2019-12-11 07:13:11 +00:00
|
|
|
|
2019-12-11 20:27:50 +00:00
|
|
|
-- module inits
|
|
|
|
init_savegame""
|
2019-12-11 06:06:33 +00:00
|
|
|
init_sound""
|
|
|
|
init_world""
|
2019-12-11 06:34:46 +00:00
|
|
|
init_player""
|
2019-12-11 06:06:33 +00:00
|
|
|
init_debug""
|
2019-12-11 20:27:50 +00:00
|
|
|
|
|
|
|
load_game""
|
|
|
|
|
2019-12-04 23:48:04 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
function _update()
|
2019-12-11 06:06:33 +00:00
|
|
|
handle_input""
|
2019-12-04 23:48:04 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
function _draw()
|
2019-12-11 06:06:33 +00:00
|
|
|
cls""
|
2019-12-11 06:34:46 +00:00
|
|
|
draw_world(player_x, player_y)
|
2019-12-11 06:06:33 +00:00
|
|
|
draw_player""
|
|
|
|
debug_print""
|
2019-12-04 23:48:04 +00:00
|
|
|
end
|