- 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

@@ -32,20 +32,69 @@ levels["prac1"]={
--actors.add({name="usufondo",x=16,y=14,o="d",gfx={x=0,y=0}})
switches.add({x=9,y=16,w=1,h=1,action=
function()
local hero = actors.search(actors.main.name)
if hero.o=="d" then
game.paused = true
fade.fadeout()
actors.main.x=32
actors.main.y=25
actors.main.o="d"
actors.main.level="arq"
game.init("arq")
return true
else
return false
end
end
})
switches.add({x=4,y=14,w=10,h=1,action=
function()
scene.start({
--function() actors.add({name="usufondo",x=16,y=8,o="d",gfx={x=0,y=0}}) scene.cont() end,
--function() wait.start(1) end,
function() balloon.show("OYE TU!",9,"profe",false,{x=4,w=6,h=1}) end,
function() actors.search("profe").path={pos=0,route='rrrdddddd'} end,
function() balloon.show("TE PARECE HORA DE LLEGAR\nA LA PRÁCTICA?",9,"profe",false,{x=3,w=14,h=2}) end,
-- function() actors.search("usufondo").path={pos=0,route='rrrrru'} end,
-- function() wait.start(0.5) end,
-- function() actors.remove("usufondo") scene.cont() end,
function() wait.start(1) end,
function() balloon.show("IMBÈSIL...",2,"jailer",true,{x=5,w=7,h=1}) end
})
flags.prac1=1
if not flags.prac1 then
flags.prac1=1
scene.start({
function() balloon.show("OYE TU!",12,"profe",false,{x=4,w=6,h=1}) end,
function() actors.search("profe").path={pos=0,route='rrrdddddd'} end,
function() balloon.show("TE PARECE HORA DE LLEGAR\nA LA PRÁCTICA?",12,"profe",false,{x=3,w=14,h=2}) end,
function() balloon.show("AL MENOS TENDRÁS\nLOS APUNTES\n¿NO?",12,"profe",false,{x=3,w=14,h=3}) end,
function() balloon.show("PUES...\nNO",2,"jailer",false,{x=5,w=7,h=2}) end,
function() balloon.show("¿¿QUÉ??\n¡ESTO ES EL COLMO!",12,"profe",false,{x=3,w=14,h=2}) end,
function() balloon.show("¡LARGO!\n¡Y NO VUELVAS SIN\nLOS APUNTES!",12,"profe",false,{x=3,w=14,h=3}) end,
function() actors.search("jailer").path={pos=0,route='dd'} end
})
return true
elseif flags.prac1==1 then
if not objects.search("apuntes_1015") then
scene.start({
function() balloon.show("¿OTRA VEZ TU?",12,"profe",false,{x=4,w=9,h=1}) end,
function() actors.search("profe").path={pos=0,route='rrrdddddd'} end,
function() balloon.show("¿TRAES LOS APUNTES?",12,"profe",false,{x=3,w=12,h=1}) end,
function() balloon.show("SI ES QUE NO SÉ\nQUINS SON!",2,"jailer",false,{x=5,w=10,h=2}) end,
function() balloon.show("¡PUES TE BUSCAS LAS CASTAÑAS!\n¡HABER VENIDO A CLASE!",12,"profe",false,{x=3,w=16,h=2}) end,
function() balloon.show("CAGUEN L'OU...",2,"jailer",false,{x=5,w=9,h=1}) end,
function() actors.search("jailer").path={pos=0,route='dd'} end,
function() wait.start(1.5) end,
function() balloon.show("SI NO SÉ NI QUINA\nASSIGNATURA ES...",2,"jailer",false,{x=5,w=10,h=2}) end
})
else
flags.prac1=2
scene.start({
function() balloon.show("¿OTRA VEZ TU?",12,"profe",false,{x=4,w=6,h=1}) end,
function() actors.search("profe").path={pos=0,route='rrrdddddd'} end,
function() balloon.show("¿TRAES LOS APUNTES?",12,"profe",false,{x=3,w=14,h=1}) end,
function() balloon.show("¡ACÍ ESTÀN!",2,"jailer",false,{x=5,w=7,h=1}) end,
function() balloon.show("¡AH!\n¡ASÍ ME GUSTA!",12,"profe",false,{x=3,w=14,h=2}) end,
function() balloon.show("BUSCA UN ORDENADOR\nLIBRE Y EMPIEZA",12,"profe",false,{x=3,w=14,h=2}) end,
function() actors.search("profe").path={pos=0,route='uuuuuullla'} end,
})
end
return true
else
return false
end
end
})
end,