Admin Admin
Mensagens : 13 Pontuação : 3931 Data de inscrição : 08/10/2013 Idade : 37 Localização : Blumenau - Sc
| Assunto: No ritmo - Eshkation Ter Jun 23, 2015 1:29 am | |
| - Código:
-
pisos={ pcor={ ["type"]=12; ["width"]=100; ["color"]=324650; }; gelo={ ["type"]=1; ["width"]=100; ["friction"]=0; }; lava={ ["type"]=3; ["restitution"]=20; ["friction"]=0; ["width"]=100; }; choco={ ["friction"]=20; ["width"]=100; ["type"]=4; }; nuvem={ ["type"]=8; ["miceCollision"]=false; ["width"]=100; }; tramp={ ["restitution"]=1.2; ["width"]=100; ["type"]=2; }; agua={ ["type"]=7; ["width"]=100; }; }; pre=0; tp={"gelo","agua","tramp","nuvem","choco","pcor","lava"};
tfm.exec.disableAutoNewGame(true) tfm.exec.disableAutoShaman(true) tfm.exec.newGame('<C><P D="x_nekodancer/x_mondes/x_'..math.random(1,12)..'.jpg" Ca="" /><Z><S><S P="0,0,0.3,0.2,0,0,0,0" L="100" o="324650" X="200" H="10" Y="300" T="12" lua="12" /><S lua="13" L="100" o="324650" P="0,0,0.3,0.2,0,0,0,0" X="600" Y="300" T="12" H="10" /><S lua="14" L="100" o="324650" P="0,0,0.3,0.2,0,0,0,0" X="400" Y="300" T="12" H="10" /></S><D></D><O /></Z></C>'); ui.addTextArea(0,"<J><p align='center'><font size='28'>Prepare-se!</p>",nil,0,360,800,35,0,1,0.8,true) function eventLoop() pre=pre+0.5; if pre == 3 then ui.updateTextArea(0,"<J><p align='center'><font size='28'>3",nil) elseif pre == 4 then ui.updateTextArea(0,"<VP><p align='center'><font size='28'>2",nil) elseif pre == 5 then ui.updateTextArea(0,"<VP><p align='center'><font size='28'>1",nil) elseif pre == 6 then pre=0; ui.updateTextArea(0,"<VP><p align='center'><font size='28'>Começou!",nil) tfm.exec.removePhysicObject(12) tfm.exec.removePhysicObject(13) tfm.exec.removePhysicObject(14) tfm.exec.addPhysicObject(12,200,300,pisos[tp[math.random(#tp)]]) tfm.exec.addPhysicObject(13,600,300,pisos[tp[math.random(#tp)]]) tfm.exec.addPhysicObject(14,400,300,pisos[tp[math.random(#tp)]]) end local i = 0; local pl = nil; for p,v in pairs(tfm.get.room.playerList) do if not v.isDead then i=i+1; pl = p; end end if i == 1 or i == 0 then tfm.exec.giveCheese(pl) tfm.exec.playerVictory(pl) for v in pairs(tfm.get.room.playerList) do tfm.exec.respawnPlayer(v) i=111; end tfm.exec.addPhysicObject(12,200,300,pisos['choco']) tfm.exec.addPhysicObject(13,600,300,pisos['choco']) tfm.exec.addPhysicObject(14,400,300,pisos['choco']) pre=-3; ui.updateTextArea(0,"<J><p align='center'><font size='28'>Prepare-se",nil); end end
function eventNewPlayer(p) ui.addTextArea(0,"<J><p align='center'><font size='28'>Prepare-se!</p>",p,0,360,800,35,0,1,0.8,true) end Feito por Eshkation | |
|