Thetroz

Lluvia de partículas

Oct 5th, 2016
639
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. lluvia={"N"} --N es un número desde 0 hasta el 42
  2. pAtOnce=20
  3. radiusX=100
  4. radiusY=100
  5.  
  6. function eventLoop(ct,tr)
  7.     for i=1,pAtOnce do
  8.         tfm.exec.displayParticle(lluvia[math.random(#lluvia)],math.random(400-radiusX*4,400+radiusX*4),math.random(200-radiusY*2,200+radiusY*2),10,10,0,0,nil)
  9. end
  10.     end
Advertisement
Add Comment
Please, Sign In to add comment