- Ja es poden enllaçar mapes

- Treballant en els pasillos de arquitectura
This commit is contained in:
2023-02-03 20:11:17 +01:00
parent f651874e6b
commit def884b7ed
5 changed files with 52 additions and 26 deletions

26
data/m_arq.lua Normal file
View File

@@ -0,0 +1,26 @@
levels["arq"]={
load=function()
mapa.load("test.map")
actors.add({name="estudiant",x=18,y=8,o="r",gfx={x=0,y=48}})
actors.add({name="estudiant",x=16,y=9,o="l",gfx={x=128,y=0}})
switches.add({x=8,y=8,w=1,h=1,action=
function()
local hero = actors.search(actors.main.name)
if hero.o=="u" then
game.paused = true
fade.fadeout()
actors.main.x=6
actors.main.y=15
actors.main.o="u"
actors.main.level="jail1"
game.init("jail1")
return true
else
return false
end
end
})
end,
}