Sporkinator

moveWrap

Dec 15th, 2011
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //moveWrap(xwrap, ywrap)
  2. if (argument0)
  3. {
  4.     if (x < 0)
  5.         x += room_width;
  6.     else if (x > room_width)
  7.         x -= room_width;
  8. }
  9. if (argument1)
  10. {
  11.     if (y < 0)
  12.         y += room_height;
  13.     else if (y > room_height)
  14.         y -= room_height;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment