Advertisement
Tectoon

[TFM] Coração

Aug 23rd, 2015
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.18 KB | None | 0 0
  1. mouse = "Tectoon" -- Aqui o seu apelido
  2.  
  3. platformX = tfm.get.room.playerList[mouse].x
  4. platformY = tfm.get.room.playerList[mouse].y
  5.  
  6. local platformId = 1
  7. tfm.exec.addPhysicObject(platformId, platformX, platformY, {type=13,width=10,height=10,color=nil,miceCollision=false,groundCollision=false,dynamic=true,mass=1})
  8.  
  9. tfm.exec.addPhysicObject(2, platformX, platformY - 20, {type=12,width=30,height=10,color=nil,miceCollision=true,groundCollision=false,dynamic=true,fixedRotation=true,mass=1})
  10. tfm.exec.addPhysicObject(3, platformX, platformY + 20, {type=12,width=30,height=10,color=nil,miceCollision=true,groundCollision=false,dynamic=true,fixedRotation=true,mass=1})
  11. tfm.exec.addPhysicObject(4, platformX - 20, platformY, {type=12,width=10,height=30,color=nil,miceCollision=true,groundCollision=false,dynamic=true,fixedRotation=true,mass=1})
  12. tfm.exec.addPhysicObject(5, platformX + 20, platformY, {type=12,width=10,height=30,color=nil,miceCollision=true,groundCollision=false,dynamic=true,fixedRotation=true,mass=1})
  13.  
  14.  
  15. t = {
  16. {0,20,25,-3,0,15,1},
  17. {0,20,-24,-2,0,15,1},
  18. {-15,-10,-15,-9,0,39,1},
  19. {15,-10,15,-9,0,39,1},
  20. {15,-10,15,-9,0x6e0b0b,35,1},
  21. {-15,-10,-15,-9,0x6e0b0b,35,1},
  22. {-20,2,0,20,0x6e0b0b,10,1},
  23. {0,20,25,-2,0x6e0b0b,10,1},
  24. {0,5,0,6,0x6e0b0b,20,1},
  25. {13,-12,1,4,0x802424,30,1},
  26. {0,5,-17,-10,0x802424,30,1},
  27. {0,17,-18,-2,0x802424,15,1},
  28. {-22,-17,-17,-18,0xa33f3f,10,1},
  29. {-27,-8,-27,-7,0xa33f3f,8,1},
  30. {-12,5,-13,-6,0,4,1},
  31. {-18,-6,-9,-7,0,4,1},
  32. {-2,4,-3,-8,0,4,1},
  33. {-3,-8,2,-9,0,4,1},
  34. {-1,-2,3,-4,0,4,1},
  35. {8,1,10,-13,0,4,1},
  36. {12,-13,14,-8,0,4,1},
  37. {14,-8,19,-14,0,4,1},
  38. {19,-14,20,-3,0,4,1}
  39. }
  40.  
  41. for k,v in pairs(t) do
  42.     tfm.exec.addJoint(k, platformId, platformId, {type=0,point1=(platformX+v[1])..","..(platformY+v[2]),point2=(platformX+v[3])..","..(platformY+v[4]), color=v[5],line=v[6],alpha=v[7],foreground=true})
  43. end
  44.  
  45.  
  46. tfm.exec.addJoint(101, platformId, 2, {type=0, color=0, line=0,alpha=0,foreground=true})
  47. tfm.exec.addJoint(102, platformId, 3, {type=0, color=0, line=0,alpha=0,foreground=true})
  48. tfm.exec.addJoint(103, platformId, 4, {type=0, color=0, line=0,alpha=0,foreground=true})
  49. tfm.exec.addJoint(104, platformId, 5, {type=0, color=0, line=0,alpha=0,foreground=true})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement