Advertisement
Guest User

Untitled

a guest
Feb 26th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. x = 0
  2.  
  3. pisos={
  4. madei={
  5. ["type"]=0;
  6. ["friction"]=0.3;
  7. };
  8. gelos={
  9. ["type"]=1;
  10. };
  11. tramp={
  12. ["type"]=2;
  13. ["restitution"]=1.2;
  14. };
  15. choco={
  16. ["type"]=4;
  17. ["friction"]=20;
  18. };
  19. terra={
  20. ["type"]=5;
  21. ["friction"]=0.3;
  22. };
  23. areia={
  24. ["type"]=7;
  25. ["friction"]=0.1;
  26. };
  27. nuvem={
  28. ["type"]=8;
  29. ["miceCollision"]=false;
  30. };
  31. neves={
  32. ["type"]=11;
  33. ["friction"]=0.05;
  34. };
  35. circu={
  36. ["type"]=13;
  37. ["friction"]=0.3;
  38. };
  39. invis={
  40. ["type"]=14;
  41. ["friction"]=0.3;
  42. };
  43. };
  44.  
  45. tp={"madei","gelos","tramp","choco","terra","areia","invis","neves","circu","nuvem"};
  46.  
  47. tfm.exec.disableAfkDeath()
  48. tfm.exec.disableAutoNewGame()
  49. tfm.exec.disableAutoShaman()
  50. tfm.exec.newGame[[<C><P F="7" G="0,30" H="75000" /><Z><S><S L="3000" X="400" H="2000" Y="13107199" T="2" P="0,0,0,0.6,0,0,0,0" /><S L="800" X="400" H="80" Y="40" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="40" H="200" c="3" Y="341" T="0" X="400" /><S X="399" L="40" H="200" c="3" Y="260" T="0" P="0,0,0,0.2,90,0,0,0" /><S P="0,0,0,0.2,0,0,0,0" L="10" H="159" v="17500" Y="158" T="1" X="305" /><S P="0,0,0,0.2,0,0,0,0" L="10" H="156" v="17500" Y="160" T="1" X="493" /><S L="800" X="400" H="10" Y="49010" T="0" P="0,0,20,0.2,0,0,0,0" /></S><D><DS Y="227" X="412" /></D><O><O C="11" Y="397" X="428" P="0" /><O C="11" Y="400" X="500" P="0" /><O C="11" Y="400" X="700" P="0" /><O C="11" Y="400" X="611" P="0" /></O></Z></C>]]
  51.  
  52. function eventNewPlayer(p)
  53. tfm.exec.respawnPlayer(p)
  54. end
  55.  
  56. function eventPlayerDied(p)
  57. tfm.exec.respawnPlayer(p)
  58. end
  59.  
  60. eventLoop = function()
  61. for k,v in next,tfm.get.room.playerList do
  62. tfm.exec.setPlayerScore(k,v.y,false)
  63. x = x + 1
  64. tfm.exec.addPhysicObject(x, math.random(-200,1000), math.random(400,75000), pisos[tp[math.random(#tp)]])
  65. tfm.exec.addPhysicObject(x, math.random(-200,1000), math.random(400,75000), pisos[tp[math.random(#tp)]])
  66. end
  67. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement