require "fade" require "game" require "editor" require "menu" require "jailmoji" function mini.init() menu_option=0 objectes=surf.load("objects.gif") tiles=surf.load("tiles.gif") surf.source(tiles) local p=pal.load("tiles.gif") pal.set(p) sprites=surf.load("sprites.gif") sys.beat(6) fade.init() main_init() end function mini.update() update() end function text(txt,x,y,col) draw.text(txt,x-1,y-1,6) draw.text(txt,x,y-1,6) draw.text(txt,x+1,y-1,6) draw.text(txt,x-1,y,6) draw.text(txt,x+1,y,6) draw.text(txt,x-1,y+1,6) draw.text(txt,x,y+1,6) draw.text(txt,x+1,y+1,6) draw.text(txt,x,y,col) end function main_init() --set_update(menu_update) second_menu = {{"PEIV", function() end},{"TORNAR",show_main_menu}} main_menu = { {"JUGAR", game.restart}, {"EDITOR", editor.init}, {"JAILMOJI", jailmoji.editor.show}, {"EIXIR", sys.quit}, {"TEST", function() menu.show(second_menu) end } } show_main_menu() end function show_main_menu() menu.show(main_menu) end function set_update(new_update) update=new_update end function menu_update() surf.cls() draw.text("JAIL'S ADVENTURE 2",10,10,1) end function getkeyval(str) local c1,c2=string.find(str,"=") return string.sub(str,1,c1-1), string.sub(str,c2+1) end