- Conectats els mapes de EUI i exterior amb la resta
- [FIX] La càmera no se resetjava al carregar un nou mapa en el editor - [FIX] El joc no funcionava si venies de l'editor
This commit is contained in:
42
data/m_exterior.lua
Normal file
42
data/m_exterior.lua
Normal file
@@ -0,0 +1,42 @@
|
||||
levels["exterior"]={
|
||||
load=function()
|
||||
mapa.load("exterior.map")
|
||||
|
||||
switches.add({x=61,y=35,w=1,h=3,action=
|
||||
function()
|
||||
local hero = actors.search(actors.main.name)
|
||||
if hero.o=="r" then
|
||||
game.paused = true
|
||||
fade.fadeout()
|
||||
actors.main.x=0
|
||||
actors.main.y=12
|
||||
actors.main.o="r"
|
||||
actors.main.level="arq"
|
||||
game.init("arq")
|
||||
return true
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
switches.add({x=30,y=6,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=42
|
||||
actors.main.y=41
|
||||
actors.main.o="u"
|
||||
actors.main.level="eui"
|
||||
game.init("eui")
|
||||
return true
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user