Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.20 KB | None | 0 0
  1. local tablet = {
  2.     display.newRect(100,100,50,50),
  3.     display.newRect(150,150,50,50)
  4. }
  5.  
  6. function touch()
  7. if(e.target.phase == "ended") then
  8.     print("touched")
  9.     end
  10. end
  11.  
  12. table.foreach(tablet, touch)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement