Guest User

Untitled

a guest
May 14th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if(x<link.x)
  2. {
  3.     if(y<link.y)
  4.     {
  5.         y++;
  6.     }
  7.     else if(y>link.y)
  8.     {
  9.         y--;
  10.     }
  11.     x++;
  12. }
  13. else if(x>link.x)
  14. {
  15.     if(y<link.y)
  16.     {
  17.         y++;
  18.     }
  19.     else if(y>link.y)
  20.     {
  21.         y--;
  22.     }
  23.     x--;
  24. }
Add Comment
Please, Sign In to add comment