SHARE
TWEET

Test de drag

Mr_redstone5230 Oct 21st, 2019 (edited) 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.    
  2. x = 5
  3. y = 5
  4. while true do
  5.   term.setBackgroundColor( colors.black )
  6.   term.clear()
  7.   paintutils.drawPixel( x, y, colors.red )
  8.  
  9.   event, button, xPos, yPos = os.pullEvent("mouse_drag")
  10.  
  11.   if button == 1 then -- left button was clicked
  12.     x = xPos
  13.     y = yPos
  14.   end
  15. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top