- Treballant en els mapes i escenes de totes les aules de pràctiques

This commit is contained in:
2023-02-08 19:02:23 +01:00
parent eb7ee7427b
commit f176369ba8
8 changed files with 248 additions and 32 deletions

View File

@@ -23,6 +23,42 @@ levels["arq"]={
end
})
switches.add({x=20,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=12
actors.main.y=16
actors.main.o="u"
actors.main.level="prac2"
game.init("prac2")
return true
else
return false
end
end
})
switches.add({x=8,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="prac3"
game.init("prac3")
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)