- Treballant en els mapes de arq i prac1

This commit is contained in:
2023-02-07 19:03:59 +01:00
parent b135122e21
commit d4ea19ee05
8 changed files with 160 additions and 135 deletions

View File

@@ -2,10 +2,28 @@ 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}})
actors.add({name="estudiant",x=18,y=11,o="r",gfx={x=0,y=48}})
actors.add({name="estudiant",x=16,y=12,o="l",gfx={x=128,y=0}})
switches.add({x=8,y=8,w=1,h=1,action=
switches.add({x=32,y=25,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=9
actors.main.y=16
actors.main.o="u"
actors.main.level="prac1"
game.init("prac1")
return true
else
return false
end
end
})
switches.add({x=6,y=11,w=1,h=1,action=
function()
local hero = actors.search(actors.main.name)
if hero.o=="u" then