- [NEW] Convertit a mini v1.0 RC2
This commit is contained in:
@@ -3,41 +3,39 @@ require "game"
|
||||
require "editor"
|
||||
require "menu"
|
||||
|
||||
function _init()
|
||||
function mini.init()
|
||||
menu_option=0
|
||||
sprites=loadsurf("sprites.gif")
|
||||
objectes=loadsurf("objects.gif")
|
||||
tiles=loadsurf("tiles.gif")
|
||||
setsource(tiles)
|
||||
local pal=loadpal("tiles.gif")
|
||||
setpal(pal)
|
||||
beat(6)
|
||||
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 _update()
|
||||
function mini.update()
|
||||
update()
|
||||
end
|
||||
|
||||
function text(txt,x,y,col)
|
||||
color(6)
|
||||
prnt(txt,x-1,y-1)
|
||||
prnt(txt,x,y-1)
|
||||
prnt(txt,x+1,y-1)
|
||||
prnt(txt,x-1,y)
|
||||
prnt(txt,x+1,y)
|
||||
prnt(txt,x-1,y+1)
|
||||
prnt(txt,x,y+1)
|
||||
prnt(txt,x+1,y+1)
|
||||
color(col)
|
||||
prnt(txt,x,y)
|
||||
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}, {"EIXIR", quit}, {"TEST", function() menu.show(second_menu) end } }
|
||||
main_menu = { {"JUGAR", game.restart}, {"EDITOR", editor.init}, {"EIXIR", sys.quit}, {"TEST", function() menu.show(second_menu) end } }
|
||||
show_main_menu()
|
||||
end
|
||||
|
||||
@@ -50,9 +48,8 @@ function set_update(new_update)
|
||||
end
|
||||
|
||||
function menu_update()
|
||||
cls()
|
||||
color(1)
|
||||
prnt("JAIL'S ADVENTURE 2",10,10)
|
||||
surf.cls()
|
||||
draw.text("JAIL'S ADVENTURE 2",10,10,1)
|
||||
end
|
||||
|
||||
function getkeyval(str)
|
||||
|
||||
Reference in New Issue
Block a user