Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function eventLoop()
- x = math.random(0,800)
- y = math.random(0,400)
- r = 50
- ids = {1,2,3,4,8,9,11,13,14,21,22,23,24,29,31,34}
- id = ids[math.random(#ids)]
- for i = 1, 360 do
- local angle = i * math.pi / 180
- local ptx, pty = x + r * math.cos( angle ), y + r * math.sin( angle )
- tfm.exec.displayParticle(id,ptx,pty,math.cos(angle),math.sin(angle),math.cos(angle),math.sin(angle))
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement