Advertisement
top_wizard

Lua - Screen Tap

Dec 19th, 2014
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.20 KB | None | 0 0
  1. function screenTap ()
  2. local x=math.random(0,320);
  3. local y=math.random(0,480);
  4. local myTextObject=display.newText("Hello World!",x,y,"Arial",20)end
  5. display.currentStage:addEventListener("tap",screenTap)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement