Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- coord, nome= {}, 'Robonado';
- main= system.bindMouse(nome) or table.foreach({string.byte('C'), 8}, function(o,p) system.bindKeyboard(nome, p, false) end);
- function eventMouse(p, w, h)
- coord[#coord+1]= { x= w; y= h; };
- end
- function eventLoop()
- a= #coord > 0 and table.foreachi(coord, function(g) tfm.exec.displayParticle(9, coord[g].x, coord[g].y, 0, 0, 0, 0, NIL) end);
- end
- function eventKeyboard(p, id)
- coord= id == 8 and table.remove(coord) and coord or {}; -- 'C' remove todas as partículas e 'Backspace' remove a última...
- end
Advertisement
Add Comment
Please, Sign In to add comment