- [NEW] Renombrat de una puta vegada el mapa "test" a "arq" (arquitectura), que es la zona que li toca

- [NEW] Nou menúi de debug durant el joc
- [NEW] Ara es pot pasar del joc al editor i viceversa in situ.
This commit is contained in:
2025-06-01 00:04:30 +02:00
parent c2f7b470bf
commit e285bcd4fd
4 changed files with 37 additions and 1 deletions

View File

@@ -30,6 +30,15 @@ game={
--game.init("arq")
end,
startfromeditor=function(s_level, s_x, s_y)
flags={}
objects.list={}
actors.main={name="jailer",x=s_x,y=s_y,o="d",gfx={x=32,y=0},level=s_level}
game.init(s_level)
--actors.main={name="jailer",x=8,y=12,o="l",gfx={x=32,y=0},level="arq"}
--game.init("arq")
end,
init=function(levelname,f,objs)
if f then flags=f end
@@ -61,6 +70,14 @@ game={
}, game.resume)
end,
show_debug_menu=function()
game.pause()
menu.show({ {"EDIT FROM HERE", editor.editfrom},
{"CARREGAR PARTIDA", game.load},
{"EIXIR", main_init},
}, game.resume)
end,
save=function()
local i=1
file = io.open(config.folder().."slot"..i..".txt", "w")
@@ -188,6 +205,8 @@ game={
end
if key.press(key.ESCAPE) then
game.show_menu()
elseif key.press(key.TAB) then
game.show_debug_menu()
end
if sys.beat() then actors.update() end