- [NEW] Escenari de La Vella
This commit is contained in:
@@ -28,6 +28,9 @@ levels["arq"]={
|
||||
actors.add({name="tablo_aula2",x=24,y=24,o="",action=levels.arq.tablo_aula2_action})
|
||||
actors.add({name="tablo_aula3",x=4,y=24,o="",action=levels.arq.tablo_aula3_action})
|
||||
|
||||
actors.add({name="maquina_cafe",x=62,y=5,o="",action=levels.arq.maquina_cafe_action})
|
||||
actors.add({name="maquina_exp",x=60,y=5,o="",action=levels.arq.maquina_exp_action})
|
||||
|
||||
if not flags.prac3 or not flags.prac2 or not flags.prac1 then
|
||||
actors.add({name="alutablo1",x=3,y=25,o="d",gfx={x=32,y=64}})
|
||||
actors.add({name="alutablo2",x=5,y=25,o="d",gfx={x=16,y=96},action=levels.arq.alutablo_action})
|
||||
@@ -128,6 +131,24 @@ levels["arq"]={
|
||||
end
|
||||
})
|
||||
|
||||
switches.add({x=64,y=0,w=8,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=33
|
||||
actors.main.o="u"
|
||||
actors.main.level="vella"
|
||||
game.init("vella")
|
||||
return true
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
switches.add({x=6,y=25,w=1,h=3,action=
|
||||
function()
|
||||
if not flags.prac3 or flags.prac3<2 then
|
||||
@@ -267,4 +288,42 @@ levels["arq"]={
|
||||
function() balloon.show("AULA 1: CMC\nAULA 2: ALG\nAULA 3: TCO",2,"jailer",false,{x=3,w=8,h=3}) end,
|
||||
})
|
||||
end,
|
||||
|
||||
maquina_cafe_action=function()
|
||||
if not objects.collected("moneda") then
|
||||
scene.start({
|
||||
function() balloon.show("EI!\nMÀQUINA DE CAFE!",2,"jailer",true,{x=6,w=10,h=2}) end,
|
||||
function() balloon.show("ME ANE A FERME\nUN CORTAET...",2,"jailer",true,{x=6,w=9,h=2}) end,
|
||||
function() balloon.show(" AAAAAAAAAAAAAH!!!",15,"jailer",true,{x=3,w=14,h=1}) end,
|
||||
function() balloon.show("ESPERA UN MOMENT...",2,"jailer",true,{x=4,w=12,h=1}) end,
|
||||
function() balloon.show("SI RESULTA QUE\nNO TINC SOLT!",2,"jailer",true,{x=6,w=9,h=2}) end,
|
||||
function() balloon.show("MERDA DE MÁQUINA!",2,"jailer",true,{x=5,w=11,h=1}) end,
|
||||
})
|
||||
else
|
||||
scene.start({
|
||||
function() balloon.show("NO VAIG A USAR\nESTA MÀQUINA...",2,"jailer",true,{x=6,w=10,h=2}) end,
|
||||
function() balloon.show("NO SOC UN\nDESAPRENSIU!!",2,"jailer",true,{x=6,w=9,h=2}) end,
|
||||
})
|
||||
end
|
||||
end,
|
||||
|
||||
maquina_exp_action=function()
|
||||
if not objects.collected("moneda") then
|
||||
if not objects.collected("moneda2") then
|
||||
scene.start({
|
||||
function() balloon.show("NO DUC MONEDES...",2,"jailer",true,{x=5,w=11,h=1}) end,
|
||||
})
|
||||
else
|
||||
scene.start({
|
||||
function() objects.leave("moneda2") scene.cont() end,
|
||||
function() objects.collect("rosquilletes") end,
|
||||
})
|
||||
end
|
||||
else
|
||||
scene.start({
|
||||
function() balloon.show("PASSE...\nNOMÉS QUEDEN\nROSQUILLETES",2,"jailer",true,{x=6,w=9,h=3}) end,
|
||||
})
|
||||
end
|
||||
end,
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user