How do I wrap from one side of the screen to the other? Like Asteroids?

 

There's a function called move_wrap(hor,ver,margin).